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

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

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

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

Paper Airplane Launcher

Crawling Animatronic Hand

Android GBoard Morse Code Control with Circuit Playground Express

Crawling Baby Sea Turtle Robot

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

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Ping Pong Ball Launcher

Mini Golf Course with Circuit Playground and Crickit

Crickit Powered Mini Chair Swing Ride!

BLE Light Switch with Feather nrf52840 and Crickit

Hammer Time Mini Golf Hazard with Crickit

Adabot Operation Game

HalloWing Jump Scare Trap

Circuit Playground Express Head-Tilt Ears

The Scream: Interactive Screaming Painting

Crickit Powered Holiday Diorama

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

Crickit Carnival Bumper Bot

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

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

Reindeer Mask with Animated Eyes

Circuit Playground Express Laser Tag

Infinity Mirror Valentine's Candy Box

Spinning Disc Step Sequencer

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

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

Wind Blowing Emoji Prop

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

Data Logging with Feather and CircuitPython

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

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

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

UFO Flying Saucer with Circuit Playground Express

Bunny Ears with MakeCode

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

Adafruit DRV2605 Haptic Controller Breakout

TSL2561 Luminosity Sensor

Adafruit Capacitive Touch Sensor Breakouts

Con Badge with Circuit Playground Express

Adafruit IO Basics: Servo

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

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

NeoPixie Dust Bag with Circuit Playground Express

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

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

Modifying Servos for Continuous Rotation

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

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

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

Adafruit Si7021 Temperature + Humidity Sensor

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

Light-Up Angler Fish Embroidery

DIY Circuit Playground Shields

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

CircuitPlayground Minecraft Gesture Controller

NeoPixel Ring Bangle Bracelet

GPS Logging Dog Harness

LED Breath Stats Mask

Adafruit PowerBoost 500 Shield

Easy Sparkle Pocket T-Shirt

Adafruit APDS9960 breakout

Bike Wheel POV Display

Adafruit AMG8833 8x8 Thermal Camera Sensor

CircuitPython Snow Globe

Secret Hollow Book Intrusion Detector

Adafruit Mini TFT with Joystick Featherwing

MCP Bit DAC Tutorial

Circuit Playground Yoyo

Portable Apple Watch Charger

Raspberry Pi Selfie Bot

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

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

Adafruit Color Sensors

ISS Pin. Created by Leslie Birch. Last updated on :27:30 PM UTC

Sword & Wand Prop Effects with Circuit Playground

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

CircuitPython Media Dial

NeoMatrix 8x8 Word Clock

Adafruit Pi Cobbler Kit

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

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

Adafruit AM2320 Sensor

Boomy The Boombox. Created by Ruiz Brothers. Last updated on :52:13 PM UTC

Making Adabot: Part 1

Adafruit 8x16 LED Matrix FeatherWing

Adafruit CCS811 Air Quality Sensor

LED Lightbox. Created by Sam Clippinger. Last updated on :50:00 AM UTC

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

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

3D Printed Google AIY Voice Kit

NeoPixel Basketball Hoop

Trinket-Powered Conference Room Occupancy Display

Adafruit DS3231 Precision RTC Breakout

BeagleBone. Created by lady ada. Last updated on :46:10 PM UTC

Simple LED Unicorn Horn

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

Transcription:

Trash Panda Created by Dano Wall Last updated on 2018-06-06 02:30:46 AM UTC

Guide Contents Guide Contents Overview Amazon's playful boxes We have the technology Other supplies you will need Create your Panda Cut out the legs Cut out the arms Cut out the face Add a door Add Electronics Synchronized Servos Making Connections Uploading Code with Mu But first... Testing 1...2...3... Long Live Trash Panda! 2 3 3 3 4 5 5 5 6 7 9 10 12 18 18 18 22 Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 2 of 22

Overview Amazon's playful boxes Amazon recently started shipping boxes that include graphics which can be cut out and turned into masks. This project takes it a step further and repurposes the entire box to create an animatronic panda friend. For this project, most any rectangular shipping box will work, but an A3 (https://adafru.it/bhm) box seems to have just the right proportions. If you don't have an Amazon box that has these graphics, do not fear! Drawing whatever you like with a sharpie pen does the trick just as well. You can create any animal you want! We have the technology This project pairs CRICKIT and Circuit Playground Express with two servo motors. 1 x Circuit Playground Express Circuit Playground Express is the perfect introduction to electronics and programming OUT OF STOCK 1 x Adafruit CRICKIT for Circuit Playground Express Creative Robotics and Interactive Construction Kit is an add-on to our popular Circuit Playground Express that lets you #MakeRobotFriend using CircuitPython OUT OF STOCK 1 x TowerPro SG-5010 Servo High-torque standard servo can rotate approximately 180 degrees (90 in each direction) ADD TO CART 1 x Micro Servo This little servo can rotate approximately 180 degrees (90 in each direction). Works just like standard servos you're used to but smaller. ADD TO CART Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 3 of 22

