AI on the Edge LESSON 7: Homework Solution for Dimmable LED
AI on the Edge LESSON 7: Homework Solution for Dimmable LED | Technology Tutorials
- Practiced using Analog-to-Digital Converter (ADC) seeing varying voltage from potentiometer
- Used PWM (Pulse Width Modulation) to control LED brightness by switching the power on and off from the AI Fusion Lab library
Build Day/Prototyping
- I decided plugging in my own digital health wasn’t the best prototype or way to help my own behavioral change after iterating a few screens, which was a great use of vibe code prototyping
- I like the idea of building an end-to-end idea of a breathing/meditation tool, did a first run on idea with Claude. Summary below. Build to follow
A voice-controlled breathing coach built on a Raspberry Pi 5 with a SunFounder Fusion HAT+, running entirely on-device with no cloud dependency. The user speaks a request, a locally-run language model interprets the intent and classifies it into one of three breathing techniques — diaphragmatic, box, or 4-7-8 — and the device guides the session with an RGB LED that breathes on each technique’s exact timing in a distinct color (blue, green, magenta) while the onboard speaker coaches each phase. The language model is deliberately scoped to choose among known options rather than generate open-ended output, with a keyword fallback beneath it for reliability and a safety guardrail that recognizes genuine distress and points toward real human support instead of coaching through it. The project demonstrates the full edge-AI loop — voice in, local inference, and light-and-voice out on constrained hardware — and treats the AI’s failure cases as first-class design concerns rather than afterthoughts.
Leave a Reply