Arduino animatronics- make your awesome costumes more awesome!

 by Honus
Contest WinnerFeatured
ServoBoardFinished.jpg
Here's how to add lights, sound and action to your favorite Halloween project using the open source Arduino microcontroller. Arduino is easy to learn to use and it opens up a whole new world for costume builders and creature creators. If you want to learn how to connect wires, servos, LEDs and use sound effects to add that something special to your latest project then this is for you.

I'll show you how to make a neat little compact Arduino servo controller board with built in servo connectors that is perfect for costuming and haunted house applications. There are multiple code examples, wiring diagrams and I'll show you how to connect sensors and even how to connect two controllers using wireless radios.

Here's a little movie clip of what is easily possible- an animatronic Predator cannon with laser sight, cannon firing sound and head tracking motion control.




Here's an Iron Man hand repulsor with servo to open the forearm missile compartment. Follow along and find out how to make your awesome costumes more awesome...
 

Update: My instructable for showing how to make an animatronic Stargate helmet is here-
http://www.instructables.com/id/Animatronic-Stargate-helmet/

Note- While this instructable is written for the beginner, this tutorial assumes you know how to use a soldering iron and other assorted tools like wire strippers and wire cutters. Please be sure to take proper safety precautions, wear safety glasses when using cutting tools and have adequate ventilation when soldering. If you aren't yet comfortable soldering small surface mount components don't fret- I've posted links in the reference section that will help you become a soldering champ in no time.

 
Remove these adsRemove these ads by Signing Up

Step 1: First you need an Arduino

ProMiniServoBoardPCB.jpg
ProMiniServoBoardv1.3.jpg

Arduino? What exactly is Arduino?

Arduino is an open source microcontroller- essentially it is a small computer with an easy to use cross platform programming language. It allows you to create interactive objects based on sensory inputs (physical computing.) You can use it to do something simple like make an LED fade or have a servo move when you push a button or have it do something very complex like control a robot by processing sensor inputs, send the inputs to a computer over a wireless network and then send commands back to the robot. The applications are really limited only by your imagination and there are thousands of examples of cool projects all over the Web. There are several books about Arduino and its capabilities and I've listed a few in the reference section.

Which Arduino to use?

There are several variations of the Arduino controller available so which one do you use? It depends on your application. Some have more input pins than others if you need a lot of sensor inputs. For the purposes of this instructable you really can use any Arduino you like as the information presented applies to most every version. Here is a spreadsheet that shows most of the current variations available-
https://spreadsheets.google.com/ccc?key=0AsCUiP6WbJIvcG8xalA3QVdmb3JVT0ptWE9VNC02WEE&hl=en#gid=0

If you are going to use an Arduino Uno or Mega or any Arduino that has built in USB then you can skip to the getting started section.
 

Building a servo board

Since my focus is mainly on costume building I decided to use the Sparkfun Arduino Pro Mini and then build a compact servo application board for it that has multiple servo outputs, analog inputs and digital outputs. I also added a socket for an Adafruit Xbee wireless radio adapter as well as a charging circuit for a single cell LiPo battery to power the controller.

The reasons I really like the Pro Mini are its very small form factor, low cost and low power requirements. It operates on 3.3V, which means it can be powered by a single LiPo cell and that makes it easy when connecting sensors that run on 3.3V.

The latest version servo board has eight servo outputs, four digital outputs and six analog inputs. The servo outputs are also digital outputs- they're just configured to make it really easy to connect hobby servos. The earlier version seen in the photos has six servo outputs. Each servo output has three pins- ground, power and signal. The analog inputs are configured the same way- each input has three pins- ground, power and signal. This configuration makes it super easy to connect individual sensors. The board measures 1.75" x 2.30" so it's pretty small.
 

The board has a circuit for charging the LiPo cell that powers the controller. There is a mini USB port for 5v input power. Simply connect the battery and then plug in a USB cable and the battery will automatically charge. There is a charging indicator- the LED is on when the battery is charging and then it will automatically turn off when the battery is fully charged.
 

The mini USB port will also power the controller, even without a battery connected. The mini USB port is only used as a power source connector while charging or during times when a LiPo battery is not available- there is no data transmission using the mini USB port and you are limited by the amount of power a USB port can provide.
 