1 x 5V 2A (2000mA) switching power supply Power supply that gives a clean regulated 5V output at up to 2000mA, 110 or 240 input ADD TO CART 1 x USB cable - A/MicroB - 3ft Standard A to micro-b USB cable ADD TO CART Other supplies you will need The other supplies can be found around the home. Along with a box you will need: Scissors Double-sided tape String or fishing line (~20 inches long) The box will be flipped on one end with the top flap folded down and the other three flaps bent outwards. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 4 of 22

Create your Panda Cut out the legs These legs can be as simple or as fancy as you want. Two hemispheres will do, or you can add extra features like claws! Cut out the arms These arms will attach to a servo motor and flap back and forth. Make them as simple or as complicated as you like. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 5 of 22

Cut out the face Cut out and tape your panda face to a scrap length of cardboard. This piece of cardboard will hold out and suspend the panda face in front of the box. Tape this face to the top of the box. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 6 of 22

Add a door Use a spare piece of scrap cardboard to tape a door to the front of your panda. This will create a space to store your CRICKIT. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 7 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 8 of 22

Add Electronics Now it's time to add electronics to the panda! Cut a rectangular hole in the back of the box. Insert servo housing into cardboard. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 9 of 22

Cut another rectangular hole in front flap of the box. Insert second servo motor into this hole. The fit should be fairly tight so it doesn't fall out accidentally. Synchronized Servos CRICKIT can control up to four servos at once! For this project we will only need two. We will use Mu to upload the CircuitPython code to Circuit Playground Express and control both servos simultaneously. If you have not used Mu before, this is the guide on how to install it (https://adafru.it/ano) For a quick primer on using CircuitPython and Servos, it is recommended to read through this learn guide (https://adafru.it/bhk) as well. Connect your servos to CRICKIT as shown in the diagram below. Be sure the yellow wire faces the edge of the CRICKIT board and the brown/black wire faces the Circuit Playground Express. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 10 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 11 of 22

Making Connections Use fishing line or string to tie a loop around your panda's arms. Tie the other end to the tip of the servo hub. This will pull the arms back and forth in a flapping motion. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 12 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 13 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 14 of 22

Use double sided tape to affix servo hub to piece of cardboard. Press hub onto servo motor. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 15 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 16 of 22

Cut a small square hole in the base of the box. This will allow you to feed 5V power into the box. Connect 5V power to your CRICKIT board. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 17 of 22

Uploading Code with Mu But first... To use Circuit Playground Express and CRICKIT together, you'll first need to install the special 'seesaw' version of the CPX firmware. This guide (https://adafru.it/bfh) will take you through how to install CRICKIT support onto your circuit playground express. Once you have completed this step you're ready to move on. Testing 1...2...3... Follow these three steps to get your motors turning 1) Connect Circuit Playground Express to your computer with a micro USB cable 2) Copy & paste the code below into the Mu Editor 3) Press the Save button in Mu - your code should be saved to the CIRCUITPY disk drive (which appears when the Circuit Playground Express is plugged into your computer) as code.py. If you name the program something else, like panda.py, the Circuit Playground Express won't automatically run it, that's why it's named code.py. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 18 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 19 of 22

# Code for the Trash Panda tutorial with Adafruit Crickit and Circuit Playground Express # 5/2018 Dano Wall import time from digitalio import DigitalInOut, Direction from adafruit_seesaw.seesaw import Seesaw from adafruit_seesaw.pwmout import PWMOut from adafruit_motor import servo from busio import I2C import board # Create seesaw object i2c = I2C(board.SCL, board.sda) seesaw = Seesaw(i2c) led = DigitalInOut(board.D13) led.direction = Direction.OUTPUT # Create servos list servos = [] for ss_pin in (17, 16, 15, 14): pwm = PWMOut(seesaw, ss_pin) pwm.frequency = 50 _servo = servo.servo(pwm, min_pulse=600, max_pulse=2500) _servo.angle = 90 # starting angle, middle servos.append(_servo) print("its TRASH PANDA TIME!") while True: print("tick") led.value = True servos[0].angle = 0 time.sleep(0.5) servos[1].angle = 180 time.sleep(0.5) servos[2].angle = 0 time.sleep(0.5) print("tock") led.value = False servos[0].angle = 180 time.sleep(0.5) servos[1].angle = 0 time.sleep(0.5) servos[2].angle = 180 time.sleep(0.5) Check that both servos are rotating back and forth. You should also be able to open the REPL within Mu, via pressing the button labeled REPL, and see "tick tock" printing out on your screen. Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 20 of 22

Adafruit Industries https://learn.adafruit.com/trash-panda-circuit-python-crickit Page 21 of 22

Long Live Trash Panda! Adafruit Industries Last Updated: 2018-06-06 02:30:45 AM UTC Page 22 of 22