In Spain the typical celebration at new years midnight is to eat twelve grapes, one at every strike of the bell.
Wiki even has some pages of it https://es.wikipedia.org/wiki/Doce_uvas and https://en.wikipedia.org/wiki/Twelve_Grapes
In order to achieve this celebration in places without a big bell in the square or TV, I have created this small project for it.
For this project I’m trying out circuits.io
All the code can be found on my github: https://github.com/timdows/AMD/tree/master/GrapeLedsBell
It uses the Adafruit WS2801 library to control the string of led bolls.
Upon startup and in ‘waiting mode’ it runs the rainbowCycle in a quick finite state machine.
A push button starts of the program after 5 seconds.
The program expects that upon startup the clapper is against the bell.
It runs the first 11 times normal and the last time it hits the bell 5 times in a quick sequence.
Upon every ring a new led boll changes from red to green.
|Arduino Pro Mini 5V||$ 1.92|
|EasyDriver Shield stepping Stepper Motor Driver V44 A3967 For Arduino||$ 4.44|
|16mm LED Momentary Push Button Switch||$ 2.81|
|12 pcs 50mm full color 6LEDS 5050 RGB WS2801 Pixel Module Ball 12V||$ 35.39|
|Other materials||$ 5|
- Have a countdown timer on it;
- Find cheaper parts.