Skip to content
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

Some I2C sensors don't work on PiStorms #425

Open
dlech opened this issue Nov 9, 2015 · 5 comments
Open

Some I2C sensors don't work on PiStorms #425

dlech opened this issue Nov 9, 2015 · 5 comments
Labels
bug PiStorms Mindsensors PiStorms for Rapberry Pi

Comments

@dlech
Copy link
Member

dlech commented Nov 9, 2015

There is a hardware bug in the I2C on Raspberry Pi that causes data corruption on devices that use I2C clock stretching.

Hardware bug references:

In the kernel that was just released (4.1.12-8-ev3dev-rpi), there is a gpio bit banging I2C driver that can be used instead of the hardware I2C. I think we should experiment with that and see how it does.

@dlech dlech added bug PiStorms Mindsensors PiStorms for Rapberry Pi labels Nov 9, 2015
@dlech
Copy link
Member Author

dlech commented Nov 9, 2015

List of known sensors that don't work:

  • mindsensors.com NxtMMX

If you find more, leave a comment and I will add them to this list.

@micgil
Copy link

micgil commented Mar 17, 2016

Try changing the I2C speed to 40K or 35K and checking the NXTMMX. This has worked for me,

@dlech
Copy link
Member Author

dlech commented Mar 17, 2016

Thanks for the tip. I assume you did this using dtparam= in config.txt. Can you please post an example for others that might want to try this?

@micgil
Copy link

micgil commented Mar 25, 2016

There is a very brief description of the process at

@micgil
Copy link

micgil commented Mar 25, 2016

Not sure if the link went through.
http://www.mindsensors.com/blog/how-to/change-i2c-speed-with-raspberry-pi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PiStorms Mindsensors PiStorms for Rapberry Pi
Projects
None yet
Development

No branches or pull requests

2 participants