Search found 4 matches

by Paulo
Tue Nov 08, 2016 1:48 pm
Forum: MicroPython pyboard
Topic: Accelerometer readings get "stuck" - please help
Replies: 11
Views: 10291

Re: Accelerometer readings get "stuck" - please help

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 wi...
by Paulo
Mon Oct 31, 2016 11:04 pm
Forum: MicroPython pyboard
Topic: Accelerometer readings get "stuck" - please help
Replies: 11
Views: 10291

Re: Accelerometer readings get "stuck" - please help

even without using any GPIO, I consistently get the Accel() readings "stuck" (example below) after some iterations in the loop a = pyb.Accel() for i in range(1000): print( a.x(), a.y(), a.z() ) pyb.delay(20) the board is powered via USB, and this is the only code I'm running. Any help/comments are a...
by Paulo
Sun Oct 30, 2016 3:37 pm
Forum: MicroPython pyboard
Topic: Accelerometer readings get "stuck" - please help
Replies: 11
Views: 10291

Re: Accelerometer readings get "stuck" - please help

Thanks pythoncoder and shaoziyang for your quick reply. I'm using a PYBLITEv1.0-AC board. The pyboard is powered through the USB cable (and from your replies I sense this is an important point...) In my application I'm also communicating with a GPS via UART [ pyb.UART(1, 9600) ]. I will check again ...
by Paulo
Sat Oct 29, 2016 9:37 pm
Forum: MicroPython pyboard
Topic: Accelerometer readings get "stuck" - please help
Replies: 11
Views: 10291

Accelerometer readings get "stuck" - please help

Hi guys, I'm working for a couple of days on an accelerometer data logger, and haven't been able to avoid the following problem: - if I try to continuously retrieve Accel readings, even at very low rates (as 20Hz), after a short amount of time the readings get stuck; the Accel stops working and I ha...