Circadian Cycle Lamp
by seanjmarchetti in Circuits > Microcontrollers
52 Views, 0 Favorites, 0 Comments
Circadian Cycle Lamp
I have made a lamp that is supposed to change its lighting based on the Circadian cycle that can lead to better quality sleep that also has an inbuilt alarm so it indirectly stops phone usage, this is with a Seeed Studio XIAO ESP32-C3 microcontroller.
previous research:
https://www.instructables.com/WeggUp-A-sleeping-cycle-and-light-alarm-clocke/
very complicated design, not super achievable for a beginner, it does use a raspberry pi pico but it also uses a wifi stick, its a light but also makes sound and also a safety feature of temperature sensors to prevent overheating. The main limitation is just how complex the design is and especially all of the excess hardware being used outside the pico.
https://www.instructables.com/LED-Lamp-With-Sleep-Timer/
This person is recycling a office light to be able to have a adjustable brightness settings and for it to be automatic, the materials used are:
- Desk Lamp
- DC Power Adapter
- Bright LED's
- 330 microfarad Capacitor
- 5 kohm Potentiometer
- 10 Mohm Resistor
- 6.8 kohm Resistor
- 5V Voltage Regulator (such as LM7805 )
- IRF510 MOSFET
- Switch
- Perf Board
The main limitation is the light not using a pico, like we are using and also its a lot of effort when it comes to gutting a desk lamp without damaging it and also repurposing would be difficult
https://www.instructables.com/A-Smart-Lamp-That-Wakes-You-Up-at-the-Optimal-Time/
this light replicates the sunrise and also has a calculator that also wakes you up using sound the supplies used are:
- Xiao esp32C3: Link to buy
- Ws2813 addressable LEDs: Link to buy
- IR proximity sensor: Link to buy
- A damaged laptop screen to recycle the diffusion sheet (or a standard diffusion sheet)
- Jumper wires
- Soldering iron
- Wood / Foam board
- Paint
one limitation is the laptop screen/diffusion sheet honestly that's too much effort, another limitation is the light plus sound, mainly because I'm still a beginner and I don't know how to run two complicated things in one and also I don't really find the sound worth it.
Supplies
Tools
- Soldering Iron
Electronics
- Seeed Studio XIAO ESP32-C3
- Wires (assorted)
- LED Ring
Diagram
- Connect a wire between Vbus and the 5v, because Vbus allows for a 5 volt output (dark wire)
- Connect a wire between ground on the Micro controller (which is directly underneath the VBUS pin) to Ground on the ring light on the diagram this is the purple wire
- Connect the data input pin to a General power output pin (GPO) in this case I'm using GPO 1 which the is dark blue wire.
Solder the Header Pins to the Micro Controller and Assemble the Light
Code
Downloads
Test
as you can see the turns on, not sure why 4 of the leds don't work however its still very bright so I have no issues