This uses an esp32 on a custom PCB to control the electronic devices and lighting in my room. Like an iPhone’s night shift the esp32 automatically dims and redshifts my lights at night, it also turns off my minifridge from 10-12 to make falling asleep easier, and automatically turns on the lights, a heater, and my tea kettle in the morning to make waking up enjoyable. It also controls the backlighting on my posters.
The main goal of this project was to get better at designing PCBs. The top two images show the final design, the bottom are two prototype boards. The final design has headers for a real-time clock and a temperature sensor, it has 6 independent low-side switching MOSFETs for PWM lighting control, a 5-volt power supply, and 5 outputs capable of 50 mA each to power 120-volt relays.
All of these PCBs were designed in EasyEDA and ordered through JLCPCB. I installed this in my room in September of 2023 and it has been running ever since.