Circadian Lighting System
Engineering Projects That Showcase My Expertise
Circadian Lighting System
A current work-in-progress to continue the effect of my sunrise alarm clock throughout the day. The goal is to design an LED lighting system that will mimic sunlight indoors to set a more consistent circadian rhythm and help regulate cortisol and melatonin release.

Features
In order to properly mimic the sun, accurate measurements of the sun’s emission spectrum must be taken over many days for a high number of samples. The current progress of the project is a light sensor datalogger with the following features that measures sunlight throughout the day.
- 8 Channel Spectrometer: The human eye is sensitive to harsh light sources with non-uniform emission spectra like fluorescent lights, so it is important to get a baseline on the sun’s emission spectra to mimic.
- RGB Sensor: This sensor is included to measure light as our eyes see them and get readings on the color temperature of daylight, an important indicator for our circadian rhythm and measure for cortisol and melatonin release in the brain.
- Data Recording: Every 5 minutes throughout the day, the device takes readings from the sensors and records them in a .CVS file on a micro SD card.
- Multi-Color LED: For testing purposes, the microcontroller includes and on-board RGB LED that can display the color of light measured.
In order to get accurate measurements for the light sensors and color temperature, the recorded values have to be calibrated and scaled to match known values. Many white and colored LEDs were used to calibrate the sensors with known emission spectrums from their datasheets. A configurable RGB LED bar was built as well to record theoretical RGB values that could be compared to the values measured by the sensor for calibration.
Technology and Components
- Microcontroller: An Adafruit ESP32 microcontroller was chosen because of the memory space required for the recording program, light sleep mode, on-board battery charger, and large number of DIO pins.
- DIP Switch: A 6-pin DIP switch was included for testing purposes to allow the user to configure LED indication and data recording settings without editing code.
- Real-Time Clock Module: Ensures precise timing of the recording intervals through interrupts, waking the microcontroller from a low-power sleep mode.
- AS7341 10 Channel Light Sensor: A low cost option for emission spectrum sensing, this sensor records 8 visible light wavelengths as well as clear and NIR.
- TCS34725 RGB Sensor: This sensor views the light seen by the human eye and is used to measure the color temperature of light.
- Light Diffusers: Diffusers were added to the sensors via 3D printed brackets to ensure the ambient daylight was being measured, not just a single point in the sky.
Outcome
- Though still a work in progress, good data has been collected offering a clean benchmark to replicate through the ongoing lighting system design.