element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Arduino - Raspberry Pi Pico - Raspberry Pi  universal sensors/modules
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 4 replies
  • Answers 3 answers
  • Subscribers 663 subscribers
  • Views 3140 views
  • Users 0 members are here
Related

Arduino - Raspberry Pi Pico - Raspberry Pi  universal sensors/modules

robogary
robogary over 3 years ago

I keep an inventory of 5V sensors for Arduino projects: relay modules, PIR, ping modules, displays , etc..

 

In using those sensors for Raspberry Pi Pico and Raspberry Pi, I double check that I'm not overloading the 5V supply, and pull out a level shifter module or  voltage divider resistors for scaling the sensor output signal.

 

In doing my latest project, I stumbled across an  MH-SR602 PIR module with an input voltage of 3.3 - 15V.  

 

Altho I have SR501s and SR505s on hand, they need 5V , and alto the output is spec'd for 3.3V, I have measured the outputs at 3.6V  and so still use some attenuation of the output signal wired back to an RPi.

The SR602 can work with both Arduino & RPi platforms.

 

Are there any other new sensors available that work equally well with Arduino and RPi Pico without adding support HW around them ?      

  • Sign in to reply
  • Cancel
  • shabaz
    0 shabaz over 3 years ago

    Hi Gary,

     

    In theory, all 3.3V logic level sensors should work with Arduino and RPI products, since the Arduino can detect the 3.3V level from the sensor output as a logic level high. All logic-level controlled 3.3V actuators can be driven by both Arduino and RPI products too, provided you use a resistor, or ideally a voltage divider, which is ultra low-cost and small, since it's just two resistors. If you're seeing 3.6V logic levels, a single resistor should be fine in series with the line, it may not need a voltage divider, i.e. you can current-limit to prevent damage. With slow sensors, a single 10k resistor may be fine, otherwise consider (say) 1k. For hobby-grade projects, I think this is not an unreasonable balance between cost, effort and risk.

    All 3.3V logic level I2C devices can be connected to Arduino and RPI too, since the I2C resistors can be connected to 3.3V if they are not already connected there (disable any pull-up to 5V in software if the Arduino does that).

    For UART devices, again the 3.3V devices will be compatible with Arduino and RPI, provided that if the transmit direction from Arduino to the device is connected then a voltage divider is needed. This only leaves SPI as the difficulty, for which level converters would most likely be needed, if you were using the Arduino Uno - but in many cases the SPI devices are more complex and may need the performance of an RPI product rather than Arduino anyway.

    In summary, it's definitely better to standardize on 3.3V logic in my opinion, unless you really can't find a suitable 3.3V level sensor at a reasonable price, in which case you have no choice but to do level conversion in some way for signals coming into the RPI products. Also, there are many development boards other than Uno, and they almost all use 3.3V logic levels, e.g. many of the other Arduino boards.

    Another point is that although Arduino Uno will work with 3.3V logic level inputs without level conversion, the 3.3V microcontrollers won't work with all devices that accept 5V logic levels, without level conversion. So it's yet another reason to prefer 3.3V logic level devices.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago in reply to shabaz

    Series resistors may work, but the builder really doesnt have real control of signal's input voltage unless they have a true knowledge of the controller's DI input impedance. Voltage dividers with 2 resistors isnt going to kill my pocketbook, and I can set them pretty reliably.

     

    A better solution is a sensor that can accept 3-5V input, and ~3V output that I'm sure wont drive above a controllers (or accessory) 3.3V power supply. 

     

     

    Another example is the HC-SR04 ultrasonic ping module that operates at 5V, now there is a newer version HC-SR04P with input voltage range of 3V-5V.

     

    The discussion I'm trying to stimulate are what other sensors besides a SR602 and SR04P have newer modules with 3v to xx input and 3V discrete output.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • scottiebabe
    0 scottiebabe over 3 years ago

    Good Question. I'm not sure if a list of 3v3 modules exists, it would be nice if one existed. I did a quick search and noticed this PIR sensor which I have never tried before which claims to operate on 3.3V :

     

    https://www.universal-solder.ca/product/pir-mini-motion-detector-sensor-12mm-diameter-am312-chip/  (Available from other resellers I'm sure)

     

    Based on this PIR sensor: http://www.image.micros.com.pl/_dane_techniczne_auto/cz%20am312.pdf

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago

    ROFL - working on a RPi project.....using 3.3v to fire a MOSFET,  tried several different mosfets types, all the gates spec'd 2-4v , 2-5 v, 3-5 v to fire fully, 3.3v wasnt turning any of the mosfets fully on, to a 12v 250mA load.  The bipolar transistors in my inventory all were 200mA or less.

    Used a 3 to 5 v level shifter to fire that mosfet from gpio, a real rube goldberg. I was determined not to use a relay :-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube