Log in

View Full Version : Color sensor?


clandry94
13-01-2013, 18:23
Does anyone know how to wire the HT Color sensor? I can't find any datasheets that explain how to wire it for non-lego applications..

apalrd
13-01-2013, 18:41
It can connect directly to the I2C port on the Digital Sidecar using a Lego cable. The connector is the same.

In software, you will need to write software to read the I2C registers. Using the I2C lego compass as a basis, I wrote a bit of code a few years ago to deal with the color sensor. It's a few years old, but I opened it and it at least opens with the current library. I attached it. Use it if you want, YMMV.

clandry94
13-01-2013, 21:21
Oh wow, from the orientation of the sidecar on our electronics testing setup I didn't even notice that port. Thanks!