The trick-or-treaters clamber up the steps of the next house on their evening route. The porch light is on, but no one comes to the door.
What's this? On a small table, a spooky-looking cardboard box sits next to a lamp. A sign on the lamp says "Touch Here for a Treat."
A small but brave goblin reaches out her hand, but before she can touch the lamp, an electronic disk lights up with a ghoulish orange smile, haunting notes play, and the box springs open as if to laugh at the foolish children.
But perhaps not as foolish as they seem ... for inside the box are spider rings and creepy crawlies for the taking. They each take a treat and move on in their quest to fill their Halloween bags.
This spooky laughing box comes to life thanks to a Circuit Playground Express, a servo motor, and a power source. The project is easy enough for kids to do themselves (with a little help cutting), and you can decorate it any way you choose.
The CPX's onboard light sensor is simple to program using MakeCode software to trigger the lights, music, and motion. If you want, you can add extra features like a mouth-opening mode or change up the eerie tunes. Keep reading to find out how!
The Circuit Playground Express and a servo are the only electronic parts in this project, along with the things you need to make them run, like a USB cable and a battery pack. Depending on the size and weight of your cardboard box, you may be able to use a micro servo to lift the lid. But if your box is large or heavy, try the more powerful standard servo.
Other supplies you will need include:
- 1 oblong cardboard box with a lid -- an Adafruit box works well!
- (optional) extra smaller box
- extra scrap cardboard
- (optional) craft stick
- adhesive such as dots or strips, foam tape or hot glue
- masking tape
- (optional) peel-and-stick Velcro dots
- (optional) peel-and-stick craft foam
- crafts supplies and/or holiday decorations (eyeballs, plastic creepy crawlies, pipe cleaners, construction paper, etc.)