Role description：This Halloween my cos role is Xiaoqing, who is a character in the four legendary stories of Chinese folk love, “The Legend of the White Snake”. She was cultivated by green snake for thousands of years. She is naughty by nature, daring to love and hate.
About costume：I have purchased the whole set of clothes and hair accessories from China, and I hope it will be delivered in time. The snake wrapped around the body has been purchased from Amazon, and I will re-sewn the electronic components into the body of the snake in the future.
After the switch was turned on, the snake’s eyes lit up with green light, and then touching the switch, the snake’s eyes changed from green to red, and there was a fade effect, as if to express its anger.
- Trim toy snake. Prepare the battery pack, wires, (NeoPixel with GEMMA M0*2/ Arduino board，NeoPixel *2), switch, ping pong ball*2, solder to a suitable length, and write the code (on-LED green on-touch again-red light gradually on-off). Make sure it can work.
- Insert the device into the toy snake, fix the bulb at the eyeball position, find a suitable position for the switch to fix, and sew the toy snake.
- After the clothing arrives, sew the toy snake onto it.
- If I have extra time, I solder a smaller power supply, resistor, and led strip together and hide it in the hairband, which looks like a small snake.
Switch on（Switch Debouncing code)
1. First touch：Specified LED color code（green light on)
2. Second touch: the red light gradually brightens（like fade code)
3. Third touch: the light turns off
Materials and parts you’re using
- AAA Batteries*1（already in the arduino package, no need to purchase）
- wires（already in the arduino package, no need to purchase）
- Arduino board（already in the arduino package, no need to purchase）Is it too big and how to fix the wire on the board？
- NeoPixel *2（https://www.adafruit.com/product/4776）Is it enough？
- Ping pong ball*2 (already have）
- Switch!（I only have one, but it’s too small to control）https://www.adafruit.com/product/3307
- Sewing kit
- Small battery (LIGHT BELT) https://www.adafruit.com/product/1570
- Side-light Fiber Optic Tube – 4mm Diameter(LIGHT BELT) https://www.adafruit.com/product/4163
- Fiber Optic Light Source https://www.adafruit.com/product/4166
- Resistor (LIGHT BELT)?
- Switch (LIGHT BELT) https://www.adafruit.com/product/1400