July 11, 2024, 10:22:34 AM

Raspberry I2C Connection MOD-RGB

Started by grasgruen, August 05, 2014, 01:21:52 AM

Previous topic - Next topic

grasgruen

Hi,

I did connect my Raspberry PI with the I2C connectors of a MOD-RGB and installed/activated I2C on the RPI. Did connect +3.3V, GND, SCL and SDA with the pins on the UEXP port, but when I use  i2cdetect -y 1 nothing is shown. Should the UPWR jumper be closed or opened? (I did try both).

root@ggpm:/home/pi# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

i2cdetect -y 0 is also empty:
root@ggpm:/home/pi#  i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --



LubOlimex

Hey there,

Please check if you have the latest version of i2c-tools with:

#apt-get update
#apt-get install i2c-tools

Then test with:

#i2cdetect –y –r 1

The address should be 0x20. Finally a command like below would light the strip to white color:

#i2cset –y –f 1 0x20 0x03 255 255 255 i

Do you provide sufficient power to the MOD-RGB? It requires 12V DC provided to the PWR_CON connector. Pin 1 is 12V, pin 2 is GND. In this case UPWR_E jumper should be open by default.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex