Crawling Animatronic Hand

Similar documents
Ping Pong Ball Launcher

Crawling Baby Sea Turtle Robot

Snake Charmer Box. Created by Dano Wall. Last updated on :07:25 PM UTC

Crickit Dancing Marionette Kit Created by Dano Wall. Last updated on :03:11 PM UTC

Paper Airplane Launcher

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Mini Golf Course with Circuit Playground and Crickit

Pushrod Garage. Created by John Park. Last updated on :07:30 PM UTC

Crickit Carnival Bumper Bot

Stumble-Bot. Created by Dano Wall. Last updated on :04:06 AM UTC

Reindeer Mask with Animated Eyes

Crickit Powered Holiday Diorama

Hammer Time Mini Golf Hazard with Crickit

Infinity Mirror Valentine's Candy Box

Trash Panda. Created by Dano Wall. Last updated on :30:46 AM UTC

Wind Blowing Emoji Prop

Circuit Playground Express Head-Tilt Ears

Bunny Ears with MakeCode

Adabot Operation Game

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

NeoPixie Dust Bag with Circuit Playground Express

CPX Mystery Dreidel. Created by Kathy Ceceri. Last updated on :51:40 PM UTC

Easy Sparkle Pocket T-Shirt

Solar Boost Bag. Created by Becky Stern. Last updated on :44:55 PM UTC

NeoPixel Fairy Crown. Created by Erin St Blaine. Last updated on :22:47 AM UTC

Crickit Powered Mini Chair Swing Ride!

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :42:16 PM UTC

DIY Circuit Playground Shields

Clockwork Goggles. Created by John Park. Last updated on :03:10 PM UTC

The Scream: Interactive Screaming Painting

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

Sword & Wand Prop Effects with Circuit Playground

Con Badge with Circuit Playground Express

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :30:55 PM EST

Circuit Playground Express Laser Tag

Trellis 3D Printed Enclosure

Steven Universe Cosplay Shirt & Gem Created by Erin St Blaine. Last updated on :54:25 PM UTC

NeoPixel Manicure. Created by Sophy Wong. Last updated on :50:38 PM UTC

Android GBoard Morse Code Control with Circuit Playground Express

NeoPixel Ring Bangle Bracelet

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Interior Purse Light. Created by Becky Stern. Last updated on :41:08 PM UTC

No-Sew LED Wristband. Created by Kathy Ceceri. Last updated on :23:40 PM UTC

Adafruit PowerBoost 500 Shield

BLE Light Switch with Feather nrf52840 and Crickit

Milk Jug Glow Skull. Created by John Park. Last updated on :28:36 PM UTC

Circuit Playground Yoyo

Trinket NeoPixel LED Longboard

HalloWing Jump Scare Trap

Guardian Shield+ Zelda Breath of the Wild

Adafruit Pi Cobbler Kit

7 Portable Multitouch Raspberry Pi Tablet

Unicorn Hat with Moving Ears

Making Adabot: Part 1

NeoMatrix 8x8 Word Clock

3D Printed Camera LED Ring

Audio Prank Gift Box. Created by Becky Stern. Last updated on :46:15 PM UTC

Prophet 600 GliGli mod

Mystical LED Halloween Hood

LED Eyes. Created by Ruiz Brothers. Last updated on :50:55 AM UTC

PyPortal View Master Created by Ruiz Brothers. Last updated on :51:28 AM UTC

Portable Apple Watch Charger

Adafruit Capacitive Touch Sensor Breakouts

'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

NeoPixel Bike Light. Created by Ruiz Brothers. Last updated on :43:46 PM UTC

Glowing Smokey Skull. Created by Ruiz Brothers. Last updated on :03:40 PM UTC

Data Logging with Feather and CircuitPython

FLORA Pixel Brooch. Created by Becky Stern. Last updated on :19:07 PM EST

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Circuit Playground Combadge

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

Coffee Detonator: The TNT Plunger Grinder

Jewel Hair Stick. Created by Leslie Birch. Last updated on :47:17 PM UTC

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

GPS Logging Dog Harness

Adafruit DRV2605 Haptic Controller Breakout

Secret Hollow Book Intrusion Detector

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

UFO Flying Saucer with Circuit Playground Express

FPV Mini Display. Created by Ruiz Brothers. Last updated on :00:18 PM UTC

Light-Up Angler Fish Embroidery

FeatherWing Proto, Doubler and Tripler

Tent Lantern. Created by Timothy Reese. Last updated on :17:25 AM UTC

FeatherWing Proto and Doubler

Bluetooth Controlled NeoPixel Headphones

3D Printed Google AIY Voice Kit

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

