Skip to content

TCS34725 RGB sensor with i2c interface fails #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bbx10 opened this issue Jul 11, 2015 · 1 comment
Closed

TCS34725 RGB sensor with i2c interface fails #535

bbx10 opened this issue Jul 11, 2015 · 1 comment

Comments

@bbx10
Copy link
Contributor

bbx10 commented Jul 11, 2015

The TCS34725 i2c RGB color sensor returns garbage RGB values using board package 1.6.4-673-g8cd3697. Since there are 3 changes to the i2c driver since the 1.6.4 release, I copied core_esp8266_si2c.c from master and overwrote the version installed with 1.6.4. The TCS sensor now works based on limited testing.

Since the fix is on master should I close this issue? I posted just in case someone is working with this sensor.

@bbx10
Copy link
Contributor Author

bbx10 commented Jul 15, 2015

The sensor is still returning garbage values often enough to make it useless. Sometimes the sensor gets stucks returning garbage until it is reset.

When comparing logic analyzer traces of 16 bit reads, the last byte is followed by NACK. This is correct according to the i2c spec because the NACK tells the slave-sender to not send another byte.

With this change, the sensor behaves about the same as when it is connected to an Uno.

@bbx10 bbx10 closed this as completed Jul 16, 2015
igrr pushed a commit that referenced this issue Oct 29, 2015
The TCS34725 RGB color sensor works reliably with this change. See #535 for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant