Accelerometer readings get "stuck" - please help

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Paulo
Posts: 4
Joined: Sat Oct 29, 2016 9:22 pm

Re: Accelerometer readings get "stuck" - please help

Post by Paulo » Tue Nov 08, 2016 1:48 pm

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!!!

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Accelerometer readings get "stuck" - please help

Post by pythoncoder » Wed Nov 09, 2016 7:43 am

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.

Post Reply