Michelle T
Published

Nightlight Music Box

A Circuit Playground Express with a potentiometer to control the brightness of the lights and a switch to turn the melody on or off.

BeginnerFull instructions provided2 hours216
Nightlight Music Box

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×5
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Toggle Switch, SPDT
Toggle Switch, SPDT
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Hand tools and fabrication machines

Paper Lantern
A generic paper lantern I brought a long time ago from probably Dollar Tree.

Story

Read more

Schematics

Board Construction

Attached the alligator clips to the responding areas on the board to the potentiometer and toggle switch.

Paper Lantern

The assembled paper lantern without the board.

Placed Board Within Lantern

Placed the board within the lantern, close to the base.

Board Functional

Seeing if the board is functional within the lantern.

Paper Lantern in the Dark

The paper lantern at max brightness in the dark.

Code

Nightlight Music Box

Makefile
https://learn.adafruit.com/make-it-change-potentiometers/makecode
This was used to control the lights on the board, followed the example in the lab.
https://learn.adafruit.com/make-it-switch/code-your-micro
This was used to play the melody from the board, adjusted it so that it played sounds instead of turning the lights on or off.
No preview (download only).

Credits

Michelle T
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.