Emotion Display Robot
We made a Robot that uses the Sparkfun kit to affectively display emotions through the use of servo motors and various facial parts. This Emotion Display Robot can compete in the 4H Robotics Competition.
Supplies
3D printed parts, cardboard, tape, scissors, super glue, popsicle sticks, and the Sparkfun Kit were all used in the general construction of the project.
Wiring the Arduino Board in Tinkercad
The first step of construction is to use Tinkercad to virtually wire our Arduino Board. Start by placing four equally spaced apart buttons on your breadboard and wire the left pins to the ground. Then wire the right pin to the 13th, 12th, 8th, and 7th pin accordingly. Following wiring the buttons get all 5 servos and wire the left-most port to ground, and the middle port to power. After wiring the servos, take the right-most ports and wire them to ports to the 11th, 10th, 9th, 5th, and 3rd accordingly (make sure these numbers have the little squigly line next to them). You're done with the wiring, now make sure to get it right on the physical board!
3D Print Parts
To 3D print each individual part for the construction of the robot, use these three downloads for SolidWorks and print them.
The Face
First cut the carboard as shown in the first picture, then get your popsicle sticks and glue two to each side of the square. then take your 3D printed parts and glue them on accordingly. After that, create the shelf as show out of popsicle sticks (make sure to keep the 3D printed part on, it is off so the shelf can be seen clearer.) Then acquire your first three servos and glue them to the face as shown in the images. Make sure the one used for the blinking is secured on the top. Following attaching the blinking servo, cut out and color two eyebrows and pin them on the face, then glue the servo to the other side and attach accordingly. Use the birds eye view of the back of the face for guidance. Get the two other servos and attach them to each side of the mouth and connect the other two to each side of the mouth on the shelf. Once again use the birds eye view picture for guidance. Finally, insert your Arduino Board into the open cavity, and build your uncut cardboard walls using the same dimension as the face.
Tinkercad Code
For the coding in Tinkercad, use the following file.
Before Setup:
Begin by defining all the servo pins and button pins. Each servo will control a part of the robot's face. So each will need its own pin. Do the same for all the buttons. Then create the variables that will store each button's state when it is read.
Setup:
Configure the four buttons as inputs using INPUT_PULLUP, this ensure that the buttons ill stay HIGH until they are pressed.
Loop:
If button one is LOW, the robot activates the servos for the Happy Face. If not pressed, it will check for button 2 (Sad Face) being pressed. It will then do the same exact three for button 3 (Angry Face) and button 4 (Confused Face).
If nothing is pressed, the robot is in an idle state, keeping the servos in resting position. The loop then repeats continuously.
Downloads
Instructional Videos
For a working model use this link:
https://1drv.ms/v/c/2db9e82ed99b3085/EU-lheQ1UlBFv9lXgfpLjgkBsOxGcHFJY1qTNWHDzrIhug?e=Kyokp3
For an instructional video use this link:
https://1drv.ms/v/c/2db9e82ed99b3085/EdVsOFq49Z5Ot6KWwI8-sDkBBTGkpv4VpmBfUHd6C7v0yg?e=G5Fjse