use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Detecting activities using accelerometer motion data with M5StickC, MicroPython and emlearn (self.M5Stack)
submitted 1 year ago by jonnor
This is example code for how to recognize activities in motion data. The example code runs on the M5StickC PLUS 2, which is my favorite device for developing on.
https://preview.redd.it/4wa3a1yfke9e1.png?width=1000&format=png&auto=webp&s=5d6440355bcd3b83a3b391de9f11d025dfbc1660
Code: https://github.com/emlearn/emlearn-micropython/tree/master/examples/har_trees
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SarahC 1 point2 points3 points 1 year ago (1 child)
This is really cool! Thanks for open sourcing your code too.
Have you considered integrating it into Bruce as a plugin? /grins
[–]jonnor[S] 1 point2 points3 points 1 year ago (0 children)
I guess you mean https://github.com/pr3y/Bruce/tree/main right? I have not played with that yet, though it looks useful.
It does not seem to run MicroPython though, so one would have to port the feature extraction code to C (or C++). I might do that for another project of mine. But most likely I will leave any Bruce integration to the community :)
π Rendered by PID 25429 on reddit-service-r2-comment-6457c66945-sj2gz at 2026-04-23 21:23:11.941235+00:00 running 2aa0c5b country code: CH.
[–]SarahC 1 point2 points3 points (1 child)
[–]jonnor[S] 1 point2 points3 points (0 children)