sipeed / MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
https://wiki.sipeed.com/maixpy
Other
1.68k stars 439 forks source link

MaixAmigo - acceleration sensor #410

Closed PJPAC closed 3 years ago

PJPAC commented 3 years ago

Hi, I'm a newb with Sipeed and I'm trying to get a project running on MaixAmigo.

MaixAmigo apparently presents an acceleration sensor (www.seeedstudio.com/Sipeed-Maix-Amigo-p-4689.html). However, I could find neither demos, nor documentations, nor command line/sensor ID I could try to start from. Furthermore, this acceleration sensor does not seem to be included in config_maix_amigo.py. Would someone point in some directions ?

Thanks

junhuanchen commented 3 years ago

https://maixpy.sipeed.com/maixpy/en/develop_kit_board/maix_amigo.html

image

PJPAC commented 3 years ago

Thanks. I could start playing around. :) I have noticed that even when the Amigo is not moving, small accelerations are measured along the 3 directions XYZ so that I'll see to set thresholds to trigger anything in a more reliable way. The gravity is always 10% off, from whichever value is being used in the _STANDARD_GRAVITY parameter, but it might just be due to the sensor it-self (?). So far I've been testing with the Amigo connected to my computer and interfaced through MaixPy IDE. While editing the program I have had a few error messages which I could not match with the program writing it-self, but which disappeared after disconnecting and reconnecting the IDE and Amigo devices, as if it was needed for the program to be compiled... The next step is to run the program.py directly from the Amigo it-self so that I don't have to carry the laptop, while walking or running. However when I turn on the Amigo, I don't see how to pass the welcome page with the red background, and I don't see yet how to run a specific program.py. It is probably obvious to a more experienced user (I'm still a newb), but if someone could point at some directions it would be greatly appreciated. Thanks.