Elephant Animation
revised 08-19-10
Objective: Design and construct an
animation where a Playmobil elephant's head and trunk raise as the
elephant trumpets loudly. This animation will become part of a new layout at Pittsburgh's Children's Hospital. For more information on the layout that was designed and built by the Pittsburgh Garden Railway Society see: http://pittsburghgardentrains.com/Childrens_hospital_layout-2009/index.htm
|
Video showing single "Trumpet" per button push
(To see the animation in action right click the box below and select "Play")
|
Single Trumpet Video (based on software shown below)
(To see the animation in action right click the box below and select "Play")
|
Circuit design: Most PIC and PICAXE chips can control model airplane servos. These servos are ideal for animating any number of things on a model railroad layout. Use of servos has been explored in great detail in another article, Animate Your Layout With Servos For this animation a very small servo (a micro-servo) will be placed inside of the elephant. These servos are readily available on eBay ( search eBay for "micro servo") In the two photos below you can clearly see the servo and the control wire that goes to the trunk. A small section from one of the servo's horns was glued into a hole in the bottom of the trunk to facilitate moving it. The servo itself was glued in with hot melt glue. This make removal and replacement easy. The servos have been lasting 4-6 months at Children's - not bad for such a small unit!
|
|
In this photo you can see the section of a servo
horn that was glued into a small hole that was cut into the bottom
of the trunk with a Dremel. I drilled three very small holes
side by side to get space to insert the piece of the horn then used
epoxy to glue it in.
The fitting in the center of the photo (Du-Bro part # 139) made adjusting the length of the control wires quite easy. You can also see that one of the internal posts (just above the fitting) was cut down to provide clearance for the wire. When installing the horn on the servo make sure the servo is rotated all the way counter clockwise when the horn is in the position shown below. It is OK to rotate it manually before putting the screw into the horn, You can see here that some of the elephant's body was ground away (center of the photo) to allow the wire to exit. |
Disassembling the Elephant The elephant is from Playmobil (see: http://store.playmobilusa.com/on/demandware.store/Sites-US-Site/en_US/Product-Show?pid=7017 ) The larger elephant can be disassembled by removing two screws. One is located behind the left eye. Gently pry out the plastic plug that makes up the eye - the screw is behind it. The other screw is in a slot behind the left ear. The head comes apart easily. Pull the two left legs off or pry them off. Now the two halves of the body can be separated. |
Schematic:
|
Sound Unit The sound for the elephant comes from a small MP3 file player that has been described in great detail in another TrainElectronics.com article. Please refer to: http://www.trainelectronics.com/MP3_USB/index.htm The sound file is here:
|
Completed Unit The completed Elephant Animation Unit is shown here. The main circuit board is to the left. It has a connection (3 wire plug in upper right) that goes to the servo - note that the brown wire goes to the pin closest to the center of the board (marked -). The power connection goes to the red & black wires at the bottom. The sound unit is the blue board to the right. Speakers plug into the red receptacle at the bottom. The demo speaker is at the right. It is not needed and can be disconnected by cutting either or both of the yellow wires that go to it. The button at the far left is to start the unit. Another button can be connected by the two pins in the upper left corner of the board. This close-up shows the pins for the external switch (red circle) and the connection for the servo (yellow circle) - orange wire at the top & brown wire at the bottom.
|
SOFTWARE The program for the animation is written for a PIC 12F683 processor. It is programmed in PIC Basic Pro - the listing is below.
|