STAccel script in STM32F4 DISC

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: STAccel script in STM32F4 DISC

Post by SpotlightKid » Sat Apr 11, 2015 12:03 pm

You need to copy staccel.py to your flash on the Discovery board, of course.

manitou
Posts: 73
Joined: Wed Feb 25, 2015 12:15 am

Re: STAccel script in STM32F4 DISC

Post by manitou » Sat Apr 11, 2015 7:04 pm

SpotlightKid wrote:You need to copy staccel.py to your flash on the Discovery board, of course.
Yep, that fixed it. duh. I was mistakenly assuming that since the staccel.py was in the firmware directories that it might magically be accessible...
thanks

ebike
Posts: 55
Joined: Thu Jul 16, 2015 9:36 pm

Re: STAccel script in STM32F4 DISC

Post by ebike » Fri Jul 24, 2015 12:55 am

I tried this on my board and get weird results:

Code: Select all

>>> accel.y()
0.0
>>> accel.y()
0.62976
Keeps toggling between those values just reading with the board flat on the table.
Never reads higher than 0.62976, moving board .. sometimes I get an in-between value.

My board id is returning 41 using "accel.read_id()"

Post Reply