As part of the Flowers Holiday Hack, to be found at https://www.hackster.io/437643/flowers-holiday-hack-dc37b3 - one of the ideas I brought to the table was a spoon counter. Here's my original sketch:
As you can see, the original idea was to scale the colours through a spectrum from blue (full spoons) to red (least spoons). In the time available, I settled for being able to change the pixel position based on a touch.
It's at this point if you're not aware of Spoon Theory you might want to take a look at https://en.wikipedia.org/wiki/Spoon_theory and come back again!
Uploadthe code and test it works
The code provided here is cobbled together with parts from the Adafruit Neopixel library, which you will need to include in your libraries. If you don't already have it, open up the Arduino IDE and use the Library Manager (details here: https://www.arduino.cc/en/Guide/Libraries) to easily add it in. You can then upload it to the Flower (which appears as an Arduino Uno) using a USB C cable.
If you want to change the colour of the indicator light look for the (100, 0, 100) RGB colour code and mix up your own colour.
Makeafaceplate
If you lie the brooch face down on some paper, and draw round it, you can cut out a piece of paper to place over the top to draw your scale on - the capacitive touch still works through it! Remember that if you are using patterned paper to draw on the back, or your pattern will be on the wrong side of the brooch!
I held mine on with a sticky dot in the centre of the brooch.
Futuredirections
I hope to add more to this project to add the original functionality in, which would mean colour scales to make the spoons, or lack thereof, more visible.
I would also like to change it so that all pixels are on originally, and then the pixels that are lit up gradually reduce on each tap, rather than a single pixel being lit each time.
As with all these things, you do what you can in the time available! I'd love to see people's respins on this.
Comments