Weather Treasure Box

by bfalkenhayn01 in Circuits > Raspberry Pi

93 Views, 0 Favorites, 0 Comments

Weather Treasure Box

IMG_2651.png

Today’s build is a Treasure Box with a servo lock with a gesture password using the Adafruit Apds9960 sensor. As a bonus there is an API powered weather temperature indicator light with different colors and number of lights lit depending on the outside temperature. 

Supplies

Treasure Box Walk Through
  • Raspberry Pi Pico W
  • Breadboard
  • Adafruit Apds9960 Proximity, Light, Rgb, and Gesture Sensor
  • Servo 
  • Pins and alligator clips 
  • LED and resistor 
  • ⅛ Inch Acrylic 
  • Mirror
  • Neopixel light strip 
  • Hinges
  • 3D-printer
  • Nuts, bolts, and washers
  • Glue
  • Micro USB Cable



Circuit Python Code


See the attached code. You will have to edit the settings.toml file on your device for your wifi network and set up API keys for https://openweathermap.org/api and ip2location.io. You can also select your password for your box using the gesture sensor. 

Downloads

Laser Cut Files

See the attached files for the laser cutter. I used different colors of acrylic but you could also use wood- just make sure to have at least one clear piece for the mirror and lights to mount on. 



3D Print

See attached file for the 3D printer. This print creates a ring for the Neopixel light strip to wrap around. This print took around 3 hours and 3 minutes to complete.

Assembly

IMG_2650.png
IMG_2652.png

Begin assembling the box. I used superglue on the acrylic. I drilled holes for the hinges to be attached at the rear of the box. The upper chamber of the box is where all the electronic components are. For this build I had the top of the box on a sliding rail to make the electronics easily accessible if I want to make any changes in the future. You could also glue it shut if you are confident in your build. You may need to make adjustments to the servo angle in your code so that the lock mechanism works correctly. I recommend using the REPL to make fine tune adjustments.

Unlock Your Box

When your build feels complete you can use the gesture sensor and your new password to unlock and lock your box. Hopefully everything works well and all your treasures will be safe and sound!