Code is uploaded to the controller using a USB to serial adapter (more on this later.) This adapter can also power the controller over USB without the need to connect the battery. This comes in really handy when you're testing code and you want to power the controller without having to connect the LiPo battery.

I'm providing all the necessary EAGLE files so people can modify the design to suit their own needs.

EAGLE can be downloaded here- http://www.cadsoftusa.com/

1-40 of 76Next »
MechAtronicsMan says: Apr 30, 2013. 3:53 PM
hi um i was wondering about animatronics and what i would need to go to college for in order to buld,design,and program animatronics and i noticed what you made was cool. so do you have any tips on what schools to go to or what programs to take?
Honus (author) in reply to MechAtronicsManApr 30, 2013. 8:20 PM
I would look at mechanical engineering, robotics, 3D design/CAD, electronics and classes that involve physical computing. Animatronics covers a wide variety of disciplines- molding, casting, fabrication, mechanics, hydraulics, pneumatics, electronics, programming, etc. There's a lot of problem solving that involves thinking about how you want things to move and then making mechanisms that fit within a limited volume.

There are classes and workshops for Arduino to get your feet wet in the electronics area and Stan Winston School has videos you can watch that cover all aspects of creature fabrication. They specifically have a couple of videos by Rick Lazzarini of The Character Shop that covers radio control animatronics. Check it out here- http://www.stanwinstonschool.com

Rick Lazzarini also teaches people here- http://www.animatronicsinstitute.com/

If you have any other questions just let me know!
spyderskiss says: Apr 5, 2013. 8:15 AM
Thanks so much...all of this makes alot of sense...I know what I want but no idea how to get there and have never done anything like this before. Sadly I have not even found anything prebuilt out there that does what I want either (my 2nd resort is always to cannablize anything premade).
I think it would be amazing if the eyes lit up when the sound effect when off...you are going to have to email me or else this post will get very long, but a list of parts would be a fantastic start. As far as sounds I would love a Wolf howl and growl/snarl too but I may be well overstepping my novice skills
Honus (author) in reply to spyderskissApr 5, 2013. 8:24 AM
It's definitely possible to do everything you want. :) just message me your email and I'll help you put it together.
spyderskiss in reply to HonusApr 15, 2013. 5:23 AM
Email me at spyderskiss@gmail.com
I found an online dealer who had the led lights prewired to 9voltr cap with switch so I have them but will still need help on the sound and synching the eyes up to the sound. I am very tempted to just order an animated halloween prop that seems to have most of what I want..but would need to disassemble the whole thing and cannabalized the animatronics. (lunging cemetary dog prop)
spyderskiss in reply to HonusApr 9, 2013. 9:14 AM
email me anytime with the list @ spyderskiss@gmail.com.
Thanks again for the help. I can't wait ti get started.
spyderskiss says: Apr 2, 2013. 6:22 PM
That would be so great. Any suggestions on where I could pick up the parts I would need? Then if you can show me how to wire it up I would be so grateful. I am just totally lost when it comes to this type of thing.
Honus (author) in reply to spyderskissApr 3, 2013. 6:09 PM
Adafruit is one of my favorite companies- they have Arduinos, battery holders, LEDs, etc. I can definitely help you wire it up. :)
If I get a chance in the next day or two I'll make a parts list for you- basically you want an Arduino Uno, Wave Shield, 9V battery/holder, a couple LEDs and a couple fingertip switches to activate your sounds.

