Groovin' Grover: a Microcontroller-based Marionette
by talk2bruce in Circuits > Microcontrollers
17804 Views, 57 Favorites, 0 Comments
Groovin' Grover: a Microcontroller-based Marionette
![0 - 1 - Groovin Grover.JPG](/proxy/?url=https://content.instructables.com/FNM/437V/GJQEA3V0/FNM437VGJQEA3V0.jpg&filename=0 - 1 - Groovin Grover.JPG)
![0 - 2 - Groovin Grover.JPG](/proxy/?url=https://content.instructables.com/F0J/MQPE/GK0YUZIE/F0JMQPEGK0YUZIE.jpg&filename=0 - 2 - Groovin Grover.JPG)
Groovin' Grover is a marionette manipulated by four hobby servos and a Pololu Maestro microcontroller-based servo controller. You can control each of Grover's limbs independently and make him walk, wave, and most entertaining - make him dance. Groovin' Grover is easy to assemble and wire up. The Maestro Servo microcontroller is easy to program using free software from Pololu.
With a simple program I was able to make Groovin' Grover dance to a popular dance tune from the 1980's and one from 2005. As you can see in the videos below, Grover has been programmed to dance to the music and at times his moves seem uncanny.
The first video shows a close-up of Groovin' Grover dancing to "Safety Dance" by Men Without Hats. The second video shows Groovin' Grover, his stage, and the servos that control his movements. He's dancing to "Feels Good Inc." by Gorillaz. If you listen carefully, you can hear the servos and if look carefully, you can see the transparent nylon threads that connect the servos to his limbs.
This instructable has been entered in the 18+ category for the Robots contest.
With a simple program I was able to make Groovin' Grover dance to a popular dance tune from the 1980's and one from 2005. As you can see in the videos below, Grover has been programmed to dance to the music and at times his moves seem uncanny.
The first video shows a close-up of Groovin' Grover dancing to "Safety Dance" by Men Without Hats. The second video shows Groovin' Grover, his stage, and the servos that control his movements. He's dancing to "Feels Good Inc." by Gorillaz. If you listen carefully, you can hear the servos and if look carefully, you can see the transparent nylon threads that connect the servos to his limbs.
This instructable has been entered in the 18+ category for the Robots contest.
Parts List
![1 - 0 - Grover Finger Puppet.JPG](/proxy/?url=https://content.instructables.com/FI6/WQDA/GJQEFXAR/FI6WQDAGJQEFXAR.jpg&filename=1 - 0 - Grover Finger Puppet.JPG)
![1 - 1 - Servos and uC.JPG](/proxy/?url=https://content.instructables.com/F9X/1ARQ/GJQE91BA/F9X1ARQGJQE91BA.jpg&filename=1 - 1 - Servos and uC.JPG)
![1 - 2 - STD TS-53 Servo.JPG](/proxy/?url=https://content.instructables.com/F52/37LM/GJQE91BB/F5237LMGJQE91BB.jpg&filename=1 - 2 - STD TS-53 Servo.JPG)
![1 - 3 - Pololu Maestro Micrcontroller.JPG](/proxy/?url=https://content.instructables.com/FKY/69IE/GJQEFXB6/FKY69IEGJQEFXB6.jpg&filename=1 - 3 - Pololu Maestro Micrcontroller.JPG)
![1 - 4 - Futaba J Plug Cable.JPG](/proxy/?url=https://content.instructables.com/FJ6/Y1SG/GJQEFXBD/FJ6Y1SGGJQEFXBD.jpg&filename=1 - 4 - Futaba J Plug Cable.JPG)
![1 - 6 - 5V Power Supply.JPG](/proxy/?url=https://content.instructables.com/FKO/P8ZF/GJQEFXBK/FKOP8ZFGJQEFXBK.jpg&filename=1 - 6 - 5V Power Supply.JPG)
![1 - 7 - USB Cable.JPG](/proxy/?url=https://content.instructables.com/FKV/CN2P/GJQEJID0/FKVCN2PGJQEJID0.jpg&filename=1 - 7 - USB Cable.JPG)
![1 - 8 - Platforms.JPG](/proxy/?url=https://content.instructables.com/F90/5NMI/GJQE91BD/F905NMIGJQE91BD.jpg&filename=1 - 8 - Platforms.JPG)
![1 - 9 - Platform Hardware.JPG](/proxy/?url=https://content.instructables.com/FII/PJPN/GJQEFXCB/FIIPJPNGJQEFXCB.jpg&filename=1 - 9 - Platform Hardware.JPG)
![1 - 10 - White Cloth.JPG](/proxy/?url=https://content.instructables.com/FNM/YC5O/GJQE91BE/FNMYC5OGJQE91BE.jpg&filename=1 - 10 - White Cloth.JPG)
![1 - 11 - Clear Nylon Thread and Needle.JPG](/proxy/?url=https://content.instructables.com/F38/OPAE/GJQEJID4/F38OPAEGJQEJID4.jpg&filename=1 - 11 - Clear Nylon Thread and Needle.JPG)
![1 - 12 - Additional Parts.JPG](/proxy/?url=https://content.instructables.com/FBR/88BX/GK3TO1P8/FBR88BXGK3TO1P8.jpg&filename=1 - 12 - Additional Parts.JPG)
You will need the following parts to assemble Groovin' Grover and his stage.
Grover's Brawns and Brains:
Grover's Brawns and Brains:
- Four small inexpensive hobby servos like the TS-53 from Tower Hobbies.
- One Pololu Micro Maestro 6-Channel USB Servo Controller available from Sparkfun and other internet sites.
- One 6" Futaba J Plug or equivalent available from Tower Hobbies.
- One 5 Volt Wall Wart (AC adapter). I had an extra one but you can find used ones at Thrift stores or new ones at electronics stores.
- One 3 to 6 foot USB cable with a male USB mini-B connector and a male type A connector.
- Two 1" pieces of Heat Shrink Tubing (alternatively, you can use electrical tape).
- One 5 - 6" Grover finger puppet.
- Four 1/4"-20 hex nuts (these will be used to add weight to Grover)
- One small (1") safety pin (this will be use to help hold the weights inside Grover.)
- Two 8" x 12" x 1/4" pieces of plastic, wood, Masonite, or other firm non-conducting material. I used yellow plastic I had purchased for another project I never got around to build.
- Four 12" 1/4"-20 threaded rods.
- Sixteen 1/4"-20 hex nuts.
- Four self adhesive rubber feet (medium size 1/4 to 1/2" in diameter, 1/2" tall).
- Two and a half feet of self adhesive Velcro strips.
- One 11 3/4" x 18 3/4" white cloth for the backdrop on the stage. I cut an old pillow case to make mine.
- Two small plastic wire clamps (see photo below).
- Two small machine screws and nuts for the wire clamps (see photo below).
- Clear Nylon Thread
- Sewing Needle
- Washer (1" outer diameter)
- Blue Painter's Tape.
- Four small paper clips.
- Pololu Maestro Servo Controller User's Guide: HTML version or PDF.version.
- Maestro software and drivers are available at File Downloads section of the Micro Maestro Resources web page.
- Soldering iron and solder
- Wire cutters / Wire Strippers
- Scissors
- Small wrench for use with the 1/4"-20 hex nuts
- Electric drill and 1/4" drill bit and drill bit to match machine screws for the wire clips
- Heat Gun for the heat shrink tubing
- Voltmeter
- Ruler
- PC for developing and downloading programs to the microcontroller. The Pololu software currently only supports Windows and Linux.
Overview
![2 - 1 - Grovin Grover Placement.jpg](/proxy/?url=https://content.instructables.com/F9N/E1N2/GJQEA05U/F9NE1N2GJQEA05U.jpg&filename=2 - 1 - Grovin Grover Placement.jpg)
![2 - 3 - Grovin Grover and his Stage.JPG](/proxy/?url=https://content.instructables.com/FML/MKDX/GJQEA0TZ/FMLMKDXGJQEA0TZ.jpg&filename=2 - 3 - Grovin Grover and his Stage.JPG)
![2 - 2 -Servo and Microcontroller Placement.jpg](/proxy/?url=https://content.instructables.com/FBB/6O7F/GJQEA05W/FBB6O7FGJQEA05W.jpg&filename=2 - 2 -Servo and Microcontroller Placement.jpg)
Groovin' Grover is a microcontroller-based marionette. Each of Grover's limbs are controlled independently: he can be made to walk, wave, and of course, dance. Groovin' Grover is controlled by a Pololu Maestro 6-Channel Servo Controller. I chose this microcontroller because it is specially designed for controlling servos, is very easy to wire, has a simple programming language, has superb software for developing and debugging programs, and is inexpensive ~$20.
Mechanically, Grovin' Grover is based on a Grover finger puppet attached to four inexpensive hobby servos. The servos are attached to each of his limbs allowing for independent movement. I built a simple "stage" for holding Grover and the servos in place. I used Velcro to attach Grover and the servos to the stage so that the parts could be easily moved and adjusted for getting Grover into proper position. Painter's tape and paper clips are used to attach threads to the servo horns: the paper clips can be bent to get proper movement and the painter's tape is easily removed if threads ever need to be replaced.
The first figure below shows how Groovin' Grover is attached to the servos when he is in his initial position. Transparent nylon thread is used to attach his limbs to the servos. When rotated from the initial position, the servos pull up to raise his feet or hands and can be rotated back to the original position to lower his feet or hands. Programming is very simple: in the Maestro programming language the command "8000 1 servo" would cause servo 1 to rotate to the maximum position and raise his left hand. The command "4000 1 servo" would return servo 1 to the original position thus lowering his hand. If you put those commands in a loop with a small time delay after each servo command, Groovin' Grover would appear to be waving at you. The code that Groovin' Grover uses to dance to the videos on the first page of this instructables is explained on the last step. The Popolu documentation for the microcontroller is well written and explains how to use the software and in detail how to program the microcontroller.
The second diagram shows Groovin' Grover and his stage. His stage is made of two platforms supported by threaded rods and hex nuts. Grover is suspended 4" from the upper platform: a piece of transparent nylon thread is threaded through the top of his head and attached to a washer. The washer is held in place on the upper platform using Velcro. Rubber feet are affixed to the bottom of the stage to prevent the washers from scratching the surface of where the stage is placed and to ensure that the stage doesn't rock back and forth when the servos are moving. A piece of white cloth hangs from the back of the stage as a backdrop. The backdrop is affixed to the bottom of the upper platform by Velcro. The backdrop hides power and USB cables and allows the transparent nylon thread to blend in with the background allowing Groovin' Grover to appear to float.
The third diagram shows the top of the upper platform where Groovin' Grover's electronics and servos are located. The PC-based program development and debugging software communicates with the microcontroller via the USB cable. Microcontroller power is supplied by the USB cable. The servos are powered by a 5 volt wall wart. The USB and power cables are held in place using plastic wire clamps: the wire clamps prevent the microcontroller from being accidentally pulled off the top of the platform. The microcontroller is affixed to the platform with a small piece of Velcro.
Each servo is attached to the microcontroller using standard connectors that come with the servos. Servo 0 controls the left foot; servo 1 controls the left hand; servo 2 controls the right hand; servo 3 controls the right foot. The servos need to be connected to the microcontroller exactly as shown in the diagram for Groovin' Grover to move properly. More information about the various connectors on the microcontroller can be found in the Pololu Maestro Servo Controller User's Guide.
Note: Throughout this instructable when Grover's limbs are described as left or right that is his left or right as he faces you.
The process for programming Groovin' Grover is simple. You launch the Maestro control center software and type your program into the "Script" window. You click "Apply Settings" to download the code to the microcontroller and then "Run Script". The control center includes features for debugging and manually moving servos as well as alternate way to develop scripts without using the programming language. I found the software to be very easy to use and the documentation to be well written.
Mechanically, Grovin' Grover is based on a Grover finger puppet attached to four inexpensive hobby servos. The servos are attached to each of his limbs allowing for independent movement. I built a simple "stage" for holding Grover and the servos in place. I used Velcro to attach Grover and the servos to the stage so that the parts could be easily moved and adjusted for getting Grover into proper position. Painter's tape and paper clips are used to attach threads to the servo horns: the paper clips can be bent to get proper movement and the painter's tape is easily removed if threads ever need to be replaced.
The first figure below shows how Groovin' Grover is attached to the servos when he is in his initial position. Transparent nylon thread is used to attach his limbs to the servos. When rotated from the initial position, the servos pull up to raise his feet or hands and can be rotated back to the original position to lower his feet or hands. Programming is very simple: in the Maestro programming language the command "8000 1 servo" would cause servo 1 to rotate to the maximum position and raise his left hand. The command "4000 1 servo" would return servo 1 to the original position thus lowering his hand. If you put those commands in a loop with a small time delay after each servo command, Groovin' Grover would appear to be waving at you. The code that Groovin' Grover uses to dance to the videos on the first page of this instructables is explained on the last step. The Popolu documentation for the microcontroller is well written and explains how to use the software and in detail how to program the microcontroller.
The second diagram shows Groovin' Grover and his stage. His stage is made of two platforms supported by threaded rods and hex nuts. Grover is suspended 4" from the upper platform: a piece of transparent nylon thread is threaded through the top of his head and attached to a washer. The washer is held in place on the upper platform using Velcro. Rubber feet are affixed to the bottom of the stage to prevent the washers from scratching the surface of where the stage is placed and to ensure that the stage doesn't rock back and forth when the servos are moving. A piece of white cloth hangs from the back of the stage as a backdrop. The backdrop is affixed to the bottom of the upper platform by Velcro. The backdrop hides power and USB cables and allows the transparent nylon thread to blend in with the background allowing Groovin' Grover to appear to float.
The third diagram shows the top of the upper platform where Groovin' Grover's electronics and servos are located. The PC-based program development and debugging software communicates with the microcontroller via the USB cable. Microcontroller power is supplied by the USB cable. The servos are powered by a 5 volt wall wart. The USB and power cables are held in place using plastic wire clamps: the wire clamps prevent the microcontroller from being accidentally pulled off the top of the platform. The microcontroller is affixed to the platform with a small piece of Velcro.
Each servo is attached to the microcontroller using standard connectors that come with the servos. Servo 0 controls the left foot; servo 1 controls the left hand; servo 2 controls the right hand; servo 3 controls the right foot. The servos need to be connected to the microcontroller exactly as shown in the diagram for Groovin' Grover to move properly. More information about the various connectors on the microcontroller can be found in the Pololu Maestro Servo Controller User's Guide.
Note: Throughout this instructable when Grover's limbs are described as left or right that is his left or right as he faces you.
The process for programming Groovin' Grover is simple. You launch the Maestro control center software and type your program into the "Script" window. You click "Apply Settings" to download the code to the microcontroller and then "Run Script". The control center includes features for debugging and manually moving servos as well as alternate way to develop scripts without using the programming language. I found the software to be very easy to use and the documentation to be well written.
Construct Servo Power Supply
![3 - 1 - Gather Parts.JPG](/proxy/?url=https://content.instructables.com/FKN/C94B/GJQED7ID/FKNC94BGJQED7ID.jpg&filename=3 - 1 - Gather Parts.JPG)
![3 - 2 - Cut Off Tip.JPG](/proxy/?url=https://content.instructables.com/FC4/PS8S/GJQEJIDK/FC4PS8SGJQEJIDK.jpg&filename=3 - 2 - Cut Off Tip.JPG)
![3 - 3 - Strip Ends.JPG](/proxy/?url=https://content.instructables.com/FDL/LG27/GJQEFXEM/FDLLG27GJQEFXEM.jpg&filename=3 - 3 - Strip Ends.JPG)
![3 - 4 - Check Polarity.JPG](/proxy/?url=https://content.instructables.com/FJ5/S5EV/GJQED7IJ/FJ5S5EVGJQED7IJ.jpg&filename=3 - 4 - Check Polarity.JPG)
![3 - 5 - Check Polarity.JPG](/proxy/?url=https://content.instructables.com/FES/3DFS/GJQEFXF0/FES3DFSGJQEFXF0.jpg&filename=3 - 5 - Check Polarity.JPG)
![3 - 6 - Add Heat Shrink Tubing.JPG](/proxy/?url=https://content.instructables.com/FJV/JU1U/GJQEFXFS/FJVJU1UGJQEFXFS.jpg&filename=3 - 6 - Add Heat Shrink Tubing.JPG)
![3 - 7 - Cut and Strip Power Connector.JPG](/proxy/?url=https://content.instructables.com/FEN/HIJZ/GJQEFXG3/FENHIJZGJQEFXG3.jpg&filename=3 - 7 - Cut and Strip Power Connector.JPG)
![3 - 8 - Connect Leads.JPG](/proxy/?url=https://content.instructables.com/F2K/1ZP1/GJQE91BM/F2K1ZP1GJQE91BM.jpg&filename=3 - 8 - Connect Leads.JPG)
![3 - 9 - Solder Leads.JPG](/proxy/?url=https://content.instructables.com/FJ2/USMM/GJQEFXHE/FJ2USMMGJQEFXHE.jpg&filename=3 - 9 - Solder Leads.JPG)
![3 - 10 - Verify Polarity.JPG](/proxy/?url=https://content.instructables.com/FBN/WXZD/GJQEJIDT/FBNWXZDGJQEJIDT.jpg&filename=3 - 10 - Verify Polarity.JPG)
![3 - 11 - Put Heat Shrink Tubing in Place.JPG](/proxy/?url=https://content.instructables.com/FUZ/HLUO/GJQED7IM/FUZHLUOGJQED7IM.jpg&filename=3 - 11 - Put Heat Shrink Tubing in Place.JPG)
![3 - 12 - Shrink Tubing.JPG](/proxy/?url=https://content.instructables.com/F8G/MW9I/GJQEJIDX/F8GMW9IGJQEJIDX.jpg&filename=3 - 12 - Shrink Tubing.JPG)
![3 - 13 - Finished Power Cord.JPG](/proxy/?url=https://content.instructables.com/FBH/IQBF/GJQE91C0/FBHIQBFGJQE91C0.jpg&filename=3 - 13 - Finished Power Cord.JPG)
Groovin' Grover's microcontroller is powered via the USB cable but his servos require more power than a USB port can supply so in this step, a 5 volt wall wart (AC adapter) will be adapted to supply power to the servos. A typical wall wart is shown in the first photo.
- Cut off the tip at the end of the wall wart's power cable as shown in the second photo. This tip will not be used and can be discarded or saved for a future instructable.
- Pull the wires apart and strip off an 1/8" of insulation off the ends of the wires as shown in the third photo.
- Making sure the stripped wires are not touching, plug in the wall wart and use a volt meter to test the polarity of the wires as shown in the fourth photo. If you are using an analog voltmeter, the needle on the meter should move to 5 volts as shown in the fifth photo or if you are using a digital voltmeter, the display should read +5 volts. If they don't reverse the test leads and try again. Make note of which wire is positive and which is negative.
- Add two pieces of heat shrink tubing to the wires as shown in the sixth photo. The purpose of the heat shrink tubing will be to insulate the wires. If you don't have heat shrink tubing, you can wrap electrical tape around the connections after you finish the soldering step below.
- Cut the Futaba J plug cable as shown in the seventh photo. Keep the end with the connector shown in this photo. Strip the red and black wires as shown.
- Line up and solder the wires as shown in the eighth and ninth photos. Make sure to connect the red wire to the positive wire from the wall wart and the black wire to the negative wire from the wall wart. The white wire will be left unconnected.
- Make sure the exposed connections are not touching, plug the wall wart in and using your voltmeter, verify that the red wire is positive and the black is negative. See tenth photo. Don't skip this step, if you have the polarity wrong you will likely damage the microcontroller and the servos.
- Move the heat shrink tubing over the exposed connections as shown in the eleventh photo. Apply heat with a heat gun or soldering iron. The resulting shrunk tubing should look like the twelfth photo. If you are not using heat shrink tubing, you should wrap each of the exposed wires with electrical tape.
- Cut the extra off the white wire, as shown in the last photo, and the servo power supply is now complete.
Prepare the Stage Platforms
![4 - 1 - Prepare for Drilling.JPG](/proxy/?url=https://content.instructables.com/FOU/RUMT/GJQED7IP/FOURUMTGJQED7IP.jpg&filename=4 - 1 - Prepare for Drilling.JPG)
![4 - 2 - Mark Corner Holes.JPG](/proxy/?url=https://content.instructables.com/F2A/BVX8/GJQEJIE0/F2ABVX8GJQEJIE0.jpg&filename=4 - 2 - Mark Corner Holes.JPG)
![4 - 3 - Drill Holes.JPG](/proxy/?url=https://content.instructables.com/FLL/Q7FB/GJQEFXOC/FLLQ7FBGJQEFXOC.jpg&filename=4 - 3 - Drill Holes.JPG)
![4 - 4 - Drill Wire Clamp Holes on Top.JPG](/proxy/?url=https://content.instructables.com/FF6/IBQ4/GJQEJIE2/FF6IBQ4GJQEJIE2.jpg&filename=4 - 4 - Drill Wire Clamp Holes on Top.JPG)
![4 - 5 - Attach Velcro on Top.JPG](/proxy/?url=https://content.instructables.com/FDQ/15EP/GJQEFXPZ/FDQ15EPGJQEFXPZ.jpg&filename=4 - 5 - Attach Velcro on Top.JPG)
![4 - 6 - Attach Velcro Underneath.JPG](/proxy/?url=https://content.instructables.com/FEL/KMOJ/GJQE91D6/FELKMOJGJQE91D6.jpg&filename=4 - 6 - Attach Velcro Underneath.JPG)
![4 - 7 - Adhere Rubber Feet on the Bottom Platform.JPG](/proxy/?url=https://content.instructables.com/FW3/H9K3/GJQE91D8/FW3H9K3GJQE91D8.jpg&filename=4 - 7 - Adhere Rubber Feet on the Bottom Platform.JPG)
Time to assemble the two platforms that will be used as Groovin' Grover's stage. The threaded rods will be used as support shafts for the two platforms. I used yellow plastic for the platforms as shown in the first photo. You can use wood, Masonite, plastic, or any other firm non-conducting material.
- Mark the holes for the support shafts. The placement of the holes are not critical but I recommend making the holes 1/2" in the from the corners as marked in the second photo.
- Drill the four holes using a 1/4" drill bit. I suggest clamping the two boards together and drilling them together to ensure the pieces fit well when assembled. The finished pieces are shown in the third photo.
- Pick one of the platforms to be the upper platform and drill holes for the plastic wire clamps. These clamps will be used to hold the USB and power cables and prevent them from pulling the microcontroller off the platform. The holes should match the machine screws you selected to mount the holders. The holes should be drilled about 4" in the edges as depicted in the fourth photo.
- Cut a 9 3/4" strip of Velcro and adhere it the front of the upper platform as shown in the fifth photo. This Velcro will be used to mount the servos. I used Velcro because it allows for the servos to be easily moved and adjusted after everything is assembled.
- Flip over the upper platform and affix a 12" piece of Velcro along the backside as shown in the sixth photo. This strip of Velcro will be used to hold the cloth backdrop in place.
- Take the lower platform and adhere the four rubber feet to the bottom as shown in the last photo.
Assemble the Stage
![5 - 1 - Assemble Support.JPG](/proxy/?url=https://content.instructables.com/F4V/LQUY/GJQED7IT/F4VLQUYGJQED7IT.jpg&filename=5 - 1 - Assemble Support.JPG)
![5 - 2 - Add Nut to Top End .JPG](/proxy/?url=https://content.instructables.com/FQK/U411/GJQEJIE9/FQKU411GJQEJIE9.jpg&filename=5 - 2 - Add Nut to Top End .JPG)
![5 - 3 - Add Nut to Bottom End.JPG](/proxy/?url=https://content.instructables.com/FQQ/OMDY/GJQEJIEA/FQQOMDYGJQEJIEA.jpg&filename=5 - 3 - Add Nut to Bottom End.JPG)
![5 - 4 - Assembled Supports.JPG](/proxy/?url=https://content.instructables.com/FCK/0SVR/GJQEJIEB/FCK0SVRGJQEJIEB.jpg&filename=5 - 4 - Assembled Supports.JPG)
![5 - 5 - Attach Supports to Bottom Platform.JPG](/proxy/?url=https://content.instructables.com/FBW/A7Q7/GJQED7IW/FBWA7Q7GJQED7IW.jpg&filename=5 - 5 - Attach Supports to Bottom Platform.JPG)
![5 - 6 - Attach Supports to Top Platform.JPG](/proxy/?url=https://content.instructables.com/FVY/HIVB/GJQE91E0/FVYHIVBGJQE91E0.jpg&filename=5 - 6 - Attach Supports to Top Platform.JPG)
![5 - 7 - Attach Supports to Top Platform.JPG](/proxy/?url=https://content.instructables.com/FGS/ZPCZ/GJQEFXYE/FGSZPCZGJQEFXYE.jpg&filename=5 - 7 - Attach Supports to Top Platform.JPG)
![5 - 8 - Finished Platform.JPG](/proxy/?url=https://content.instructables.com/FCQ/W6IT/GJQED7IX/FCQW6ITGJQED7IX.jpg&filename=5 - 8 - Finished Platform.JPG)
The stage consists of an upper and lower platform held together using supports shafts consisting of threaded rods and hex nuts. Each support shaft consists of one threaded rod and four hex nuts as shown in the first photo. The hex nuts on each end will hold the platforms in place.
- Thread one hex nut onto the ends of each threaded rod as shown in the second, third, and fourth photos. The hex nuts should leave 1/2" of the rod exposed.
- Insert each of the threaded rods into the lower platform and secure with hex nuts as shown in the fifth photo. Make sure that the hex nuts do not extend past the bottom of the the rubber feet. The rubber feet should be the only thing touching the surface where the stage is placed.
- Place the upper platform onto the threaded rods as shown in the sixth photo.
- Use four hex nuts to secure the upper platform as shown in the seventh photo.
- The assembled stage is shown in the eighth photo.
Mount the Microcontroller
![6 - 1 - Attach Velcro to Top Platform.JPG](/proxy/?url=https://content.instructables.com/FNT/KI95/GJQED7J3/FNTKI95GJQED7J3.jpg&filename=6 - 1 - Attach Velcro to Top Platform.JPG)
![6 - 2 - Attach Velcro to uC Bottom.JPG](/proxy/?url=https://content.instructables.com/FEJ/65AI/GJQE91EB/FEJ65AIGJQE91EB.jpg&filename=6 - 2 - Attach Velcro to uC Bottom.JPG)
![6 - 3 - Attach uC to Platform.JPG](/proxy/?url=https://content.instructables.com/FH1/Y28J/GJQEFY64/FH1Y28JGJQEFY64.jpg&filename=6 - 3 - Attach uC to Platform.JPG)
![6 - 4 - Assemble Wire Clamps.JPG](/proxy/?url=https://content.instructables.com/F58/S5Z9/GJQEFY6J/F58S5Z9GJQEFY6J.jpg&filename=6 - 4 - Assemble Wire Clamps.JPG)
![6 - 5 - USB Cable.JPG](/proxy/?url=https://content.instructables.com/F57/R5BG/GJQEJIER/F57R5BGGJQEJIER.jpg&filename=6 - 5 - USB Cable.JPG)
![6 - 7 - Check Connections.JPG](/proxy/?url=https://content.instructables.com/FLE/SINV/GJQEFY72/FLESINVGJQEFY72.jpg&filename=6 - 7 - Check Connections.JPG)
![6 - 6 - Attach Cables.JPG](/proxy/?url=https://content.instructables.com/FNX/6SW1/GJQED7J4/FNX6SW1GJQED7J4.jpg&filename=6 - 6 - Attach Cables.JPG)
Velcro is used to mount the microcontroller to the top of the upper platform. The plastic wire clamps are used to hold the USB and power cables in place: the clamps will prevent the microcontroller from being accidentally pulled off the upper platform.
- Attach a small piece of Velcro to the center of the top of the upper platform as shown in the first photo.
- Attach the corresponding piece of Velcro to bottom of the microcontroller as shown in the second photo.
- Affix the microcontroller to the upper platform using the Velcro as shown in the third photo.
- Small plastic wire clamps and machine screws with nuts will be used the secure the USB and power cables to the upper platform - see the fourth photo.
- Identify the mini-B connector on the USB connect as shown in the fifth photo: this connector will attach the to microcontroller.
- Plug the USB cable into the microcontroller as shown in the sixth photo. Attach the servo power cable to the servo power pins on the microcontroller. Note the orientation of the white, red, and black wires. The white wire is unconnected. More details on the power connection on the microcontroller can be found at this link.
- Place a plastic wire clamp over each of the USB and the power cables and secure to the upper platform using the machine screws and nuts as depicted in the last photo.
Mount the Servos
![7 - 1 - Get Part Ready.JPG](/proxy/?url=https://content.instructables.com/F5Z/JTSY/GJQED7J9/F5ZJTSYGJQED7J9.jpg&filename=7 - 1 - Get Part Ready.JPG)
![7 - 2 - Attach Velcro.JPG](/proxy/?url=https://content.instructables.com/FYW/FJOT/GJQE91EL/FYWFJOTGJQE91EL.jpg&filename=7 - 2 - Attach Velcro.JPG)
![7 - 2a - Servo Placement.jpg](/proxy/?url=https://content.instructables.com/FJ4/NK5U/GJQEA06O/FJ4NK5UGJQEA06O.jpg&filename=7 - 2a - Servo Placement.jpg)
![7 - 2b - Servo and Microcontroller Placement.jpg](/proxy/?url=https://content.instructables.com/F33/1U08/GJQEGZY0/F331U08GJQEGZY0.jpg&filename=7 - 2b - Servo and Microcontroller Placement.jpg)
![7 - 3 - Attach Servos to Platform.JPG](/proxy/?url=https://content.instructables.com/FQF/KPET/GJQEFY7P/FQFKPETGJQEFY7P.jpg&filename=7 - 3 - Attach Servos to Platform.JPG)
![7 - 4 - Attach Servos to Platform.JPG](/proxy/?url=https://content.instructables.com/F3W/DWEM/GJQE91EM/F3WDWEMGJQE91EM.jpg&filename=7 - 4 - Attach Servos to Platform.JPG)
![7 - 5 - Connect Servo 0.JPG](/proxy/?url=https://content.instructables.com/FSQ/MDEE/GJQEDE59/FSQMDEEGJQEDE59.jpg&filename=7 - 5 - Connect Servo 0.JPG)
![7 - 6 - Connect Servo 1.JPG](/proxy/?url=https://content.instructables.com/F79/YYQ6/GJQE9CIE/F79YYQ6GJQE9CIE.jpg&filename=7 - 6 - Connect Servo 1.JPG)
![7 - 7 - Connect Servo 2.JPG](/proxy/?url=https://content.instructables.com/FO0/G2LI/GJQE9CIF/FO0G2LIGJQE9CIF.jpg&filename=7 - 7 - Connect Servo 2.JPG)
![7 - 8 - Connect Servo 3.JPG](/proxy/?url=https://content.instructables.com/FIM/N2P0/GJQEJOR7/FIMN2P0GJQEJOR7.jpg&filename=7 - 8 - Connect Servo 3.JPG)
![7 - 9 - All Servos Connected.JPG](/proxy/?url=https://content.instructables.com/FQF/GNOV/GJQEG3U0/FQFGNOVGJQEG3U0.jpg&filename=7 - 9 - All Servos Connected.JPG)
![7 - 9a - Initial Servo Placement Code.jpg](/proxy/?url=https://content.instructables.com/FET/7RDF/GJQEA06T/FET7RDFGJQEA06T.jpg&filename=7 - 9a - Initial Servo Placement Code.jpg)
![7 - 10 - Construct Wires.JPG](/proxy/?url=https://content.instructables.com/FHF/MMB0/GJQEDE5N/FHFMMB0GJQEDE5N.jpg&filename=7 - 10 - Construct Wires.JPG)
![7 - 11 - Paper Clip Placement.jpg](/proxy/?url=https://content.instructables.com/FRZ/A5PG/GJQEKGO7/FRZA5PGGJQEKGO7.jpg&filename=7 - 11 - Paper Clip Placement.jpg)
In this step the servos will be prepared for mounting on the top of the upper platform. Velcro is used to attach the servos to the platform. Velcro is used because it allows the servos to be easily repositioned after everything is assembled: this will allow you to make adjustments to how Groovin' Grover hangs.
- Cut four pieces of Velcro the same width as the servos (approximately 1 1/2") as shown in the first photo. The orientation of the servos is important - note the positions of the servo horns in that photo.
- Attach the Velcro to the servos as shown in the second photo. Use the corresponding piece of Velcro to what you put on the upper platform in step 4 "Prepare the Stage Platforms."
- Mount the servos on the upper platform using the Velcro as depicted in the third and fourth diagrams and fifth and sixth photos. Note the position of the servo horns in the diagrams and photos. Proper placement is important to making Grover move correctly.
- Connect the control wires from servo 0 as shown in seventh photo. Servo 0 is the leftmost servo as you face the stage. Note the orientation of white, red, and black wires.
- Connect the control wires from servo 1 as shown in eighth photo. Servo 1 is the second from the left servo as you face the stage. Note the orientation of white, red, and black wires.
- Connect the control wires from servo 2 as shown in ninth photo. Servo 2 is the second from the right servo as you face the stage. Note the orientation of white, red, and black wires.
- Connect the control wires from servo 3 as shown in tenth photo. Servo 3 is the rightmost servo as you face the stage. Note the orientation of white, red, and black wires.
- The eleventh photo shows the power cable and all four servo control wires attached.
- If you have not yet installed the Maestro software for developing and downloading programs to the microcontroller, follow the instructions in the Maestro documentation to do so.
- At this point you should connect the USB cable to the PC where you have the Maestro software installed and plug in the power supply for the servo. Launch the Maestro software. Go to the "Script" tab and enter the short program (the four servo commands) shown in the twelfth image below. Click "Apply Setting", then "Run Script". This will put the servos into proper position for attaching the the threads that connect Groovin' Grover's limbs to the servos.
- Bend four small (1") paper clips as shown in the thirteenth photo. The threads controlling Groovin' Grover's limbs will be attached to these paperclips.
- Attach the paper clips to the servo horns as shown in the last image below. The paper clips extend the range of motion provided by the servos. There are photos in step 9 "Hang Grover" that also show how the paper clips attach to the servo horns.
Prepare Grover
![8 - 1 - Grover Finger Puppet.JPG](/proxy/?url=https://content.instructables.com/F8M/6FH9/GJQED7K1/F8M6FH9GJQED7K1.jpg&filename=8 - 1 - Grover Finger Puppet.JPG)
![8 - 2 - Nylon Thread and Needle.JPG](/proxy/?url=https://content.instructables.com/FUC/M769/GJQE91HL/FUCM769GJQE91HL.jpg&filename=8 - 2 - Nylon Thread and Needle.JPG)
![8 - 3 - Use Needle to Attach Thread.JPG](/proxy/?url=https://content.instructables.com/FIF/F25W/GJQE91HM/FIFF25WGJQE91HM.jpg&filename=8 - 3 - Use Needle to Attach Thread.JPG)
![8 - 4 - Thread in Grovers Head.JPG](/proxy/?url=https://content.instructables.com/FD9/6UMG/GJQE91HN/FD96UMGGJQE91HN.jpg&filename=8 - 4 - Thread in Grovers Head.JPG)
![8 - 5 - Thread Attachment Assembly.JPG](/proxy/?url=https://content.instructables.com/F2G/I3Z6/GJQED7K6/F2GI3Z6GJQED7K6.jpg&filename=8 - 5 - Thread Attachment Assembly.JPG)
![8 - 6 - Grover Tied to Washer.JPG](/proxy/?url=https://content.instructables.com/FVO/3D3U/GJQE91HO/FVO3D3UGJQE91HO.jpg&filename=8 - 6 - Grover Tied to Washer.JPG)
![8 - 7 - Velcro for Attaching to Washer.JPG](/proxy/?url=https://content.instructables.com/F7Z/ZQBW/GJQED7K7/F7ZZQBWGJQED7K7.jpg&filename=8 - 7 - Velcro for Attaching to Washer.JPG)
![8 - 8 - Grover Ready to Attach to Stage.JPG](/proxy/?url=https://content.instructables.com/FWX/YJCX/GJQE91HP/FWXYJCXGJQE91HP.jpg&filename=8 - 8 - Grover Ready to Attach to Stage.JPG)
![8 - 9 - Velcro to Hold Grovers Head.JPG](/proxy/?url=https://content.instructables.com/FOJ/0DV4/GJQED7K9/FOJ0DV4GJQED7K9.jpg&filename=8 - 9 - Velcro to Hold Grovers Head.JPG)
![8 - 10 - Ready to Attach Grover.JPG](/proxy/?url=https://content.instructables.com/F3M/N6DZ/GJQED7KA/F3MN6DZGJQED7KA.jpg&filename=8 - 10 - Ready to Attach Grover.JPG)
![8 - 11 - Grover Attached to Stage.JPG](/proxy/?url=https://content.instructables.com/FLJ/W797/GJQEJIKI/FLJW797GJQEJIKI.jpg&filename=8 - 11 - Grover Attached to Stage.JPG)
![8 - 12 - Weigh Down Grover.JPG](/proxy/?url=https://content.instructables.com/FV0/YB27/GJQED7KC/FV0YB27GJQED7KC.jpg&filename=8 - 12 - Weigh Down Grover.JPG)
![8 - 14 - Weigh Down Grover.JPG](/proxy/?url=https://content.instructables.com/FIM/R3RS/GJQEJIKN/FIMR3RSGJQEJIKN.jpg&filename=8 - 14 - Weigh Down Grover.JPG)
The Grover finger puppet needs to be prepared for hanging.
- Cut approximately 6" of transparent nylon thread and using a needle (photo two), insert the thread through the top of Grover's head as shown in the third and fourth photos. Set Grover aside for the moment.
- Cut a small piece of Velcro (set aside the matching piece of Velcro for use in a step below) to the size of the 1" outer diameter washer as shown the fifth photo.
- Tie the end of the thread from Grover's head to the washer. There should be about 4" to 5" of thread between his head and the washer. See the sixth photo.
- Take the Velcro and stick it to the washer as shown in the seventh and eighth photos.
- Take the matching half of Velcro and attach it to the front upper platform as shown in the ninth and tenth photos.
- Using the Velcro'd washer, hang Grover as shown in the eleventh photo.
- The Grover finger puppet does not weigh enough for the limbs to move properly when pulled by the servos, so we need to add some weight to him. Stuff four 1/4"-20 hex nuts into the opening on Grover's bottom and use a safety pin to hold them in place. The process is shown in the last two photos. If you don't use a finger puppet, then you will need to cut the puppet open, insert the weights, and sew the puppet closed.
Hang Grover
![9 - 0 - Grovin Grover Placement.jpg](/proxy/?url=https://content.instructables.com/FZC/R2LI/GK0YUV2K/FZCR2LIGK0YUV2K.jpg&filename=9 - 0 - Grovin Grover Placement.jpg)
![9 - 0a - Attaching Left Leg.JPG](/proxy/?url=https://content.instructables.com/F43/89XO/GJQEA0IW/F4389XOGJQEA0IW.jpg&filename=9 - 0a - Attaching Left Leg.JPG)
![9 - 1 - Attach Thread to Left Foot.JPG](/proxy/?url=https://content.instructables.com/FVL/7IML/GJQEFY8L/FVL7IMLGJQEFY8L.jpg&filename=9 - 1 - Attach Thread to Left Foot.JPG)
![9 - 2 - Position Left Foot.JPG](/proxy/?url=https://content.instructables.com/FHV/1AI5/GJQEJIFJ/FHV1AI5GJQEJIFJ.jpg&filename=9 - 2 - Position Left Foot.JPG)
![9 - 3 - Attach Thread to Servo 0.JPG](/proxy/?url=https://content.instructables.com/FZX/41X3/GJQE91EY/FZX41X3GJQE91EY.jpg&filename=9 - 3 - Attach Thread to Servo 0.JPG)
![9 - 4 - Left Foot in Position.JPG](/proxy/?url=https://content.instructables.com/F0F/KP4V/GJQEJIFK/F0FKP4VGJQEJIFK.jpg&filename=9 - 4 - Left Foot in Position.JPG)
![9 - 5 - Attach Thread to Right Foot.JPG](/proxy/?url=https://content.instructables.com/F4N/EPA2/GJQED7JC/F4NEPA2GJQED7JC.jpg&filename=9 - 5 - Attach Thread to Right Foot.JPG)
![9 - 6 - Position Right Foot.JPG](/proxy/?url=https://content.instructables.com/FTT/9SR7/GJQED7JD/FTT9SR7GJQED7JD.jpg&filename=9 - 6 - Position Right Foot.JPG)
![9 - 7 - Attach Thread to Servo 3.JPG](/proxy/?url=https://content.instructables.com/FHL/IDCJ/GJQED7JE/FHLIDCJGJQED7JE.jpg&filename=9 - 7 - Attach Thread to Servo 3.JPG)
![9 - 8 - Right Foot in Position.JPG](/proxy/?url=https://content.instructables.com/FY5/WC06/GJQEJIFL/FY5WC06GJQEJIFL.jpg&filename=9 - 8 - Right Foot in Position.JPG)
![9 - 9 - Lasso Left Arm.JPG](/proxy/?url=https://content.instructables.com/FPX/57IY/GJQE91F2/FPX57IYGJQE91F2.jpg&filename=9 - 9 - Lasso Left Arm.JPG)
![9 - 10 - Attach Thread to Attach Thread to Left Thumb.JPG](/proxy/?url=https://content.instructables.com/F25/IQCG/GJQED7JF/F25IQCGGJQED7JF.jpg&filename=9 - 10 - Attach Thread to Attach Thread to Left Thumb.JPG)
![9 - 11 - Attach Thread to Left Hand.JPG](/proxy/?url=https://content.instructables.com/FV9/X9C1/GJQEJIFN/FV9X9C1GJQEJIFN.jpg&filename=9 - 11 - Attach Thread to Left Hand.JPG)
![9 - 12 - Attach Thread to Servo 1.JPG](/proxy/?url=https://content.instructables.com/F5M/ECD9/GJQE91F6/F5MECD9GJQE91F6.jpg&filename=9 - 12 - Attach Thread to Servo 1.JPG)
![9 - 13 - Attach Thread to Right Hand.JPG](/proxy/?url=https://content.instructables.com/FX3/55HN/GJQED7JG/FX355HNGJQED7JG.jpg&filename=9 - 13 - Attach Thread to Right Hand.JPG)
![9 - 14 - Attach Thread to Right Hand.JPG](/proxy/?url=https://content.instructables.com/FKH/DYME/GJQE91FB/FKHDYMEGJQE91FB.jpg&filename=9 - 14 - Attach Thread to Right Hand.JPG)
![9 - 15 - Attach Thread to Servo 2.JPG](/proxy/?url=https://content.instructables.com/FGP/QLR6/GJQEJIFW/FGPQLR6GJQEJIFW.jpg&filename=9 - 15 - Attach Thread to Servo 2.JPG)
![9 - 16 - Grover Now Hung.JPG](/proxy/?url=https://content.instructables.com/FBP/PWRJ/GJQED7JH/FBPPWRJGJQED7JH.jpg&filename=9 - 16 - Grover Now Hung.JPG)
![9 - 17 - Grover Now Hung.JPG](/proxy/?url=https://content.instructables.com/FU1/NVGZ/GJQED7JI/FU1NVGZGJQED7JI.jpg&filename=9 - 17 - Grover Now Hung.JPG)
It's now time to use the nylon thread to attach Grover to the servos. The goal is to hang Grover as shown in the first figure.
- Starting with Grover's left leg, cut about 12" of the nylon thread. Lasso and tie one end of the thread around Grover's left ankle. Make sure the thread securely holds his angle and is not loose. Thread the other end to a needle and push it through the bottom of his foot and up through the top of foot. The second, third, and fourth images show the process.
- Take the end of the thread, wrap it around of the end of paper clip attached to servo 0 and use a small piece of blue painter's tape to hold it in place as shown in the fifth photo. The best way to do this is to take the tape and fold it in half over the thread and paperclip. The thread should not have any slack in it and should be tight. Cut off the excess thread when you are satisfied with the placement. The leg, thread and servo should look like the sixth photo.
- Repeat the process for the right leg as shown in the seventh through tenth photos. This thread should be attached to servo 3.
- Now lasso and tie a thread around Grover's left wrist as shown in the eleventh photo. Using a needle, push the thread through the back of his thumb and out the front as shown in the twelfth and thirteenth photo.
- Attach the end of the thread to servo 1 as shown in the fourteenth photo.
- Repeat the process for attaching the thread to his right hand and to servo 2 as depicted in the fifteenth through seventh photos.
- You are now done hanging Grover. He should look exactly like the last two photos - if not make the appropriate adjustments.
Construct and Attach Backdrop
![10 - 1 - Measure Cut and Attach Velcro.JPG](/proxy/?url=https://content.instructables.com/F24/YDNE/GJQED7JJ/F24YDNEGJQED7JJ.jpg&filename=10 - 1 - Measure Cut and Attach Velcro.JPG)
![10 - 2 - Attach to Stage.JPG](/proxy/?url=https://content.instructables.com/FP2/GRJ2/GJQE91FO/FP2GRJ2GJQE91FO.jpg&filename=10 - 2 - Attach to Stage.JPG)
![10 - 3 - Attached to Stage.JPG](/proxy/?url=https://content.instructables.com/F4P/B860/GJQEFYE7/F4PB860GJQEFYE7.jpg&filename=10 - 3 - Attached to Stage.JPG)
![10 - 4 - Front View with Backdrop.JPG](/proxy/?url=https://content.instructables.com/FUS/3T14/GJQEH4AB/FUS3T14GJQEH4AB.jpg&filename=10 - 4 - Front View with Backdrop.JPG)
Time to make the backdrop for Groovin' Grover's stage. The backdrop will hide the power and USB cords and will make the transparent nylon threads attached to Grover difficult to see.
- Cut a 11 3/4" x 18 3/4" piece of white cloth. I used an old pillow case.
- Attach the matching piece of 12" Velcro that you attached to bottom the upper level of the stage in step 4 to the top of the cloth as shown in the first photo. Cut off any excess Velcro.
- Using the Velcro, attach the backdrop to the bottom of the upper level of the stage as shown in the second photo and third photos.
Making Groovin' Grover Dance!
![11 - 0 - Microcontroller.jpg](/proxy/?url=https://content.instructables.com/FK3/6HHT/GJQEKT2D/FK36HHTGJQEKT2D.jpg&filename=11 - 0 - Microcontroller.jpg)
![11 - 1 - GG Hand Waving Program.JPG](/proxy/?url=https://content.instructables.com/F5L/OA7D/GJQEKLNV/F5LOA7DGJQEKLNV.jpg&filename=11 - 1 - GG Hand Waving Program.JPG)
![11 - 2 - 1 - GG Dancing Program.JPG](/proxy/?url=https://content.instructables.com/FT5/IJQK/GJQEA4PF/FT5IJQKGJQEA4PF.jpg&filename=11 - 2 - 1 - GG Dancing Program.JPG)
![11 - 3 - 2 - GG Dancing Program.JPG](/proxy/?url=https://content.instructables.com/FTM/CIDI/GK0YUZY2/FTMCIDIGK0YUZY2.jpg&filename=11 - 3 - 2 - GG Dancing Program.JPG)
![11 - 4 -3 - GG Dancing Program.JPG](/proxy/?url=https://content.instructables.com/FDU/9KWO/GJQEA4PG/FDU9KWOGJQEA4PG.jpg&filename=11 - 4 -3 - GG Dancing Program.JPG)
![11 - 5 - 4 - GG Dancing Program.JPG](/proxy/?url=https://content.instructables.com/FRV/RJV2/GJQEKLNW/FRVRJV2GJQEKLNW.jpg&filename=11 - 5 - 4 - GG Dancing Program.JPG)
![11 - 6 - Groovin' Grover.JPG](/proxy/?url=https://content.instructables.com/FD4/FSHS/GK0YV1BZ/FD4FSHSGK0YV1BZ.jpg&filename=11 - 6 - Groovin' Grover.JPG)
Time to program Groovin' Grover. The second figure shows a screen capture of a program that makes Grover wave his right hand up and down forever. The code is also in the "Waving Grover Program.rtf" file attached below. If you want to try this program, open the file, and copy and paste the code into the "Script" window in the Maestro control center. Click "Apply Settings" and "Run Script".
Here's how the program works: the first 4 servo commands start the servos moving to put his hands and feet into their initial position. The first parameter of the servo command tells the servo what position to move to and the second parameter tells the microcontroller which servo should perform the action. The "moving_wait" subroutine is then called to wait until all the servos have reached their final position. Next, the "speed" command is used to set the servo to move slowly on the way up and a "servo" command is used to start the raising of the hand. "moving_wait" is called again to delay going to the next command until the hand is fully raised. The speed is set to be faster, the hand is lowered, and the program waits until the hand has finished moving. When "repeat" is reached, the program goes back to the command after "begin" and the hand is waved again and again.
The first segment of this video shows this program in action. I then changed the servo numbers in the program in order to make his other hand and the rest of the feet move as you'll see in the rest of the video.
The next five slides show the program I used to make Grover dance as shown in the videos on the "intro" step of this instructable. In the first slide "Prepare for dancing," the speed command is used to set the speed at which the servos will rotate. Subroutines are called to move all of his limbs into the down position. "moving_wait" is called to pause until all the servos have stopped moving. The "delay" command causes a 1000 millisecond or 1 second delay for the dance routine starts.
The next slide "Main loop that makes him dance" shows the code that moves different limbs up and down with various delays in order to get a rhythm and motion that matches the music. It took some experimentation to get this right for the two songs in the video but that's what makes programming Grover fun!
The last slide "Subroutines for controlling the limbs" shows the how each of the limbs are controlled. I like using these subroutines because it makes writing and reading the program easier. All of this code can be found in the "Dance Grover Dance Program.rtf" file attached below. You can copy and paste this into the Maestro control center as described earlier to run this program.
There are interesting possibilities for extending this project. The microcontroller has additional capabilities for reading inputs from switches and can be used to turn other circuits on and off. One example would be to add a new capability to turn on music when Grover starts dancing and turn it off when he finishes.
Have fun!
Here's how the program works: the first 4 servo commands start the servos moving to put his hands and feet into their initial position. The first parameter of the servo command tells the servo what position to move to and the second parameter tells the microcontroller which servo should perform the action. The "moving_wait" subroutine is then called to wait until all the servos have reached their final position. Next, the "speed" command is used to set the servo to move slowly on the way up and a "servo" command is used to start the raising of the hand. "moving_wait" is called again to delay going to the next command until the hand is fully raised. The speed is set to be faster, the hand is lowered, and the program waits until the hand has finished moving. When "repeat" is reached, the program goes back to the command after "begin" and the hand is waved again and again.
The first segment of this video shows this program in action. I then changed the servo numbers in the program in order to make his other hand and the rest of the feet move as you'll see in the rest of the video.
The next five slides show the program I used to make Grover dance as shown in the videos on the "intro" step of this instructable. In the first slide "Prepare for dancing," the speed command is used to set the speed at which the servos will rotate. Subroutines are called to move all of his limbs into the down position. "moving_wait" is called to pause until all the servos have stopped moving. The "delay" command causes a 1000 millisecond or 1 second delay for the dance routine starts.
The next slide "Main loop that makes him dance" shows the code that moves different limbs up and down with various delays in order to get a rhythm and motion that matches the music. It took some experimentation to get this right for the two songs in the video but that's what makes programming Grover fun!
The last slide "Subroutines for controlling the limbs" shows the how each of the limbs are controlled. I like using these subroutines because it makes writing and reading the program easier. All of this code can be found in the "Dance Grover Dance Program.rtf" file attached below. You can copy and paste this into the Maestro control center as described earlier to run this program.
There are interesting possibilities for extending this project. The microcontroller has additional capabilities for reading inputs from switches and can be used to turn other circuits on and off. One example would be to add a new capability to turn on music when Grover starts dancing and turn it off when he finishes.
Have fun!