← Back to search

How to use the Accelerometer on Circuit Playground Express with Makecode

Core Electronics 12:36

4,417 views · 50 likes Watch on YouTube ↗

At the heart of every Adafruit Circuit Playground Express lies a three-axis accelerometer. This allows us to write programs that take the orientation of the board into account. We can detect orientation and acceleration on any axis. With MakeCode there are two different ways to interface with the accelerometer, events and live data. We can look for specific gesture events like a shake, freefall, tilt, or specific G or acceleration. We can also read live data which returns the immediate acceleration for a given direction in milli-g (1/1000 of gravity).

The full guide: https://core-electronics.com.au/tutorials/using-the-accelerometer-with-makecode-adafruit-circuit-playground-express.html


Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

Circuit Playground https://core-electronics.com.au/adafruit-circuit-playground.html

Circuit Playground Express https://core-electronics.com.au/catalog/product/view/sku/ADA3333

Adafruit https://core-electronics.com.au/brands/adafruit-australia

Category (YouTube): Education

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.