White Rabbit from Alice in Wonderland
I am focusing my halloween costume on the white rabbit from Alice in Wonderland, specifically due to the clock accessory. I wanted to play with analogue inputs more and having a clock gives me the ability to control various motions such as speed/colour/dimness.
Materials
8″ diameter Clock Materials
- 4x NeoPixel 1/4 60 Ring – 5050 RGB LED w/ Integrated Drivers https://www.adafruit.com/product/1768 (6.2″ diameter)
- Potentiometers https://www.adafruit.com/product/5538
- 1 Battery Pack
- Foam core (Shape)
- Chain
Rest of outfit
- White Leggings (owned)
- White skirt + top (Owned)
- Red Cardigan (Owned)
- Top Hat + Bunny Ears
- Bow tie
- Glasses
Arduino function
LED lights in a RGB swipe function, so that they are imitating a clock ticking, but can bed adjusted by the potentiometers for the speed, dimness, and I am wondering if there is a way to use potentiometers to control colour. I haven’t seen this in Arduino code, but sometimes random() takes on a seed value which can determine levels of randomness, so I was still researching if that is a thing. It would be fun to explore if the potentiometer could also control colour in some way. Also need to read more about how potentiometer values are read in code, maybe what I am thinking of needs to be more of a button state (switch on is random/switch off is in RGB “order”)
Code