# Thanksgiving Robotic Turkey Hand with Circuit Playground Express and Crickit

## Overview

This project expands upon the well-worn technique of using a hand tracing to make a turkey, but adapts it to create a moving, talking, interactive piece of Thanksgiving art.&nbsp;&nbsp;

https://youtu.be/1w-whsus8sM

This robotic turkey responds to being tapped by wiggling its head and saying "gobble gobble".&nbsp;

## Parts
### Part: Adafruit CRICKIT for Circuit Playground Express
quantity: 1
Creative Robotics and Interactive Construction Kit is an add-on to our popular Circuit Playground Express that lets you #MakeRobotFriend using CircuitPython
[Adafruit CRICKIT for Circuit Playground Express](https://www.adafruit.com/product/3093)

### Part: Circuit Playground Express
quantity: 1
Circuit Playground Express is the perfect introduction to electronics and programming
[Circuit Playground Express](https://www.adafruit.com/product/3333)

### Part: Sub-micro Servo - SG51R
quantity: 1
This tiny servo can rotate approximately 180 degrees and works just like a standard servo but much smaller. Good for beginners who want to make stuff move. You can use any servo code, hardware or library to control these servos.
[Sub-micro Servo - SG51R](https://www.adafruit.com/product/2201)

### Part: Mini Metal Speaker
quantity: 1
1" diameter speaker cone with an 8 Ω impedance and 0.5W or less of power draw.
[Mini Metal Speaker](https://www.adafruit.com/product/1890)

### Part: Alkaline AA batteries - 3 pack
quantity: 1
These batteries are good quality at a good price, and work fantastic with any of the kits or projects that use AAs.
[Alkaline AA batteries - 3 pack](https://www.adafruit.com/product/3521)

### Part: 3xAA holder with DC jack
quantity: 1
Battery holder 3xAA batteries with 2.1mm DC jack
[3xAA holder with DC jack](https://www.adafruit.com/product/3842)

### Part: USB cable - A/MicroB - 3ft
quantity: 1
Standard A to micro-B USB cable
[USB cable - A/MicroB - 3ft](https://www.adafruit.com/product/592)

### Part: 5V 2A (2000mA) switching power supply
quantity: 1
Power supply that gives a clean regulated 5V output at up to 2000mA, 110 or 240 volt AC input
[5V 2A (2000mA) switching power supply](https://www.adafruit.com/product/276)

## Materials & Tools

To build this project you'll need:

- Paper and color printer
- [Hot glue gun](https://www.amazon.com/gp/product/B006IY359K/ref=oh_aui_search_detailpage?ie=UTF8&psc=1)&nbsp;and hot glue
- Scissors
- Scrap cardboard
- [Double sided foam tape](https://www.amazon.com/dp/B003W0R4PE/ref=cm_sw_r_tw_dp_U_x_Y2SGBb4DV10TX)
- Optional: googly eye

![](https://cdn-learn.adafruit.com/assets/assets/000/066/339/medium800thumb/express_IMG_9502.2018-11-20_16_16_22.jpg?1542828329)

# Thanksgiving Robotic Turkey Hand with Circuit Playground Express and Crickit

## Create Your Turkey

As turkey-texture, this guide uses an image of [autumn leaves](https://upload.wikimedia.org/wikipedia/commons/c/c7/Autumn_Leaf_08Nov17.jpg), but really any fall-related image makes a good backdrop for the turkey. You can alternatively trace an adult hand and color in using pencil or crayon.

Print your preferred image and glue it to a piece of scrap cardboard, or use the same autumn leaves, linked below.

[Autumn_Leaves.pdf](https://cdn-learn.adafruit.com/assets/assets/000/066/098/original/Autumn_Leaves.pdf?1542405464)
Once your glue has taken hold, we're ready to start carving our bird.

![](https://cdn-learn.adafruit.com/assets/assets/000/066/183/medium800thumb/express_IMG_9462.2018-11-19_14_08_57.jpg?1542655314)

## Hand Tracing

&nbsp;

Once you've glued your image to a piece of cardboard, flip it over and trace your hand on the back.

&nbsp;

Cut out this tracing with scissors or a hobby knife.

![express_IMG_9389.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/119/medium640/express_IMG_9389.jpg?1542478478)

![express_IMG_9390.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/120/medium640/express_IMG_9390.jpg?1542478515)

![express_IMG_9391.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/121/medium640/express_IMG_9391.jpg?1542478729)

![express_IMG_9392.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/122/medium640/express_IMG_9392.jpg?1542478772)

![express_IMG_9393.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/123/medium640/express_IMG_9393.jpg?1542478822)

## Turkey Face

&nbsp;

Cut a small triangle from the leftover scrap cardboard. This piece will become the turkey's beak.

&nbsp;

Glue on eye and beak. A small piece of paper can help affix the beak in place.

![express_IMG_9401.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/132/medium640/express_IMG_9401.jpg?1542569535)

![express_IMG_9402.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/133/medium640/express_IMG_9402.jpg?1542569573)

![express_IMG_9403.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/134/medium640/express_IMG_9403.jpg?1542569609)

![express_IMG_9409_copy.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/204/medium640/express_IMG_9409_copy.jpg?1542662258)

![express_IMG_9405.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/205/medium640/express_IMG_9405.jpg?1542662292)

## Off with its Head

&nbsp;

Remove&nbsp;turkey head at the point where the thumb joins with palm.

![express_IMG_9407.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/165/medium640/express_IMG_9407.jpg?1542647355)

![express_IMG_9408.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/166/medium640/express_IMG_9408.jpg?1542647392)

## Motor Mount

&nbsp;

Use hot glue to attach a small square of cardboard to the back of the hand.

&nbsp;

A thin rectangle of cardboard can be used to expand the servo arm, making it easier to attach things to.

&nbsp;

Stick servo motor to the motor mount using double sided tape or glue.

![express_IMG_9412.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/167/medium640/express_IMG_9412.jpg?1542647492)

![express_IMG_9413.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/168/medium640/express_IMG_9413.jpg?1542647531)

![express_IMG_9414.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/169/medium640/express_IMG_9414.jpg?1542647613)

![express_IMG_9417.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/170/medium640/express_IMG_9417.jpg?1542647639)

## Re-attach the Head

&nbsp;

Tape the turkey head onto servo arm using a small rectangle of double sided tape.

![express_IMG_9418.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/171/medium640/express_IMG_9418.jpg?1542647696)

![express_IMG_9419.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/172/medium640/express_IMG_9419.jpg?1542647786)

![express_IMG_9420.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/173/medium640/express_IMG_9420.jpg?1542649063)

## Hand Support

&nbsp;

Glue support struts to base of hand.

&nbsp;

These will help attach the hand to a platform.

![express_IMG_9422.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/176/medium640/express_IMG_9422.jpg?1542648491)

![express_IMG_9423.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/175/medium640/express_IMG_9423.jpg?1542649251)

## Create the Base

&nbsp;

Cut out a rectangle of cardboard to serve as a platform on which to mount the turkey.

&nbsp;

Using your CRICKIT board as a gauge, mark two lines where the cardboard will fold.

&nbsp;

Glue a strip of cardboard between the two folded sections, holding them at 90 degrees.

![express_IMG_9396.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/177/medium640/express_IMG_9396.jpg?1542648503)

![express_IMG_9398.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/178/medium640/express_IMG_9398.jpg?1542649255)

![express_IMG_9400.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/179/medium640/express_IMG_9400.jpg?1542649382)

![express_IMG_9425.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/180/medium640/express_IMG_9425.jpg?1542649399)

Now that the physical structure is together, it's time to incorporate the CRICKIT and connect everything.

The circuit diagram below shows the connections that need to be made.

![](https://cdn-learn.adafruit.com/assets/assets/000/066/297/medium800/express_circuitpython_Dano.png?1542748826)

## Connect CRICKIT

&nbsp;

Cut a hole in the middle of the base. This will allow the servo motor cable to connect to CRICKIT.&nbsp;

&nbsp;

Stick CRICKIT inside the base, feed the servo motor cable through a hole and connect it to the servo pins (lightest color wire facing in).

![express_IMG_9427.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/181/medium640/express_IMG_9427.jpg?1542649420)

![express_IMG_9429.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/182/medium640/express_IMG_9429.jpg?1542649001)

## Add Audio

&nbsp;

Connect speaker to the **Speaker** terminal block on the CRICKIT.

&nbsp;

This speaker can be inconspicuously mounted inside using a small square of double sided tape.

![express_IMG_9464.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/207/medium640/express_IMG_9464.jpg?1542664326)

![express_IMG_9466.jpg](https://cdn-learn.adafruit.com/assets/assets/000/066/208/medium640/express_IMG_9466.jpg?1542664370)

# Thanksgiving Robotic Turkey Hand with Circuit Playground Express and Crickit

## CircuitPython

Onto the final step, the code itself!

For this project, we will be using [CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython/what-is-circuitpython).

## Getting Familiar

CircuitPython is a programming language based on Python, one of the fastest growing programming languages in the world. It is specifically designed to simplify experimenting and learning to code on low-cost microcontroller boards.

CircuitPython is easiest to use within the Mu Editor. If you haven't previously used Mu,&nbsp;[this guide will get you started](https://learn.adafruit.com/welcome-to-circuitpython/installing-mu-editor).

If you haven't used Circuit Playground Express with CRICKIT before, make sure you've updated it with the latest&nbsp;special 'seesaw' version of the CPX firmware.&nbsp;[This guide will show you how](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/circuitpython-code).

## Copy that Code!

Copy&nbsp;`code.py`&nbsp;from the link below and put it in&nbsp; **CIRCUITPY** &nbsp;root directory. You can work with this code in any text editing application, or open and save with&nbsp;[Mu](https://learn.adafruit.com/welcome-to-circuitpython/installing-mu-editor)&nbsp;if you prefer.&nbsp;

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Hand_Turkey/code.py

## Talking Turkey

Now it's time to give your turkey something to say. This [public domain turkey gobble sound](http://soundbible.com/1737-Turkey-Gobble.html) is a good place to start (file courtesy of Soundbible.com).

Download the WAV file, the drag and drop that WAV file onto your&nbsp; **CIRCUITPY** drive.

[gobble.wav](https://cdn-learn.adafruit.com/assets/assets/000/066/315/original/gobble.wav?1542819672)
Your **CIRCUITPY** drive should now contain the `code.py` file and WAV audio file.

Once you are at this stage you are ready to move on to the next step: _testing_!

![](https://cdn-learn.adafruit.com/assets/assets/000/066/317/medium800/express_Screen_Shot_2018-11-21_at_12.15.29_PM.png?1542820575)

# Thanksgiving Robotic Turkey Hand with Circuit Playground Express and Crickit

## Gobble Gobble!

## Test it

Give your turkey a shake! It should respond by wobbling its head and playing the WAV file.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/066/298/medium800thumb/express_IMG_9493.2018-11-20_15_36_13.jpg?1542749641)

If all is working well, give yourself a high five! You did it!

![](https://cdn-learn.adafruit.com/assets/assets/000/066/299/medium800thumb/express_IMG_9495.2018-11-20_15_38_13.jpg?1542749658)

You can add different WAV files to your **CIRCUITPY** drive if you'd like your turkey to respond with different audio responses, or change your turkey's code to make it more or less sensitive to vibrations.

![](https://cdn-learn.adafruit.com/assets/assets/000/066/300/medium800thumb/express_IMG_9492.2018-11-20_15_31_47.jpg?1542751015)

## Troubleshooting

**Problem** : My Circuit Playground Express isn't recognized by Mu!

**Solution** : Make sure your board is set up with CircuitPython, which has the Circuit Playground Express show up as a flash drive named&nbsp; **CIRCUITPY** &nbsp;when you connect the CPX to your computer. If it is showing up as&nbsp; **CPLAYBOOT** &nbsp;on your computer, you can&nbsp;[follow the steps in this guide](https://learn.adafruit.com/adafruit-circuit-playground-express/circuitpython-quickstart)&nbsp;to ensure CircuitPython is loaded and you see the&nbsp; **CIRCUITPY** &nbsp;drive.

&nbsp;

**Problem** : My servo isn't moving!

**Solution** : Check that a 5V power supply is connected and the slide switch on **&nbsp;** CRICKIT is set to "ON". The lightest color servo wire faces the center of Crickit, the darkest faces outwards.

&nbsp;

**Problem** : My servo still isn't moving!&nbsp;

**Solution** : Make sure you've updated your Circuit Playground Express with the latest&nbsp;special 'seesaw' version of the CPX firmware.&nbsp;[This guide will show you how](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/circuitpython-code).


## Featured Products

### Adafruit CRICKIT for Circuit Playground Express

[Adafruit CRICKIT for Circuit Playground Express](https://www.adafruit.com/product/3093)
Sometimes we wonder if robotics engineers ever watch movies. If they did, they'd know that making robots into servants always ends up in a robot rebellion. Why even go down that path? Here at Adafruit, we believe in making robots our&nbsp; **friends!**

So if you find...

In Stock
[Buy Now](https://www.adafruit.com/product/3093)
[Related Guides to the Product](https://learn.adafruit.com/products/3093/guides)
### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
### 5V 2A (2000mA) switching power supply - UL Listed

[5V 2A (2000mA) switching power supply - UL Listed](https://www.adafruit.com/product/276)
This is an FCC/CE certified and UL listed power supply. Need a lot of 5V power? This switching supply gives a clean regulated 5V output at up to 2000mA. 110 or 240 input, so it works in any country. The plugs are "US 2-prong" style so you may need a plug adapter, but you can pick one...

In Stock
[Buy Now](https://www.adafruit.com/product/276)
[Related Guides to the Product](https://learn.adafruit.com/products/276/guides)
### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

In Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)
### Sub-micro Servo - SG51R

[Sub-micro Servo - SG51R](https://www.adafruit.com/product/2201)
This is just about the cutest, tiniest little micro servo we could find, even smaller than the 9-gram micro servos we love so much. &nbsp;It can rotate approximately 180 degrees (90 in each direction) and works just like the standard kind you're used to but&nbsp;_much smaller_....

Out of Stock
[Buy Now](https://www.adafruit.com/product/2201)
[Related Guides to the Product](https://learn.adafruit.com/products/2201/guides)
### 3 x AA Battery Holder with 2.1mm Plug

[3 x AA Battery Holder with 2.1mm Plug](https://www.adafruit.com/product/3842)
Here's another addition to our growing family of&nbsp;[AA battery holders](https://www.adafruit.com/category/563).&nbsp;A&nbsp;holder for three (3) AA batteries! It's got&nbsp;an 8" long power cable with a 2.1mm DC jack at the end, and, oh yes, it's in classy...

In Stock
[Buy Now](https://www.adafruit.com/product/3842)
[Related Guides to the Product](https://learn.adafruit.com/products/3842/guides)
### Alkaline AA batteries (LR6) - 3 pack

[Alkaline AA batteries (LR6) - 3 pack](https://www.adafruit.com/product/3521)
Battery power for your portable project! These batteries are good quality at a good price, and work fantastic with any of the kits or projects in the shop that use AAs. This is a pack of **3 AA batteries**.  
  
These batteries are Alkaline (MnO2) chemistry, with a voltage...

In Stock
[Buy Now](https://www.adafruit.com/product/3521)
[Related Guides to the Product](https://learn.adafruit.com/products/3521/guides)
### Mini Metal Speaker w/ Wires - 8 ohm 0.5W

[Mini Metal Speaker w/ Wires - 8 ohm 0.5W](https://www.adafruit.com/product/1890)
Listen up! This tiny 1" diameter speaker cone is the perfect addition to any small audio project where you need an 8 Ω impedance and will be using 0.5W or less of power. We particularly like this cone as it's very simple and its metal body is extremely lightweight. <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1890)
[Related Guides to the Product](https://learn.adafruit.com/products/1890/guides)

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Make It Sound](https://learn.adafruit.com/make-it-sound.md)
- [CRICKIT Exhibit Demo Board](https://learn.adafruit.com/crickit-exhibit-demo-board.md)
- [Circuit Playground + CircuitPython Quickstart Guide](https://learn.adafruit.com/circuit-playground-express-circuitpython-5-minute-guide.md)
- [Improve the Low Speed of Brushed DC Motors](https://learn.adafruit.com/improve-low-speed-performance-of-brushed-dc-motors.md)
- [Combo Dial Safe with Circuit Playground Express](https://learn.adafruit.com/combo-dial-safe-with-circuit-playground-express.md)
- [Crawling Baby Sea Turtle Robot](https://learn.adafruit.com/baby-turtle-makecode.md)
- [Crickit Harmonic Drawing Machine](https://learn.adafruit.com/crickit-harmonic-drawing-machine.md)
- [Circuit Playground Simple Simon](https://learn.adafruit.com/circuit-playground-simple-simon.md)
- [Crickit Collapsible House with MakeCode](https://learn.adafruit.com/collapsible-house.md)
- [Circuit Playground Quick Draw](https://learn.adafruit.com/circuit-playground-quick-draw.md)
- [Steven Universe Wearable, Fusable Gem](https://learn.adafruit.com/steven-universe-wearable-fusable-gem.md)
- [Cam Follower Automaton](https://learn.adafruit.com/cam-follower-automaton.md)
- [Magic Light Bag of Holding](https://learn.adafruit.com/magic-light-bag-of-holding.md)
- [Using DS18B20 Temperature Sensor with CircuitPython](https://learn.adafruit.com/using-ds18b20-temperature-sensor-with-circuitpython.md)
- [Paper Craft Zoetrope with Crickit](https://learn.adafruit.com/paper-craft-zoetrope-with-circuit-python.md)
