This is a night light that was programmed in micropython and used a Raspberry Pi Pico W with a Cytron daughterboard attachment.
The goals of the project were as follows:
- Turn the nightlight on and off with MQTT commands
- Program one of the blue LEDs to continually breathe (get brighter then dimmer then brighter)
- Sound the buzzer and light the NeoPixel when Pin 20 is activated
- Have Steps 1-3 running asynchronously
- Use a separate button and LED from the ones built into the board
- Fabricate a housing for the electrical hardware
- Use UART or i2c communication to make the light touch-sensitive using an accelerometer
- Control all steps from a cell phone using a PyScript page