Pi 2, connecting 3 ultrasonic sensors - Raspberry Pi Forums


hi,

trying connect 3 hc-sr04 ultrasonic range sensor on pi2. problem pi2 board has 2 5v ports , 1 3.3v port , ultrasonic sensors requires 5v ports.

can me out on how possibly use 3.3v third port or maybe "split" 5v port.

thanks.

manishvaja1 wrote:hi,
trying connect 3 hc-sr04 ultrasonic range sensor on pi2. problem pi2 board has 2 5v ports , 1 3.3v port , ultrasonic sensors requires 5v ports.
can me out on how possibly use 3.3v third port or maybe "split" 5v port.
thanks.
i'm afraid you've misunderstood the gpio connector's pinout labelling** - you're referring "2 5v ports , 1 3.3v port" 5v , 3.3v power rail connections. pi's gpio's operate @ 3.3v so, whilst can still provide 5v power sensors, 5v outputs need connected 3 of available gpio's (enabled inputs) through voltage divider, this, perhaps:

code: select all

sensor 5v out >----------,                          |                         2k2                          | ------> pi gpio in                         3k3                          | sensor 0v >--------------> pi 0v 
('scuse crude "circuit diagram" )
trev.
** more info. here:
http://elinux.org/rpi_low-level_periphe ... .28gpio.29


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support