accelerometer.current_gesture

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.
Post Reply
gpson
Posts: 21
Joined: Sun Jul 31, 2016 6:55 am

accelerometer.current_gesture

Post by gpson » Thu Mar 15, 2018 8:07 pm

hello,

with microbit I found methods to detect the current gesture or if the named gesture was active since the last call.

Is it possible with pyboard?

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

Re: accelerometer.current_gesture

Post by pythoncoder » Fri Mar 16, 2018 8:05 am

No, you'd have to code gesture recognition yourself.
Peter Hinch
Index to my micropython libraries.

gpson
Posts: 21
Joined: Sun Jul 31, 2016 6:55 am

Re: accelerometer.current_gesture

Post by gpson » Fri Mar 16, 2018 8:08 am

But in microbit it is in the firmware.. If it is opensource maybe someone can copy/paste something :)

I am bad with C++

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

Re: accelerometer.current_gesture

Post by pythoncoder » Fri Mar 16, 2018 8:21 am

I doubt it's quite as simple as that. The Micro:Bit may not use the same accelerometer chip as the Pyboard. It might take someone a few days of effort to port the code, and the question is whether anyone with the necessary skill is motivated to do so.

I'd code it in MicroPython. The Pyboard has much more RAM than the Micro:Bit so it should be practicable, and your MicroPython code could be published and used or adapted by others. As far as I know nobody has yet done this, but my first step would be a search of this forum and a check on the Wiki to check for prior efforts.

An interesting project ;)
Peter Hinch
Index to my micropython libraries.

gpson
Posts: 21
Joined: Sun Jul 31, 2016 6:55 am

Re: accelerometer.current_gesture

Post by gpson » Fri Mar 16, 2018 8:25 am

I found some info on using sensor data with machine learning.. will try to code something in the near future ;)

Post Reply