I made this project for the Halloween Photo Challenge.
The idea of MisterM inspired me to create a Vampire Robot who likes dancing and who blinks while he is dancing.
Robot's eyes glow yellow when he stands straight, turn to red when the Robot bends one side, and turn to green when he bends opposite side.
Step 1: The Idea and the Circuit
I add two tilt sensors to find out when the Robot bends right or left. Those tilt sensors connect to different pins of RGB LED. See the wiring diagram.
The Vampire Robot
Оne RGB LED
Two tilt sensors (I used SW-200D)
Two resistors (I used 220 Ohm).
Battery (I used rechargeable LiPo).
Also, we need some wires and a breadboard for prototyping or proto-board for the final version.
Look at the prototype in action.
The prototype, based on the breadboard was too big for our Robot, so I assemble a compact version on a proto-board.
Step 2: Insert the Circuit to the Robot
1. Remove the head and make a hole for the LED.
2. Pass the LED's pins through the hole and connect to the circuit.
3. As far as the Robot becomes much heavy, we need to make Robot's legs harder.
4. Connect the battery. It's dancing time!