What I do is write a list of what I want my costume to do and then make a plan from there. So How many sounds do you want? Do you want the eyes to light up with the sound or independent of the sound? That kind of thing. Make sense?
spyderskiss says: Mar 30, 2013. 5:43 AM
i really want to make my werewolf costume either growl or howl this year but i am really unsure how to do any of this> i did thought i could simply get some little led lights to put behind the eyes to make the glow but again pure beginner>
Honus (author) in reply to spyderskissMar 30, 2013. 7:30 AM
That's pretty easy to do. You can use a WaveShield from Adafruit for the sound. Use a fingertip button to activate it. You can even have multiple sounds. Putting LEDs in the eyes is easy- I can show you to wire it all up.
spyderskiss says: Jun 14, 2008. 10:51 PM
okay. I know nothing about boards but I would love to have one with sound and simply to light up my costumes eyes. Is this really idiot and budget friendly to do? I could really use some advice from other costumers.
Honus (author) in reply to spyderskissMar 29, 2013. 6:33 PM
I'm happy to help you figure out a solution for your costume. Can you be more specific about exactly what it is you want to do? Please feel free to message me for help at any time.
Build_it_Bob says: Feb 21, 2013. 7:44 PM
The best Instrucable I have ever read ( for the second time now) . This is an awesome share , many thanks for all the example code and links .
Build_it_Bob
Honus (author) in reply to Build_it_BobFeb 21, 2013. 7:55 PM
Thanks!! Glad you like it. If you ever have any questions about it just let me know.
TryChick says: Feb 4, 2013. 8:07 AM
Honus. Great tutorial. Tried the link to the PCB board and it comes up as 404 missing. Am I supposed to upload your zipped file as is to batchpcb and and they do a run with however many boards I requested when they get enough to send an order off?
Honus (author) in reply to TryChickFeb 13, 2013. 8:42 PM
Well I've been trying to get the design through Batch PCB but no luck- lots of people are having the exact same problems with their designs. I know the design is fine as I haven't changed any of the design parameters and everything checks out in EAGLE. This has been going on for months and they still haven't fixed it. Looks like I'm off to find a new supplier...
Honus (author) in reply to TryChickFeb 4, 2013. 8:30 AM
I made a couple of revisions to the board a few months ago and Batch PCB has been having problems with their system for several months so I haven't been able to get the new design uploaded to their service. I'll try again tonight after I get home from work. If it doesn't work I'll find a new service- possibly Seed studio.

If you want to send the file to another service you need to open it in EAGLE and then bundle the necessary gerber files (usually seven files total) and send them as a .zip file to your service.
vivianprendergast25 says: Jun 27, 2012. 12:43 PM
would it possible or do you know of where id get a servo pcb like yours without much trouble as im useless with soldering.
Honus (author) in reply to vivianprendergast25Jun 27, 2012. 3:49 PM
What do you mean by servo pcb? All of the bare circuit boards are available- they're listed on the tools and materials page. Do you mean you need someone to build it for you?
ConcordStud733 says: Jan 15, 2011. 8:22 AM
Hey there Honus.
I was just wondering, im getting into micro controllers now I know how to solder but my main goal is to just have a couple flex sensors control a couple servos and possibly integrate an lcd screen in at some point in time. Is the controller and mini you have in this instructable able to use an lcd?
and if I just bought an Uno, would I need a controller board and circuit like you built or would I just be able to hook the flex sensors and servos straight to the unoo?
I hope u can help me out I've searched for a few days to answr these questions and haven't found an answer. Thanks alot for ur help
Honus (author) in reply to ConcordStud733Jan 15, 2011. 3:30 PM
You can add an LCD screen to any Arduino- have a look here:
http://www.ladyada.net/learn/lcd/charlcd.html

You don't necessarily need a controller board (or shield) but it makes hooking up sensors and servos a lot easier. You can also use a breadboard if you just want to plug stuff in and try it out and that's what I would recommend if you're just starting out. If you look at the examples you can see diagrams how to hook up a servo and flex sensor directly to the Arduino using a breadboard.

Hope this helps- let me know if you have any other questions!
ConcordStud733 in reply to HonusJan 26, 2011. 7:32 PM
Thanks alot for help.

Did you actually make a forearm missle compartment? Im trying to figure out how I can make an arm mount without buying an expensive medical bracee and not out of paper lol
Honus (author) in reply to ConcordStud733Jan 26, 2011. 7:52 PM
No I haven't made the compartment yet but it's a pretty simple mechanism. For an idea as to how to make one have a look here-
http://www.siwdat.com/forum/viewtopic.php?f=227&t=208
thepred2012 says: May 1, 2012. 6:14 PM
Would you be willing to do another one and sell it? I am no electrical genius, even the code confused me...I am trying to put a good predator outfit together for 2014 Comicon. Any help is appreciated. You are truely gifted!

