Back to Browse

Python on the micro:bit – Detect Motion with the Accelerometer

13 views
Apr 28, 2026
5:46

This video shows how to use a command in the Python micro:bit library to identify when the the micro:bit tilts left or write. We will write code to: - Show a left arrow when it tilts left - Show a right arrow when it tilts right - Clear the screen otherwise There is a companion video that walk through writing the same algorithm in MakeCode Blocks. You can find it at: https://youtu.be/-BebuV5fA-A Sign up for our newsletter at: eepurl.com/g0KHDv

Download

1 formats

Video Formats

360pmp45.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python on the micro:bit – Detect Motion with the Accelerometer | NatokHD