# Motion Gift Box

## Overview

https://youtu.be/XJiPfvexwAU

In this project we’re making a motion activated gift box using [Adafruit Crickit](https://www.adafruit.com/product/3093) and [Circuit Playground Express](https://www.adafruit.com/product/3333).

This holiday themed box moves around the floor as it makes creepy sounds and lights.

&nbsp;

It uses a [PIR motion sensor](https://www.adafruit.com/product/189) to detect movement and a TT motor to spin a wheel. It also triggers lights and sounds making this an interactive gift box.

&nbsp;

With Adafruits Crickit robotics platform, you can program with Circuit Python.

![micropython___circuitpython_hero-boardsB.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/654/medium640/micropython___circuitpython_hero-boardsB.jpg?1542054017)

![micropython___circuitpython_hero-trigger.gif](https://cdn-learn.adafruit.com/assets/assets/000/065/655/medium640thumb/micropython___circuitpython_hero-trigger.jpg?1542054336)

&nbsp;

Use a cardbox and scraps to house the components and get crafty with the decorations.

&nbsp;

It's easy to prototype with cardboard and paper crafts to make a unique gift box that you can customize!

![micropython___circuitpython_hero-loop.gif](https://cdn-learn.adafruit.com/assets/assets/000/065/656/medium640thumb/micropython___circuitpython_hero-loop.jpg?1542054429)

## Parts

&nbsp;

You can find the list of all parts used to make this project linked below!

&nbsp;

We used Circuit Python and programed our Gift Box to activate when the PIR sensor detects any moment. You can use the on-board sensors on the Circuit Playground Express to make it even more&nbsp; interactive!

&nbsp;

## 3D Printed Parts

&nbsp;

Although not require, our 3D printed mount is design to easily mount the Crickit to a battery pack.

&nbsp;

![micropython___circuitpython_parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/657/medium640/micropython___circuitpython_parts.jpg?1542054669)

![micropython___circuitpython_craft-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/065/658/medium640/micropython___circuitpython_craft-parts.jpg?1542054759)

## Prerequisite Guides

There's resources in these guides that go beyond what's covered in this tutorial. MakeCode guide is all about setting up your Circuit Playground Express board. TheCircuit Playground Express introduction guide walks you through all of the pinouts, sensors and everything you need to know.

- [Introducing Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express)
- [Introducing CRICKIT](https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit)
- [Welcome to Circuit Python](https://learn.adafruit.com/welcome-to-circuitpython)
- [Adafruit's Guide to Excellent Soldering](https://learn.adafruit.com/adafruit-guide-excellent-soldering?view=all)

### Part: Adafruit Crickit for CPX
quantity: 1
Robotics Platform
[Adafruit Crickit for CPX](https://www.adafruit.com/product/3093)

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

### Part: PIR Motion Sensor
quantity: 1
PIR sensors are used to detect motion from pets/humanoids from about 20 feet away
[PIR Motion Sensor](https://www.adafruit.com/product/189)

### Part: Speaker
quantity: 1
4ohm 3w 40mm diameter
[Speaker](https://www.adafruit.com/product/3968)

### Part: TT Motor
quantity: 1
DC Gearbox motor - 200RPM
[TT Motor](https://www.adafruit.com/product/3777)

### Part: Motor Mount for TT Gearbox DC
quantity: 1
L-Bracket for DC Motor
[Motor Mount for TT Gearbox DC](https://www.adafruit.com/product/3768)

### Part: Wheel for TT Motor
quantity: 1
Skinny wheel with rubber track
[Wheel for TT Motor](https://www.adafruit.com/product/3757)

### Part: Battery Holder
quantity: 1
3x AA Battery holder with 2.1mm plug
[Battery Holder](https://www.adafruit.com/product/3842)

### Part: Alligator Clips
quantity: 1
6pc small alligator clip to male jumper wire
[Alligator Clips](https://www.adafruit.com/product/3448)

### Part: Jumper Wires
quantity: 1
Premium female/male extension 20 x 3"
[Jumper Wires](https://www.adafruit.com/product/1953)

### Part: Jumper Wires
quantity: 1
female/male extension jumper wires 40 x 6"
[Jumper Wires](https://www.adafruit.com/product/826)

### Part: 4 x Metric Machine Screws for 3D Printed Crickit Mount
quantity: 1
M3 x 6mm phillips pan head
[4 x Metric Machine Screws for 3D Printed Crickit Mount](https://www.albanycountyfasteners.com/Phillips-Pan-Head-Machine-Screw-M3-x-5-p/1066-1008.htm)

## Tools

List of handy things to assist in any project.

- [Wire Strippers](https://www.adafruit.com/product/527)
- [Wire Cutters](https://www.adafruit.com/product/152)
- [Soldering Iron](https://www.adafruit.com/product/180)
- [Solder Wire](https://www.adafruit.com/product/734)
- [Panavise Jr.](https://www.adafruit.com/product/151)
- [Third Helping Hands](https://www.adafruit.com/product/291)
- [Monoprice Inventor II](https://www.adafruit.com/product/3897)

- [Next Page](https://learn.adafruit.com/motion-gift-box/circuit-diagram.md)

## 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)
### PIR (motion) sensor

[PIR (motion) sensor](https://www.adafruit.com/product/189)
PIR sensors are used to detect motion from pets/humanoids from about 20 feet away (possibly works on zombies, not guaranteed). This one has an adjustable delay before firing (approx 2-4 seconds), adjustable sensitivity **and** we include a 1 foot (30 cm) cable with a socket so you...

In Stock
[Buy Now](https://www.adafruit.com/product/189)
[Related Guides to the Product](https://learn.adafruit.com/products/189/guides)
### DC Gearbox Motor - "TT Motor" - 200RPM - 3 to 6VDC

[DC Gearbox Motor - "TT Motor" - 200RPM - 3 to 6VDC](https://www.adafruit.com/product/3777)
Perhaps you've been assembling a new robot friend, adding&nbsp;a computer for a brain and other fun personality touches. Now the time has come to let it leave the nest and fly on its own wings– err, _wheels!_&nbsp;

These durable (but affordable!) plastic gearbox motors...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3777)
[Related Guides to the Product](https://learn.adafruit.com/products/3777/guides)
### Speaker - 40mm Diameter - 4 Ohm 5 Watt

[Speaker - 40mm Diameter - 4 Ohm 5 Watt](https://www.adafruit.com/product/3968)
Hear the good news! This speaker&nbsp;is a great addition to any audio project where you need a&nbsp;4 Ohm impedance and 3W or less of power.

At **40mm diameter** it has a more square-ish shape, but a smaller face. Sound quality and volume are nicely sandwiched between our...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3968)
[Related Guides to the Product](https://learn.adafruit.com/products/3968/guides)
### Motor Mount for TT Gearbox DC Motors - L-Bracket Type

[Motor Mount for TT Gearbox DC Motors - L-Bracket Type](https://www.adafruit.com/product/3768)
You have a TT&nbsp;motor, but you need to attach it to your CNC project, eh? Not so easy if you don't have an **L-Bracket DC Motor Mount** just like this fine one&nbsp;here! Made of 2mm aluminum metal, it's got a solid construction and is easy to get going. There...

In Stock
[Buy Now](https://www.adafruit.com/product/3768)
[Related Guides to the Product](https://learn.adafruit.com/products/3768/guides)
### Skinny Wheel for TT DC Gearbox Motors

[Skinny Wheel for TT DC Gearbox Motors](https://www.adafruit.com/product/3757)
Plastic gear-box motors (also known as 'TT' motors) are an easy and low cost way to get your projects moving. But we've noticed that there are not a lot of nice TT motor _wheels_ to go along with them.

This **TT DC Motor Wheel** is solid, but thin, so it...

In Stock
[Buy Now](https://www.adafruit.com/product/3757)
[Related Guides to the Product](https://learn.adafruit.com/products/3757/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)

## Related Guides

- [PIR Motion Sensor](https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor.md)
- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Wind Blowing Emoji Prop](https://learn.adafruit.com/wind-face-emoji.md)
- [DAC Hacks for Circuit Playground Express & other ATSAMD21 Boards](https://learn.adafruit.com/circuit-playground-express-dac-hacks.md)
- [Con Badge with Circuit Playground Express](https://learn.adafruit.com/circuit-playground-express-con-badge.md)
- [Sound Activated Shark Mask](https://learn.adafruit.com/sound-activated-shark-mask.md)
- [Glowing Bottle Castle and Capacitive Touch Piano](https://learn.adafruit.com/glowing-bottle-castle-and-capacitive-touch-piano.md)
- [Color Spinner Camera Ring Light ](https://learn.adafruit.com/camera-ring-light-with-cpx.md)
- [Chatty Light-Up Circuit Playground Express Mask](https://learn.adafruit.com/chatty-light-up-cpx-mask.md)
- [Pushrod Garage](https://learn.adafruit.com/pushrod-garage.md)
- [How to Choose a Microcontroller](https://learn.adafruit.com/how-to-choose-a-microcontroller.md)
- [Circuit Playground Morse Code Flasher](https://learn.adafruit.com/circuitplayground-morse-code-flasher-makecode-circuit-python.md)
- [Plantagotchi: PyBadge Plant Monitor](https://learn.adafruit.com/plantagotchi-pybadge-plant-monitor.md)
- [Crickit Powered Mini Chair Swing Ride!](https://learn.adafruit.com/mini-chair-swing-ride.md)
- [LEGO Compatible Crickit Rover](https://learn.adafruit.com/lego-compatible-crickit-rover.md)
- [Make it Move with Crickit](https://learn.adafruit.com/make-it-move-with-crickit.md)
- [Make It Sound](https://learn.adafruit.com/make-it-sound.md)