Honus (author) in reply to thepred2012May 1, 2012. 6:25 PM
Once my friend gets the backpack and cannon finished kits will be offered. No idea on pricing yet but hopefully soon.
c_Dub1082 says: Jan 10, 2012. 4:54 PM
First I want to say I love your project. I have been wanting to do something similar for a very long time. Love the movie as well. I am currently doing the project for my senior project and things are going ok. We are haveing some issues with the x-axis on the accelerometer. It seems that in order to pan the x-axis we have to do a barrel role with the accelerometer. We tried all kinds of orientations but it will not work any other way. Any suggestions??
c_Dub1082 in reply to c_Dub1082Jan 11, 2012. 5:26 PM
Thanks man, we finally got the orientation right. You were right that it takes a little getting used to. We appreciate it.
Honus (author) in reply to c_Dub1082Jan 13, 2012. 7:53 PM
Cool- if you have any other questions just let me know!
Honus (author) in reply to c_Dub1082Jan 11, 2012. 4:43 PM
Accelerometers only work with respect to gravity so that is why it works the way it does. There is further explanation in the FAQ section.
cpaternoster says: Nov 20, 2011. 8:04 AM
do you sell this mechanism? i dont understand if you control it or if it has a motion sensor. Thansk, its awesome
Honus (author) in reply to cpaternosterNov 20, 2011. 10:00 AM
Not yet- I'm waiting for the complete backpack to be finished. The person wearing the costume controls it. You have two fingertip buttons- one activates the cannon and the other "fires" it. When the cannon is activated it raises into the firing position and tracks your head movements.
uj_boy says: Oct 29, 2011. 9:32 AM
Hi There Honus,

Apologies for potentially silly question - i'm very new to this!

I'm looking at building the War Machine Cannon; I have an Arduino UNO (but have no need for the sound, so don't have adafruit). I also have the Pan/Tilt you suggested (powered by the 2 Servos motors). Looking At your diagram, will i need an Arduino Mini Pro Also? Or can i just use the UNO? i must admit, i'm a bit confused :s.

Thanks!

Andy
Honus (author) in reply to uj_boyOct 29, 2011. 1:20 PM
Sorry- I should clarify that- you use the Arduino UNO in place of the Pro Mini board.
Honus (author) in reply to uj_boyOct 29, 2011. 1:16 PM
You can just use the UNO if all you want is the pan/tilt.
jackjackattack says: Jul 12, 2011. 3:38 PM
how long did it take to build the cannon?
Honus (author) in reply to jackjackattackJul 12, 2011. 11:00 PM
If you mean just the cannon resin casting my friend makes them. As far as the cannon arm design goes I'm in the middle of redesigning it right now.
the cage says: Jan 16, 2011. 10:48 AM
Hi Honus.
First of all: Your work is absolutly great!
I'm working on a Iron Man arcreactor + 1 lower arm with hand repulsor, like seen in one scene of the first movie. in the beginnings I experimentated with some low budget solution: Soundmoduls of greetingcards. Perhaps a tip for people with very low budget. But i want to synchron the lighteffects with the sound, so your instructable is perfect for me.
My first question:
Is it right, that you need an Arduino uno under the wave shield? Is there nothing to programm onto this Arduino?
Second question:
Can i put 2 different sounds on the waveshield, wiche are played with different input pins high?
Third question:
Why do you power the two arduinos with two 9V Blocks?
My planed setup: 2 x Arduino uno, 1x wave shield , 2 bend senors, two led circuits (open the hand -> repulsor starts glowing; spread thumb away from forefinger -> second led circuit with blast sound), powered by 9v blocks + step down voltage regulator.
Thanks again for your awsome instructable!
Felix
Honus (author) in reply to the cageJan 16, 2011. 7:41 PM
Thanks! Yes, the Wave shield fits on top of an Arduino Uno. You program the Uno to play the sound files. There is a link to the code used that will allow you to play six different sound files. The diagram just shows 9V power to both Arduinos- it's doesn't have to be two separate batteries.
the cage in reply to HonusJan 19, 2011. 2:03 PM
Oh sorry, missed that...
I just looked a little bit closer into the programming. With another if condition in the first one, it should be possible to use one bend sensor as tricker with two threshold, right? open hand -> threshold 1 -> glowing repulsor, finger straight -> threshold 2 -> blast effects.
By the way, I changed the power setup: I will use 3V batteries for the LED instead of the step down regulator. If theres no energy for the Arduinos left, there will be still energy for the LED's of the Arcreactor.
Thanks again for your instructable. Without your great instruction, I would never start the project with Arduinos. But the potential of the Arduinos is just huge!
Honus (author) in reply to the cageJan 19, 2011. 2:33 PM
Yep- you just set individual threshold limits for the two different bend sensors and treat them as two separate inputs. Make sure to post your project when it's done!
1-40 of 76Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!