A Brighter Way to Manage Diabetes: The Glucose Lamp

This DIY ESP32 lamp syncs with your monitor to track glucose through subtle color shifts, taking the stress out of diabetes management.

This lamp monitors a person's glucose levels (📷: mattack65)

Between getting enough exercise, eating the right foods, and maintaining a good work-life balance, it is hard to live a healthy life. This difficulty is only multiplied when a person has a medical issue to deal with. Take diabetes, for instance. Managing this condition well takes not only healthy lifestyle choices, but also frequent monitoring of blood glucose levels. This means taking time out each day to take measurements — every single day without fail.

If you need a break from this chore, GitHub user mattack65 has built a device you may be interested in that makes glucose monitoring less of a pain. It is a lamp that wirelessly integrates with a commercial continuous glucose monitor. As glucose levels shift, so does the color of the light emitted by the lamp. This provides an early visual cue that action is needed without being intrusive or requiring manual intervention.

The project is built around an ESP32 microcontroller paired with a strip of addressable LEDs. The system connects over Wi-Fi to retrieve near-real-time glucose readings using Dexcom’s Share/Follow functionality. These values are then translated into color output through a customizable mapping system, allowing the lamp to glow in different hues depending on whether glucose levels are low, normal, or high.

Rather than relying on abrupt color changes, the lamp uses smooth interpolation between predefined color anchor points. This results in gradual transitions that are easier on the eyes and more intuitive to interpret at a glance. For example, a steady shift from green toward red can indicate rising glucose levels, while cooler tones might represent lower readings.

The hardware setup is very accessible for hobbyists. It includes an ESP32 development board, a WS2812B LED strip with around 100 LEDs, a potentiometer for brightness adjustment, and a push button for switching modes. A good 5V power supply is essential, especially since LED strips can draw several amps at full brightness. Careful wiring — particularly for power delivery — is important to avoid voltage drops and ensure stable performance.

In addition to its primary glucose-indicating mode, the lamp also functions as a standard white light, making it useful beyond its medical purpose. A startup test mode cycles through different glucose values to help fine-tune the color mapping, while a dimming system maintains accurate colors even at very low brightness levels by selectively lighting fewer LEDs instead of simply reducing power across all of them.

While not intended to replace medical devices or professional advice, this DIY lamp offers an excellent example of how ambient technology can support daily health management. By turning health data into a subtle environmental cue, it reduces the burden of constant monitoring. For more details, see the project's GitHub repository.

Nick Bild
R&D, creativity, and building the next big thing you never knew you wanted are my specialties.
Latest articles
Sponsored articles
Related articles
Latest articles
Read more
Related articles