Luminous LED Flowers. Created by Becky Stern. Last updated on :47:44 PM UTC

Adafruit TPL5110 Power Timer Breakout

Phone-Activated Talking Dog Collar

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Lady Ada's Bento Box. Created by lady ada. Last updated on :55:35 AM UTC

Magical Mistletoe. Created by Leslie Birch. Last updated on :45:29 PM UTC

DIY Wireless DDR Dance Pad with Bluefruit EZ-Key

Adafruit TPL5111 Reset Enable Timer Breakout

Adafruit 8x16 LED Matrix FeatherWing

Raspberry Pi Selfie Bot

Mad Science Test Tube Rack

Transcription:

Crawling Animatronic Hand Created by Dano Wall Last updated on 2018-12-03 06:39:35 PM UTC

Guide Contents Guide Contents Overview Parts Used Tools & Materials Prepare the Hand Your hand is now ready to be animated! Understanding the Code Getting into Bootloader Mode How to Upload Code Connect Servo What This Code Does Troubleshooting Connect the Servo Motor Motor Housing Make a platform Glue the Servo Motor Test! Make It Roll Making an Axle Making a Ratchet Wrap It Up Spook Your Friends 2 3 3 4 5 10 12 12 13 13 14 15 16 16 16 17 20 21 21 22 23 24 Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 2 of 25

Overview This guide shows you how to make an creepy animatronic crawling hand. It uses a glove from a halloween costume, outfitted with a servo motor and a Circuit Playground Express. This hand is designed to pull itself along the floor slowly, waiting until it finds a cold, dark spot, at which point it will stop and wait until temperature and light increase. The right glove is essential for this project. If you don't happen to have a candidate on hand, you can find Zombie (https://adafru.it/ck2), Werewolf (https://adafru.it/ck3), or Dementor (https://adafru.it/ck4) costume gloves online. Parts Used 1 x Circuit Playground Express Circuit Playground Express is the perfect introduction to electronics and programming ADD TO CART 3 x Alligator Clip to Breadboard Wires These compact jumper cables have a premium male header on one end and a grippy mini alligator clip on the other. ADD TO CART 1 x Micro USB cable Standard A to micro-b USB cable - 3ft ADD TO CART 2 x Eccentric Hub for TT Motor This eccentric motor hub has 2 hexagonal holes and 2 circular holes which allow you to Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 3 of 25

quickly and easily mount custom wheels, cardboard & wood, or other mechanisms to your robot project. ADD TO CART 1 x High Torque Metal Gear Servo High-torque standard servo with metal gearing for extra-high torque and reliability. It can rotate at least 120 degrees with a classic 1.5-2.5ms pulse. ADD TO CART 1 x Lithium Ion Polymer Battery - 3.7v 2500mAh Thin, light and powerful battery with an output range from 4.2V when completely charged to 3.7V. This battery has a capacity of 2500mAh for a total of ~10 Wh. ADD TO CART Tools & Materials Once you've found the glove you want to use, make sure to grab the following as well: Scissors Cardboard Double sided foam tape (https://adafru.it/cni) Hot glue gun Hobby knife Fishing line or string Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 4 of 25

Prepare the Hand It is recommended, though not required, that you stiffen your glove with some cardboard. Depending on the stiffness and elasticity of your gloves this may or may not be necessary. If your gloves are already very stiff and springy, skip this first step. Cut a rectangle of cardboard approximately the same dimensions of your glove. Cut out an outline of the glove. Bend the cardboard into shape so it can be inserted into the glove (baby powder can help). This will stiffen it and help the fingers spring back into shape. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 5 of 25

Mark placement of holes on wrist Poke holes with tweezers or something else pointy. Push fishing line through holes. Thread 5 short sections of coffee straw (or pen tube cut to length) over fishing line and into the holes in the wrist. This will allow the string to slide freely back and forth. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 6 of 25

Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 7 of 25

Poke holes through the tips of each finger. Thread fishing line through these holes. Use tape or a knot to keep the line from pulling back Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 8 of 25

through holes. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 9 of 25

Your hand is now ready to be animated! Leave the fishing line going through the fingers long, it can be tied off and cut to length once everything else is attached. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 10 of 25

