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)


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


Pin A1


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


Below the code

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


About Author:

Leave a Reply

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