Each of these shadowboxes will detect motion and send a message to all the others, lighting them up.
I wanted to make these for my family members. It's pretty easy, and it's my first real project with a Spark Core, which made it twenty times easier to do.
The thing that I like about this project is that it's incredibly easy for me to run updates to the firmware. I can tell who has theirs online, and I can make changes so that they blink differently on birthdays or holidays. I could even give each frame its own LED or LED pattern to distinguish which frame is being set off at any given moment.
You can make one. You should make one. Find out how below.
I made five, but two is the minimum. Here's what you would need for that.
Materials
- 2 Spark Cores
- 2 USB to micro USB cables
- 2 Power bricks
- 2 PIR sensors
- 8 white LEDs
- 100 Ohm Resistors
- 2 Breadboards or 1 Big Breadboard
- 2 Protoboards
- Wires (I like having many colors) and things to snip and strip them
- 2 drawings or photos printed on vellum paper and cut to 8"x8"
- 2 three-quarter-inch 8x8 shadowboxes
- Drill and big fat drill bit
- Hot glue gun
- Solder and soldering iron
Step 1: Power on your Cores and Flash the Firmware
Turn everything on, make sure it works, and flash the firmware below to both cores. If you need help getting started, go to docs.spark.io or to http://cmsunu28.gitbooks.io/spark-basics/ for assistance.
Step 2: Test everything on the breadboard to make sure it works.
Sadly, my version of fritzing does not include a PIR sensor, but here it is without the sensor in it, as I prototyped it on the breadboard:
Here's some videos of it working...
I tested both before I soldered anything down.
Step 3: Wire everything to a protoboard and solder it!
This was super fun. I put headers onto the protoboard so that it would be removable, and I soldered the wires down in this basic conformation:
Step 4: Re-test to make sure it works...
Step 5: Prep the frames
I actually did this step earlier, as you can see in the above video. This is the part where you take the frame apart and drill a hole in the bottom for the wire. It was actually pretty easy to do with the frames I had, although I got sawdust all over the place.
The shadowboxes had a spacer in them as well that I removed for drilling and used later to hold down the LEDs, as shown below. I also used the cardboard that came in the picture as a cover so that the shadows of the wires and protoboard wouldn't show when the LEDs lit the frame.
Step 6: Put it all together
Gently press down on the spacer to secure it. Make sure the LEDs go between the spacer and the vellum paper, but that your cable and other wires are looped on the other side. Plug your Core into your cable, run the cable and the PIR sensor over the spacer, and replace the backing on the frame. Use hot glue to secure the sensor to the bottom of the frame.
You should be good to go! Make sure you put the backs on very loosely so that you can put the cores on wifi when the frames get to their new homes.
Step 7: Plug in, connect, and enjoy!
Plug in the frame at its new home, put the core on the wifi there (you may have to hold Mode until it starts flashing blue again), and watch them go off!
Hooray!
Comments