remix7196
Posts: 10
Joined: Sun Apr 09, 2017 4:48 pm

Initial Pi 3 GPIO breakoutboard wiring for a sensor

Sun Apr 09, 2017 6:41 pm

Hello! I recently bought a sensor and a Pi 3, and when I hook it up directly to the pins on the pi it works great. The 4 pins used are SCL, SDA, ground, and vin (hooked up to 5V).

However, when I hook up the breakout board and hook the pins up to that, i2c doesn't recognize the sensor. I searched online but I'm brand new to the pi so I think I'm just missing how to hook it up correctly. Again, as above shows, I have 4 pins total to hook up. Can anyone show me how to hook it up correctly, via MS Paint or some easy diagram? I've included the CanaKit board/connector below to show what my setup specifically looks like.

Thanks in advance!!!

Image

remix7196
Posts: 10
Joined: Sun Apr 09, 2017 4:48 pm

Re: Initial Pi 3 GPIO breakoutboard wiring for a sensor

Sun Apr 09, 2017 9:54 pm

To specify, I tried putting the pins in like this (obviously it did not work):

Image

Anyone help? Again learning this small part from the ground up is challenging online apparently, but the sensor works fine when I plug those 4 pins directly into the Pi's GPIO slots.

User avatar
DougieLawson
Posts: 39303
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Initial Pi 3 GPIO breakoutboard wiring for a sensor

Sun Apr 09, 2017 10:05 pm

Do the LEDs light? If not you've got the cable the wrong way round at one end. Normally the odd coloured wire on a ribbon cable goes to pin#1 but we've seen a few cases where the makers get it wrong.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

remix7196
Posts: 10
Joined: Sun Apr 09, 2017 4:48 pm

Re: Initial Pi 3 GPIO breakoutboard wiring for a sensor

Sun Apr 09, 2017 10:15 pm

DougieLawson wrote:Do the LEDs light? If not you've got the cable the wrong way round at one end. Normally the odd coloured wire on a ribbon cable goes to pin#1 but we've seen a few cases where the makers get it wrong.
Thanks for the reply!

Not sure which LEDs you're referring to. There's no LEDs on the breakout board. The Pi LEDs are on - the Pi works fine, it just doesn't detect anything plugged in with i2cdetect -y 1 when I plug in as shown above in MS Paint, whereas it does when I plug in direct with no breakout board.

User avatar
DougieLawson
Posts: 39303
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Initial Pi 3 GPIO breakoutboard wiring for a sensor

Sun Apr 09, 2017 10:30 pm

Oh, some of the better breakout boards have LEDs which a) give you a clue the wiring is right and b) show when the power is connected.

Stick a LED on the five volt rail with a 560Ω resistor between it and the GND rail. Then you'll know when it's wired right.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “General discussion”