Wearable with Gemma M0 and Accelerometer

Using the microcontroller board Gemma M0 from Adafruit we are simulating gravity on the LEDs of the NeoPixel Ring using an accelerometer LIS3DH. The LEDs will light on, following the inclination of the board.

If you hold the board completely vertical and you rotate it, the LEDs will light on individually, changing their color as the board rotates.

Here are two videos, showing how it works:

Materials:

Gemma M0 :

NeoPixel Ring -12 LEDs:

Accelerometer LIS3DH:

LiPo Battery 3.7V 150mAh:

Connections:

Code:

download the code from GitHub:

https://github.com/Magdalena73/Gemma_accelerometer

1 Kommentar

Hinterlasse einen Kommentar

Diese Seite verwendet Akismet, um Spam zu reduzieren. Erfahre, wie deine Kommentardaten verarbeitet werden..