Animatronic Talking Takeout Container

by randofo in Circuits > Arduino

22743 Views, 245 Favorites, 0 Comments

Animatronic Talking Takeout Container

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
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

Glue

2A.jpg
2B.jpg
2C.jpg
Glue your googily eyes onto the front of the takeout container.

Drill and Attach

3A.jpg
3B.jpg
3C.jpg
3D.jpg
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.

Trim

4A.jpg
4B.jpg
4C.jpg
Trim a thin slot in the back portion of your fake food to acomodate the clear lever.

Program the Arduino

12A.jpg
12B.jpg
12C.jpg
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:


Build the Circuit

5B.jpg
5A.jpg
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
6A.jpg
6B.jpg
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.

Plug Things In

7A.jpg
7B.jpg
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).

Plug

8A.jpg
8B.jpg
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.

Batteries

9A.jpg
9B.jpg
9C.jpg
Insert batteries into the battery holder.

Speaker

10A.jpg
10B.jpg
10C.jpg
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.

Put It Together

11A.jpg
11B.jpg
11C.jpg
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.