This project is about using motion to express emotion. Here I chose the emotion of happiness, related to the motion of clapping hands. So here is my tiny robot “Pat”.
The main components of this setup are solenoids, potentiometer, and pushbutton. Here, the solenoids represents the hands; the button represents praising words; the potentiometer represents how flattered Pat is.
When Pat got praised (the button is pushed), he starts to clap his solenoid hands. If he is more flattered than normal (turn the potentiometer to one side), he will be happier and clap his hands faster; if he is not so flattered (turn the potentiometer to the other side), he will slow down the clapping speed back to normal.
If you want to create your clapping “Pat”, here is the code and sketch to help you:
Arduino Code File: Clapping Pat – Code
Fritzing Sketch: Clapping Pat – Sketch