I rewired my circuit, and used UART 3 instead of 1, thus avoiding the possible conflict with I2C1 used by the acceleromenter.
It does indeed solve the problem!
Thanks @pythoncoder (and @Damien) for not giving up on this one.
Looking at the board diagram, the information that I2C1 pins are shared with UART1 is indeed there - but, at least for me, it was not clear that you are prone to problems if you use the (internal) Accel() and UART1 simultaneously. A side note / warning on the Accel() class documentation would be useful.
So, case solved.
Thanks guys!!!
Accelerometer readings get "stuck" - please help
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Accelerometer readings get "stuck" - please help
I agree the docs should be improved; I've submitted a PR including a hardware note in the accelerometer doc.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.