Wearable Gemma: Soft potentiometer + Neopixel strip (tutorial)

Today I worked on a mini project for a forthcoming workshop at Somerset House (London, UK).

I used a Gemma with a soft potentiometer (Plug & Wear) and a neopixel strip.

I took inspiration from this Adafruit post: https://learn.adafruit.com/textile-potentiometer-hoodie/prepare-and-sew-sensor.

Unfortunately the code they posted wasn’t complete so I had to figure out how to make the Gemma work with the wearable sensor and the LEDs.

If you see the picture below, you’ll be able to have a look at the pins connected.

The Neopixel strip (5 Neopixels in total) is connected to:

GND: Ground (Black wire)

Vin: 5V (Red wire)

Pin 1: Signal (Green wire)

image

On the other side we have the soft potentiometer sewn into:

3.3v

Pin A1

GND

I am also using a small LiPo battery (110mAh) to power the circuit.

image

Below the code

The idea is to control how fast the LEDs blink thanks to the soft potentiometer

https://gist.github.com/nuzza412/a075e1a7b61e9468f836.js

About Author:

Leave a Reply

Your email address will not be published. Required fields are marked *