Problems with LEGO Color sensor

Hey Folks,
So we went ahead and ordered a few color sensors from Amazon and LEGO. We’re talking about LEGO Color Sensor 9694 (http://peeron.com/inv/parts/64892).

I’ve run the two color sensors we have on every port, and been able to get the test program to work for each one. Here are some possible issues:

  • Use the latest image. You can download it here, from sourceforge. http://www.dexterindustries.com/BrickPi/getting-started/pi-prep/ This is especially important if you’ve last used an image titled anything with “2013″ in it. At the beginning of the year, we did a really big update. Later updates are just minor improvements.

  • Power doesn’t seem to matter. I tried it both using a battery registering 10 V, and using the USB power. Both configurations seemed to work well.

  • Ensure that another sensor is working properly. If you can run a touch sensor on another port and see successful results, it’s working properly (for example). Running one of the LED examples just blinks the LED, it doesn’t interact with the BrickPi sensors or motors. A working LED example is not proof positive of a proper setup. If you can’t get a response using the Ultrasonic, Touch, or motors, you may have damaged / defective hardware. Contact us about this through our website.

  • If you’re using the Hitechnic color sensor, this will not work with this code. The HiTechnic is an I2C sensor and needs an entirely different approach. If there’s enough interest, we’ll try to write some code for it to work.

Hey Folks,
So we went ahead and ordered a few color sensors from Amazon and LEGO. We’re talking about LEGO Color Sensor 9694 (http://peeron.com/inv/parts/64892).

I’ve run the two color sensors we have on every port, and been able to get the test program to work for each one. Here are some possible issues:

  • Use the latest image. You can download it here, from sourceforge. http://www.dexterindustries.com/BrickPi/getting-started/pi-prep/ This is especially important if you’ve last used an image titled anything with “2013″ in it. At the beginning of the year, we did a really big update. Later updates are just minor improvements.

  • Power doesn’t seem to matter. I tried it both using a battery registering 10 V, and using the USB power. Both configurations seemed to work well.

  • Ensure that another sensor is working properly. If you can run a touch sensor on another port and see successful results, it’s working properly (for example). Running one of the LED examples just blinks the LED, it doesn’t interact with the BrickPi sensors or motors. A working LED example is not proof positive of a proper setup. If you can’t get a response using the Ultrasonic, Touch, or motors, you may have damaged / defective hardware. Contact us about this through our website.

  • If you’re using the Hitechnic color sensor, this will not work with this code. The HiTechnic is an I2C sensor and needs an entirely different approach. If there’s enough interest, we’ll try to write some code for it to work.