Jump to main content
Your email has not been verified. Verify email now ›

How to use accelerometer with micro:bit | Tutorial #5

Learn how to use the accelerometer to detect rotation (pitch and roll) and acceleration with micro:bit and Microsoft MakeCode. Watch the rest of our micro:bit tutorial videos here: https://www.youtube.com/playlist?list=PLlBVuTSjOrcnS-I-zERgyxHMcCRm6rvLM

micro:bit science projects: https://youtube.com/playlist?list=PLlBVuTSjOrclB5jkYe-BcQyUyYlSnU7gS&si=UVOR1AMKU817jmCs

Learn more about how an accelerometer works: https://www.sciencebuddies.org/science-fair-projects/references/accelerometer

0:00 introduction
0:21 motion event blocks
1:27 rotation (pitch)
2:23 serial monitor
3:02 rotation (roll)
3:54 if/else statements with rotation
7:59 xyz acceleration
12:14 accelerometer range
13:30 if/else statements with acceleration
15:07 learn more


Top
Free science fair projects.