Animatronic Talking Takeout Container
by randofo in Circuits > Arduino
22743 Views, 245 Favorites, 0 Comments
Animatronic Talking Takeout Container
![main.jpg](/proxy/?url=https://content.instructables.com/FTL/DZL7/HOUFZWCK/FTLDZL7HOUFZWCK.jpg&filename=main.jpg)
The animatronic talking takeout container is a fun little toy that is good for hours of amusement. This idea came about after having taken a special effects film class when I was in college. While in the class, I made a short film of myself talking to a takout container with a face drawn on it. However, not having the know-how to do anything with electronics, the initial version was being controlled by a friend pulling upon and releasing a thin fishing line. While I do not doubt that my friend was skilled at controlling the lid in this manner, I couldn't help but thinking that it would be great if I could automate the whole thing -- at the very least -- less embarassing. Even though more than a decade has passed and I no longer have much desire to be an experimental filmmaker, this idea has lingered with me. I always tell people that if given enough time, I will finish any project I start. Thus, I have finally made this long-time dream of having conversations with an autonomous takeout container a reality.
Go Get Stuff
![1A.jpg](/proxy/?url=https://content.instructables.com/FRI/NKVJ/HOUFZWHG/FRINKVJHOUFZWHG.jpg&filename=1A.jpg)
You will need:
(x1) Arduino Mega (Radioshack #276-127)
(x1) Seeed Studio Music Shield v1.0
(x1) 2GB (or less) micro SD card
(x1) PC Board (Radioshack #276-150)
(x1) LM741 op amp (Radioshack #276-007)
(x1) LM386 amplifier (Radioshack #276-1731)
(x1) 470K resistor (Radioshack #271-1133)
(x2) 100K resistor (Radioshack #271-1131)
(x2) 10K resistor (Radioshack #271-1126)
(x1) 1K resistor (Radioshack #271-1118)
(x1) 220uF capacitor (Radioshack #272-1029)
(x1) 10uF capacitor (Radioshack #272-1025)
(x3) 0.1uF capacitor (Radioshack #272-135)
(x1) 10K trimmer (Radioshack #271-282)
(x1) Speaker (Radioshack #273-092)
(x1) Standard servo (Radioshack #273-766)
(x1) M-type plug (Radioshack #274-1569)
(x1) 8 x AA battery holder (Radioshack #270-387)
(x8) AA batteries (Radioshack #23-1582)
(x1) 6" x 6" x 1/8" clear acrylic square
(x1) Fake food (of your choosing)
(x1) Takeout container
(x2) Googily eyes
(x1) Assorted zip ties
(x1) Arduino Mega (Radioshack #276-127)
(x1) Seeed Studio Music Shield v1.0
(x1) 2GB (or less) micro SD card
(x1) PC Board (Radioshack #276-150)
(x1) LM741 op amp (Radioshack #276-007)
(x1) LM386 amplifier (Radioshack #276-1731)
(x1) 470K resistor (Radioshack #271-1133)
(x2) 100K resistor (Radioshack #271-1131)
(x2) 10K resistor (Radioshack #271-1126)
(x1) 1K resistor (Radioshack #271-1118)
(x1) 220uF capacitor (Radioshack #272-1029)
(x1) 10uF capacitor (Radioshack #272-1025)
(x3) 0.1uF capacitor (Radioshack #272-135)
(x1) 10K trimmer (Radioshack #271-282)
(x1) Speaker (Radioshack #273-092)
(x1) Standard servo (Radioshack #273-766)
(x1) M-type plug (Radioshack #274-1569)
(x1) 8 x AA battery holder (Radioshack #270-387)
(x8) AA batteries (Radioshack #23-1582)
(x1) 6" x 6" x 1/8" clear acrylic square
(x1) Fake food (of your choosing)
(x1) Takeout container
(x2) Googily eyes
(x1) Assorted zip ties
Glue
![2A.jpg](/proxy/?url=https://content.instructables.com/FTI/J893/HOHYK53D/FTIJ893HOHYK53D.jpg&filename=2A.jpg)
![2B.jpg](/proxy/?url=https://content.instructables.com/F99/2Y2P/HOHYK53E/F992Y2PHOHYK53E.jpg&filename=2B.jpg)
![2C.jpg](/proxy/?url=https://content.instructables.com/FK4/D3RL/HOHYK53F/FK4D3RLHOHYK53F.jpg&filename=2C.jpg)
Glue your googily eyes onto the front of the takeout container.
Drill and Attach
![3A.jpg](/proxy/?url=https://content.instructables.com/FT1/PMLJ/HOHYGLRH/FT1PMLJHOHYGLRH.jpg&filename=3A.jpg)
![3B.jpg](/proxy/?url=https://content.instructables.com/F83/8H9E/HOHYGLRI/F838H9EHOHYGLRI.jpg&filename=3B.jpg)
![3C.jpg](/proxy/?url=https://content.instructables.com/F6H/6151/HOHYGLRJ/F6H6151HOHYGLRJ.jpg&filename=3C.jpg)
![3D.jpg](/proxy/?url=https://content.instructables.com/F2R/P7L2/HOHYGLRK/F2RP7L2HOHYGLRK.jpg&filename=3D.jpg)
![3E.jpg](/proxy/?url=https://content.instructables.com/FT4/KP2F/HOHYGLRL/FT4KP2FHOHYGLRL.jpg&filename=3E.jpg)
Use the attached template as a guide for cutting a clear plastic lever out of the 1/8" acrylic sheet.
Drill two pairs of 1/8" holes along the outside of the servo horn, such that they line up with the holes in the clear plastic lever.
Zip tie the two together and trim away the excess zip tie tail in order to ensure that extra bit won't interfere withn rotation.
Drill two pairs of 1/8" holes along the outside of the servo horn, such that they line up with the holes in the clear plastic lever.
Zip tie the two together and trim away the excess zip tie tail in order to ensure that extra bit won't interfere withn rotation.
Trim
![4A.jpg](/proxy/?url=https://content.instructables.com/FGP/R90Z/HOHYGLVC/FGPR90ZHOHYGLVC.jpg&filename=4A.jpg)
![4B.jpg](/proxy/?url=https://content.instructables.com/FUP/QKU7/HOHYGLVD/FUPQKU7HOHYGLVD.jpg&filename=4B.jpg)
![4C.jpg](/proxy/?url=https://content.instructables.com/F9K/57DO/HOHYGLVE/F9K57DOHOHYGLVE.jpg&filename=4C.jpg)
Trim a thin slot in the back portion of your fake food to acomodate the clear lever.
Program the Arduino
![12A.jpg](/proxy/?url=https://content.instructables.com/FP3/77RA/HOUFZWMI/FP377RAHOUFZWMI.jpg&filename=12A.jpg)
![12B.jpg](/proxy/?url=https://content.instructables.com/FO0/VIS5/HOUFZWMJ/FO0VIS5HOUFZWMJ.jpg&filename=12B.jpg)
![12C.jpg](/proxy/?url=https://content.instructables.com/FL7/J3GW/HOUFZWML/FL7J3GWHOUFZWML.jpg&filename=12C.jpg)
![12D.jpg](/proxy/?url=https://content.instructables.com/FP3/EVG7/HOUFZWMN/FP3EVG7HOUFZWMN.jpg&filename=12D.jpg)
Load a micro SD card with audio as specified on this page and insert it into the music shield.
Place your music shield onto the Arduino Mega.
Upload the following code the Arduino:
Place your music shield onto the Arduino Mega.
Upload the following code the Arduino:
Build the Circuit
![5B.jpg](/proxy/?url=https://content.instructables.com/FKQ/D7A4/HOHYGM3F/FKQD7A4HOHYGM3F.jpg&filename=5B.jpg)
![5A.jpg](/proxy/?url=https://content.instructables.com/FGX/GFHP/HOHYGM3E/FGXGFHPHOHYGM3E.jpg&filename=5A.jpg)
![takeoutSchematic.png](/proxy/?url=https://content.instructables.com/FGG/45H3/HPZMQJK4/FGG45H3HPZMQJK4.png&filename=takeoutSchematic.png)
Start to build the circuit as specified in the schematic, with the exception of the audio connections and the servo motor.
Plug
![6C.jpg](/proxy/?url=https://content.instructables.com/F6A/WBSE/HOHYGR1J/F6AWBSEHOHYGR1J.jpg&filename=6C.jpg)
![6A.jpg](/proxy/?url=https://content.instructables.com/FFX/U68S/HOHYGR1H/FFXU68SHOHYGR1H.jpg&filename=6A.jpg)
![6B.jpg](/proxy/?url=https://content.instructables.com/FQQ/OR4I/HOHYGR1I/FQQOR4IHOHYGR1I.jpg&filename=6B.jpg)
![takeoutSchematic.png](/proxy/?url=https://content.instructables.com/FTR/9DN7/HPZLL43L/FTR9DN7HPZLL43L.png&filename=takeoutSchematic.png)
Cut the audio cable and expose the signal wire and ground connection.
Solder those to the circuit board as indicated in the schematic.
Basically, the signal connection should connect to the 0.1uF capacitor at the audio in connection, and the ground wire should go to the circuit board's ground plane.
Solder those to the circuit board as indicated in the schematic.
Basically, the signal connection should connect to the 0.1uF capacitor at the audio in connection, and the ground wire should go to the circuit board's ground plane.
Plug Things In
![7A.jpg](/proxy/?url=https://content.instructables.com/FKW/FE1X/HOHYGR4B/FKWFE1XHOHYGR4B.jpg&filename=7A.jpg)
![7B.jpg](/proxy/?url=https://content.instructables.com/F35/QCVW/HOHYGR4E/F35QCVWHOHYGR4E.jpg&filename=7B.jpg)
![7C.jpg](/proxy/?url=https://content.instructables.com/FBG/JEB3/HOHYGR4F/FBGJEB3HOHYGR4F.jpg&filename=7C.jpg)
Plug the circuit board's audio connection into the audio-in jack on the music shield.
Connect the servo motor to the Arduino with solid core wire as specified in the schematic.
Basically....
The servo's red wire should connect to 5V on the PCB.
The servo's brown wire should connect to ground on the PCB.
The servo's orange wire should connect to pin 30 on the Arduino Mega.
Now would also be a good time to connect the Arduino Mega's ground and the 5V connections to the appropriate spots on the PCB (if you have not done so already).
Connect the servo motor to the Arduino with solid core wire as specified in the schematic.
Basically....
The servo's red wire should connect to 5V on the PCB.
The servo's brown wire should connect to ground on the PCB.
The servo's orange wire should connect to pin 30 on the Arduino Mega.
Now would also be a good time to connect the Arduino Mega's ground and the 5V connections to the appropriate spots on the PCB (if you have not done so already).
Plug
![8A.jpg](/proxy/?url=https://content.instructables.com/FU6/931T/HOHYGR8S/FU6931THOHYGR8S.jpg&filename=8A.jpg)
![8B.jpg](/proxy/?url=https://content.instructables.com/F6V/1C0I/HOHYGR8T/F6V1C0IHOHYGR8T.jpg&filename=8B.jpg)
![8C.jpg](/proxy/?url=https://content.instructables.com/FNA/9YVJ/HOHYGR8U/FNA9YVJHOHYGR8U.jpg&filename=8C.jpg)
Twist the M-type plug apart and slide the protective casing onto the wires from the battery holder.
Solder the red wire to the plug's center terminal.
Solder the black wire to the plug's outer ground terminal.
Make sure that the two connections are not touching and then twist the casing back onto the plug.
Solder the red wire to the plug's center terminal.
Solder the black wire to the plug's outer ground terminal.
Make sure that the two connections are not touching and then twist the casing back onto the plug.
Batteries
![9A.jpg](/proxy/?url=https://content.instructables.com/FEL/VV8W/HOHYJT96/FELVV8WHOHYJT96.jpg&filename=9A.jpg)
![9B.jpg](/proxy/?url=https://content.instructables.com/FLO/B6AX/HOHYJT97/FLOB6AXHOHYJT97.jpg&filename=9B.jpg)
![9C.jpg](/proxy/?url=https://content.instructables.com/F0A/QP38/HOHYJT98/F0AQP38HOHYJT98.jpg&filename=9C.jpg)
Insert batteries into the battery holder.
Speaker
![10A.jpg](/proxy/?url=https://content.instructables.com/FLI/DH4Y/HOHYJTH9/FLIDH4YHOHYJTH9.jpg&filename=10A.jpg)
![10B.jpg](/proxy/?url=https://content.instructables.com/F8C/19Y9/HOHYJTHA/F8C19Y9HOHYJTHA.jpg&filename=10B.jpg)
![10C.jpg](/proxy/?url=https://content.instructables.com/FKO/PEZV/HOHYJTHB/FKOPEZVHOHYJTHB.jpg&filename=10C.jpg)
![10D.jpg](/proxy/?url=https://content.instructables.com/FQP/JZSE/HOHYJTHC/FQPJZSEHOHYJTHC.jpg&filename=10D.jpg)
Solder the red wire from the speaker to the audio-out connection on the circuit board, and the black wire to ground.
Insulate the solder joints with either shrink tube or electical tape.
Insulate the solder joints with either shrink tube or electical tape.
Put It Together
![11A.jpg](/proxy/?url=https://content.instructables.com/F7H/6ZV3/HOHYKADW/F7H6ZV3HOHYKADW.jpg&filename=11A.jpg)
![11B.jpg](/proxy/?url=https://content.instructables.com/F1D/N5S3/HOHYKADX/F1DN5S3HOHYKADX.jpg&filename=11B.jpg)
![11C.jpg](/proxy/?url=https://content.instructables.com/FON/EXV4/HOHYKADY/FONEXV4HOHYKADY.jpg&filename=11C.jpg)
![11D.jpg](/proxy/?url=https://content.instructables.com/FWK/T66H/HOHYKADZ/FWKT66HHOHYKADZ.jpg&filename=11D.jpg)
Place the circuitry at the bottom of the takeout container.
Position the servo motor in the back such that the lever is situated between the slot in the fake food and it is elevated enough to push the lid up and down.
Place the fake food on top and close the lid of the container.
It should now be doing its animatronic thing.
Position the servo motor in the back such that the lever is situated between the slot in the fake food and it is elevated enough to push the lid up and down.
Place the fake food on top and close the lid of the container.
It should now be doing its animatronic thing.