Understanding the Code Before moving forward, let's take a moment to look at the code for this project. The code was created using Microsoft MakeCode for Adafruit, a web-based code editor. MakeCode provides a block editor, similar to Scratch or Code.org, and also a JavaScript editor for more advanced users. If you'd like to learn more about MakeCode, this guide is a good place to start (https://adafru.it/bdk). Getting into Bootloader Mode To make your board work with MakeCode we need to put it into "bootloader mode". All that's required to do this is to connect the board to your computer with a micro USB cable and click the small reset button in the center of the board. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 11 of 25

Click this link (https://adafru.it/cjv) or the button below to enter the portal to interact with the code for this project. https://adafru.it/cjv https://adafru.it/cjv How to Upload Code To upload code, connect you Circuit Playground Express to your computer using the micro USB cable, click the Download button to download the.uf2 file to your computer, and drag 'n drop that.uf2 file onto the CPLAYBOOT drive. in your computer's file explorer or finder. The drive will automatically eject itself. (Your computer may give you a "failed to eject drive correctly" error, you can ignore this.) The code is now on your Circuit Playground Express and ready to run! Connect Servo Once your code is uploaded, plug the alligator clip to pin wires into the servo connector such that you have three alligator clips with the wires going to the servo harness. Connect your servo motor to your Circuit Playground Express using the alligator clips. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 12 of 25

Connect the red middle wire from the servo to Vout on the CPX Connect the black or brown wire from the servo to GND Connect the yellow or white wire from the servo to A1 You should see your motor start rotating 180 degrees, with a pause, before rotating back again. What This Code Does This simple sketch tells your animatronic hand to look for a cool, dark place to hide. It does this by telling the motor to run until two conditions are both met. In the forever block there is a while statement, instructing the Circuit Playground Express to run the servo unless: The temperature goes below the specified threshold (in this case, 20 degrees Celsius) Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 13 of 25

The light level goes below the specified value (in this case, 100 ). You can test this code by turning off the lights and cooling down the thermistor on the board (I used a quick blast from a can of compressed air). If you'd like to play with this code, click "Edit" and a new window will open in which you can create your own version. Troubleshooting Problem: My servo motor isn't responding! Solution: Make sure that you have the servo's wires connected to the correct pads. The brown wire should go to GND, the yellow wire to A1, and the red wire to VOUT. Problem: My Circuit Playground Express doesn't show up as CPLAYBOOT! Solution: Your Circuit Playground Express board comes ready to work with CircuitPython, and will show up as a flash drive named CIRCUITPY the first time it's connected to your computer. To switch over to work with MakeCode, connect the board to your computer with a micro USB cable and click the small reset button in the center of the board. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 14 of 25

Connect the Servo Motor Motor Housing Now that the code is tested, it's time to put everything together. To mount the motor inside the wrist, we will house it inside a short section of cardboard tube. A tube 2.5 to 3 inches wide is ideal, as long as it fits comfortably inside the wrist of your glove. Make a platform Cut a section of cardboard tube about 3-4 inches long. Cut a small rectangle of cardboard. This will be the platform for the servo motor. Use hot glue or tape to mount cardboard platform inside tube. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 15 of 25

Glue the Servo Motor Test-fit the servo motor inside the tube. Cut another small rectangle of cardboard and bend this into an isosceles triangle (3 equal sides). Glue this in place inside the tube, pressed up against the side of the motor. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 16 of 25

Push the bundle of fishing line through the last hole in the servo motor arm. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 17 of 25

Depending on the line you are using, you may need to widen the hole. Hold lines in place with tape or a dab of hot glue. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 18 of 25

Test! Plug your battery in and check to make sure the servo moves easily back and forth within the tube. The lines should still be left relatively long at this point. We will tighten them up in the next step. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 19 of 25

Make It Roll If you'd like to give your hand the freedom to wander, these next steps will show you how to add a simple axle and ratchet mechanism to the hand. Making an Axle Using a metal rod (or bamboo skewer) as an axle, we can make a rolling base for our hand. Poke or drill a hole through the base of the cardboard tube. Push a small straw through this hole. Insert the axle through the straw. Press the other wheel onto the end of axle. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 20 of 25

Making a Ratchet Using the tips of some bamboo skewers, we can make a ratchet that will prevent the wheels from rolling backwards. This will ensure that the hand only crawls forward, not backward. Use hot glue to brace these pins against the inner lip of the wheel so that it catches the notches as they rotate. Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 21 of 25

Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 22 of 25

Wrap It Up Tape the battery to the end of the wrist. Make sure the servo arm still has enough clearance to move forward/backward! Use a square of double sided tape to stick the Circuit Playground Express the to back of battery. Spook Your Friends Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 23 of 25

You may find your hand moves better on certain surfaces, depending on how slippery they are. If you'd like to give your hand more grip, adding a thin layer of glue to the wheels and a dab of glue to the tips of the fingers helps. The battery that powers this hand should last a long while. If you need to recharge it, look at this guide (https://adafru.it/tfn) to learn how to do it safely, and all about how LiPoly batteries work! Adafruit Industries https://learn.adafruit.com/crawling-hand-with-cpx-and-makecode Page 24 of 25