Announcement
Collapse
No announcement yet.
Modern Robotics Color Sensor Light Not Turning On
Collapse
X
-
So the issue was when the enableLed command was sent through Android Studio and the FTC SDK, the Led would not turn on. To fix this, I went into CCD and typed in the I2C address of the sensor and hex command to turn the LED on. This seemed to fix the problem.
-
RollerCoaster45.. What was the issue, and how did you "fix" it with the CDD?
Leave a comment:
-
We were able to fix it by using Modern Robotics Core Device Discovery
Leave a comment:
-
This sounds like an issue I've come across. I believe the quickly flickering on and off is normal. The color sensor remembers if it was off before and will turn itself off when it sees that, presumably turning itself on before actually checking. However, at least last time I checked, there is an issue with the ModernRoboticsI2cColorSensor class. Essentially, it assumes that the LED in the sensor is always on at startup, and refuses to turn it on when it is already on (or off when it is already off). The solution:
Code:colorSensor.enableLed(false); colorSensor.enableLed(true);
If you're interested, you can read about the issue on Github.
Leave a comment:
-
Modern Robotics Color Sensor Light Not Turning On
Hello All,
We wanted to use a Modern Robotics Color Sensor and when we plugged it in and powered on the robot, the light would flicker on and then turn off. When we sent the enableLed command to the sensor, the light wouldn't turn on. Anybody experience this?
Thank you,
FTC 9794
Wizards.exeTags: None
Leave a comment: