
The_Aura_Studio
A production-grade, local Elegant smart lighting hub and spatial controller designed for dual Philips WiZ corner bulbs and an addressable WS2812B desktop LED strip. Zero cloud dependency. Under 10ms local latency. Built with FreeRTOS dual-core firmware and an obsidian glassmorphism spatial dashboard.
THE AURA STUDIO - Elegant Smart Lighting Architecture
β¦ THE AURA STUDIO β¦
Elegant Smart Lighting Architecture & Spatial Ambience Hub
Designed by
A production-grade, local luxury smart lighting hub and spatial architecture controller engineered for dual Philips WiZ corner bulbs and an addressable WS2812B desktop LED strip. Zero cloud dependency. Under 10ms local UDP latency. Built with FreeRTOS dual-core firmware, real-time wave physics, and an obsidian glassmorphism spatial dashboard.
πΈ Visual Tour & Interface Showcase
The Aura Studio features a bespoke obsidian glassmorphism interface built from the ground up to rival commercial luxury systems like Lutron Ketra and Bang & Olufsen BeoLiving. Below is a complete visual walkthrough of the operational Web UI.
1. ποΈ Spatial Studio & Interactive 2.5D Room Architecture
Real-time 2.5D isometric room canvas rendering live ambient wall bounce, desk monitor bias, and luxury hospitality atmospheric presets.
2. ποΈ 3-Channel Hardware Matrix & Spectrum Scrubbing
Independent and unified controls for Desk WS2812B Strip and dual Corner WiZ Bulbs with 360Β° Rainbow Hue Bars, 12-color curated palette chips, and the Designed by Sandy signature footer.
3. βοΈ Natural Circadian Rhythm Engine
Biological 24-hour solar arc tracking based on Lutron Ketra and Apple Adaptive Lighting algorithms with live Kelvin/Lux modulation.
4. π₯οΈ Spatial Ambilight Screen Synchronizer
Native WebRTC 30 FPS display sampling projecting dynamic left, center, and right room color washes with zero companion desktop apps.
5. π΅ SoundSync Audio Reactive Visualizer
Web Audio API FFT frequency separation driving sub-bass room pulses across WiZ bulbs while vocal mids and highs ripple across the desk strip.
6. π¨ Gradient Colorway & Real Fluid Wave Physics Lab
Live 60 FPS fluid simulation canvas, 120-LED addressable pixel matrix, 4-stop linear colorway builder, and 8 Navier-Stokes & optical wave physics engines.
7. π Curated Luxury Palettes & WiZ Ambient Integration
14 luxury designer physics palettes and intelligent WiZ integration modes (Dynamic Spatial Sync vs. Architectural Warm White Gallery Contrast).
8. β³ Smart Focus & Rest Interval Engine (Pomodoro Chronobiology)
Chronobiology interval timer pairing anti-distraction 4500K task lighting with 2400K golden amber restorative bloom.
π The Concept: Layered Room Lighting Architecture
Most smart lighting setups feel harsh, distracting, or flat because single-strip setups produce harsh localized glare without diffuse room fill. The Aura Studio models your room as an architectural, multi-layered lighting canvas:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β [Corner WiZ Bulb 1] [Corner WiZ Bulb 2] β <- Layer 1: Ambient Wall Fill
β \ / β (Bounces off walls, soft fill)
β \ / β
β βΌ βΌ β
β ββββββββββββββββββββ β
β β Monitor Display β β
β ββββββββββ¬ββββββββββ β
β βΌ β
β [ WS2812B Bias / Backlight ] β <- Layer 2: Contrast & Eye Bias
β ββββββββββββββββββββββββββββββ β (Rich gradient behind screen)
β [ Desk Surface ] β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Layer 1: Ambient Wall Fill (2Γ Philips WiZ Corner Bulbs)
- Bathes perimeter walls in diffuse, indirect illumination, eliminating high-contrast shadows in peripheral vision.
- Layer 2: Contrast & Eye Bias Glow (Desk WS2812B Strip)
- Backlight situated directly behind the computer monitor to balance screen luminosity and prevent optical strain.
- The Layer Contrast Slider:
- Dynamically rebalances illumination between ambient wall bounce and monitor bias while preserving perceived overall room lux.
π Deep-Dive Feature Suites
The Aura Studio incorporates the most sophisticated lighting engineering found across luxury architectural installations (Lutron Ketra, Philips Hue Entertainment, Govee DreamView, Nanoleaf Rhythm, and Apple Adaptive Lighting):
1. ποΈ Spatial Studio & Architectural Atmosphere Presets
The Spatial Studio is the primary control deck of The Aura Studio. It centers around a live 2.5D Isometric Room Viewport rendered on an HTML5 canvas that mirrors the physical room's lighting state in real time:
- Real-Time Spatial Simulation: Visualizes light emitted from the two corner WiZ bulbs and the central desk strip, simulating wall bounce, monitor reflection, and floor gradients.
- Master Room Controls:
- Master Brightness (0β100%): Logarithmic dimming curve calibrated to human eye perception ($CIE\ 1931$).
- Layer Contrast Ratio (Bias vs. Ambient Fill): Shifts illumination weight between direct desk backlight and ambient perimeter bounce without shifting overall room lux.
- Global Fade Transition: Configurable fade speeds (
Instant,Smooth 0.8s,Gentle 2.0s,Cinematic 4.0s).
- World-Class Hospitality Presets:
- β‘ Cyberpunk Night: Neon Magenta desk (
#ec4899) with Deep Cobalt corners (#1e40af) for immersive synthwave gaming. - β Warm Minimalist: 2400K Candlelight corners with soft amber desk breathe effect (
#f59e0b). - π― Deep Focus: 4500K crisp neutral white bias with 15% dimmed ambient corners for distraction-free sprints.
- π
Sunset Horizon: Golden peach & sunset wave (
#f43f5e) with warm 2700K gold corners (#fb923c). - π Aurora Drift: Emerald & violet fluid flow (
#10b981) with jade ambient bounce (#8b5cf6). - π¬ Midnight Cinema: Ultra-dim 1800K ember with anti-glare monitor bias for cinematic viewing.
- πΈ Aman Kyoto Zen: Serene Japanese ryokan tranquility. 2200K Sakura dawn wave (
#fbcfe8) paired with 2000K intimate candlelight corners (#ff8a12). - ποΈ Grand Welcome (Lutron Ketra): High-end hotel arrival scene. Flattering 2800K incandescent ambient baseline with rich warm amber-gold wall wash (
#ffc078). - πΏ Deep Sanctuary Spa: Nordic wellness recovery. Restorative aquamarine bioluminescent desk glow (
#0d9488) with 2400K warm decompression wash (#ff9b3d). - π Oceanic Abyss: Bioluminescent deep-sea cyan pulse (
#00f2fe) transitioning into deep midnight cobalt corners (#0b192c).
- β‘ Cyberpunk Night: Neon Magenta desk (
2. ποΈ 3-Channel Hardware Matrix & Spectrum Scrubbing
Provides complete independent or coordinated mastery over all 3 lighting hardware channels:
- Desk WS2812B Strip (120 Addressable LEDs):
- High-performance FastLED animation modes:
Solid Color,Fluid Wave,Breathe,Rainbow Flow,Chroma Pulse. - Rate/speed slider, brightness dimming, and independent power switch.
- High-performance FastLED animation modes:
- Left & Right Corner WiZ Bulbs:
- Dual-mode operation: Pure CCT White (2000K Candlelight to 6500K Studio Daylight) or Full RGB Spectrum.
- 360Β° Continuous Rainbow Spectrum Hue Bar:
- Draggable smooth hue scrubber (
0Β°to360Β°) on each channel for rapid, intuitive color dialing without OS dialogs.
- Draggable smooth hue scrubber (
- Curated 12-Color Smart Palette Matrix:
- One-tap access to hand-tuned architectural hues: Cyber Magenta, Electric Cyan, Royal Violet, Deep Cobalt, Emerald Jade, Vivid Amber, Crimson Ruby, Sunset Coral, Sky Cerulean, Candlelight 2000K, Soft Warm 2700K, and Studio Daylight White.
- Signature Branding Footer:
- Includes Sandy's signature product logo, hardware firmware indicators, FastLED 60 FPS telemetry, UDP port 38899 status, and CIE 1931 optical compliance tag.
3. βοΈ Natural Circadian Rhythm Engine (Human-Centric Lighting)
Synchronizes room lighting with the biological 24-hour solar cycle to naturally regulate melatonin production, alertness, and restorative sleep:
- Mathematical Solar Arc Model: Computes sun elevation using sinusoidal solar harmonics: $$\text{Elevation}(t) = \sin\left(\frac{t - 6}{12} \times \pi\right)$$
- Autonomous CCT & Lux Progression:
- 06:00 Dawn: Gentle 2200K warm sunrise at 30% lux to stimulate natural cortisol release without glare.
- 12:00 Zenith Noon: 6500K daylight-balanced white at 100% lux for peak mental focus and cognitive acuity.
- 18:00 Golden Hour: 2800K warm incandescent glow at 60% lux signaling the end of the workday.
- 23:00+ Deep Rest (Melatonin Guard): 1800K ultra-warm amber at 15% lux, eliminating blue wavelengths below 480nm to protect melatonin synthesis.
- Interactive Timeline Scrubber: Allows immediate manual time simulation and preview across any hour of the day.
4. π₯οΈ Spatial Ambilight Real-Time Screen Synchronizer
Transforms the entire room into an expansive visual extension of your computer monitor:
- Native WebRTC Capture: Utilizes the browser's native
navigator.mediaDevices.getDisplayMediaAPI running at 30 FPS. Requires zero third-party software, drivers, or background daemons. - 3-Zone Spatial Color Extraction:
- Left Screen Edge: Extracted and dispatched to Left Corner WiZ Bulb (
#6a0d62). - Center & Bottom: Extracted and streamed to Desk WS2812B Strip (
#ba01c1). - Right Screen Edge: Extracted and dispatched to Right Corner WiZ Bulb (
#720150).
- Left Screen Edge: Extracted and dispatched to Left Corner WiZ Bulb (
- Spatial Immersion Tuning:
- Color Smoothing (EMA Filter): Exponential Moving Average ($C_t = \alpha \cdot C_{sample} + (1-\alpha) \cdot C_{t-1}$) configurable from 10% (high-speed gaming) to 90% (cinematic movie transitions).
- Saturation Boost (1.0Γβ2.0Γ): Compensates for dark letterboxing and enhances cinematic color vibrancy.
- Minimum Black Floor (Anti-Fatigue): Prevents the room from abruptly snapping to pitch-black during dark movie cuts.
5. π΅ SoundSync Audio Reactive Visualizer
Converts music and voice into physical light dynamics using real-time Fast Fourier Transform (FFT) frequency analysis via the Web Audio API:
- 3-Band Frequency Separation:
- Sub-Bass (20β150 Hz): Powers deep ambient thumps on both corner WiZ bulbs, creating visceral room-filling presence.
- Vocal Mids (150β2500 Hz): Drives fluid harmonic light waves across the desk strip.
- Highs / Percussion (2500β16000 Hz): Triggers crisp micro-sparkles and shimmer highlights.
- Reactive Lighting Profiles:
- Bass Pulse: Rhythmic illumination breathing to low-end transients.
- Equalizer: Real-time LED strip graphic equalizer mapping frequency bins from left to right.
- Rave Burst: High-energy transient strobe with dynamic hue rotation.
6. π¨ Gradient Colorway & Real Fluid Wave Physics Lab
The flagship dynamic lighting laboratory. Unlike generic smart strips that shift between static colors, The Aura Studio models real-world fluid dynamics and optical wave physics running in a real-time 60 FPS simulation loop:
- Live Dual-Zone Simulation:
- Continuous Fluid Stream Ribbon: Displays the uninterrupted multi-harmonic wave dispersion.
- 120-LED Addressable Pixel Matrix: Renders the exact interpolated color of every individual physical LED bead.
- 4-Stop Linear Colorway Designer:
- Customizable color stops at 0%, 33%, 67%, and 100% with real-time gradient blending.
- 8 Scientific Physics & Motion Profiles:
- π«§ Soap Bubble (Thin-Film Optical Interference): Models light interference on microscopic fluid membranes ($\delta = \frac{4\pi}{\lambda} d \cos\theta$) with chromatic phase splitting ($\Delta\phi_R=0, \Delta\phi_G=\frac{2\pi}{3}, \Delta\phi_B=\frac{4\pi}{3}$).
- π Fluid Wave (Navier-Stokes Advection): Fluid momentum transfer with viscous dissipation and turbulence dispersion.
- π Underwater Caustics (Ray Refraction): Optical ray convergence through dual intersecting wave surfaces.
- β‘ Soliton Wave Packets (Quantum Nonlinear): Dual solitary waves ($A \cdot \text{sech}^2(\frac{x - vt}{w})$) that collide and pass through each other without dispersion.
- π₯ Thermal Convection Plumes (Fractal Brownian Heat): Convective buoyant fluid rising in curling filaments.
- π Marangoni Surface Vortices (Capillary Flow): Surface tension gradient-driven flow creating 4 counter-rotating cellular convection rolls.
- π¨ Harmonic Breathing (Resonant Expansion): Symmetric expansion and contraction from center bias.
- β¨ Prismatic Opal Shimmer (Scintillation): High-frequency micro-refraction dispersion sparkle.
- 14 Luxury Curated Designer Palettes:
- Soap Bubble Iridescence, Bioluminescent Deep Sea, Maldives Tropical Caustics, Quantum Soliton Stream, Geothermal Magma Plume, Marangoni Azure Vortices, Opal Prism, Northern Lights (Aurora), Solar Flare & Plasma, Kyoto Cherry Blossom, Cyberpunk Synthwave, Mojave Sunset, Amber Candle & Hearth, Miami Sunset Vice.
- Intelligent Corner WiZ Bulbs Integration:
- Dynamic Spatial Sync: Left and Right WiZ bulbs sample the fluid gradient's outer boundary edges, expanding the desk strip across the room walls.
- Architectural Warm White (Gallery Contrast): Keeps the desk strip dynamic while holding corner WiZ bulbs at a pure, architectural warm CCT white (2000Kβ4000K) to frame the desk like a high-end art gallery installation.
- Custom Ambient Bulbs: Independent manual color selection.
7. β³ Smart Focus & Rest Interval Engine (Pomodoro Chronobiology)
Pairs structured Pomodoro productivity sprints with biological lighting cues:
- Focus Phase (25 Minutes):
- Desk strip locks into an anti-distraction 4500K neutral white bias.
- Corner WiZ bulbs automatically dim to 15% to eliminate peripheral room distractions.
- Rest Interval (5 Minutes):
- Room blooms into a restorative 2400K golden amber wash accompanied by a gentle breathing desk pulse signaling mental recharge.
- Boundary-Clean Glowing Countdown Ring:
- 260px circular SVG ring with radial glassmorphic backdrop and auto-wrapping pill badges (
25:00,READY FOR SPRINT), engineered to eliminate clipping across all screen sizes.
- 260px circular SVG ring with radial glassmorphic backdrop and auto-wrapping pill badges (
π± Responsive Architecture (MacBook Air/Pro & iPhone 16)
The Aura Studio is engineered to deliver a native app experience on both desktop and mobile form factors:
- MacBook Pro & Air Zero-Overflow Guarantee:
- Designed with fluid flexbox containment, zero-overflow headers, auto-scrolling suite navigation tabs (
scrollbar-width: none), and intelligent responsive collapsing (@media (max-width: 1440px)and@media (max-width: 1180px)). - Header actions and the master ROOM power toggle remain cleanly within bounds on MacBook Air 13" (1280px/1312px) and MacBook Pro 14"/16" viewports.
- Designed with fluid flexbox containment, zero-overflow headers, auto-scrolling suite navigation tabs (
- iPhone 16 Dynamic Island & Safe Area Integration:
- Built with
viewport-fit=coverand dynamic CSS variables (env(safe-area-inset-top),env(safe-area-inset-bottom)), ensuring full-bleed immersion without UI elements falling behind the Dynamic Island or iOS home bar.
- Built with
- Ergonomic Obsidian Glass Bottom Dock:
- On screens β€ 768px, navigation automatically transforms into an iOS-style fixed bottom tab dock for effortless single-thumb access to all 6 feature suites.
- Apple HIG Touch Ergonomics & Haptics:
- Minimum 44Γ44 pt touch targets, enlarged touch slider thumbs (
26px),touch-action: pan-y, and physical tactile haptic clicks (navigator.vibrate) on preset activations, fixture toggles, and slider release.
- Minimum 44Γ44 pt touch targets, enlarged touch slider thumbs (
- Standalone PWA:
- Tap "Share" β "Add to Home Screen" in iOS Safari for an offline-capable standalone app with bundled high-resolution obsidian-cyan icons.
π οΈ Hardware Wiring & Schematic
+5V Clean Power Rail (e.g. 5V 3A / Realme Fast Charger)
βββββββββββββββββββββ΄ββββββββββββββββββββ
β (+) (-)
β β β
β ββββ[1000Β΅F, 6.3V+ Capacitor]βββββββββ€
βΌ βΌ βΌ
ββββββββββ ββββββββββ
β +5V β β GND β
β WS2812Bβ β WS2812Bβ (Common Ground)
ββββββ¬ββββ ββββββ¬ββββ
β β
Data In βββΌβββ[330Ξ© Resistor]ββββ β
β β β
βΌ βΌ βΌ
[ 5V/VIN GPIO 4 (D4) GND ]
[ ESP32 (NodeMCU) ]
Hardware Pinout & Specs:
- Active Data Pin:
GPIO 4(markedD4on ESP32 NodeMCU / Dev Module). - LED Strip: WS2812B Individual Addressable RGB (60 LEDs / 1 Meter).
- Power Distribution: Clean 5V USB rail splitting into ESP32
VINand LED strip+5V, sharing a unified common ground (GND) to eliminate signal drift and ground bouncing.
β‘ Dual-Partition Wireless OTA & Nomenclature Architecture
The Aura Studio includes an industrial-grade Over-The-Air (OTA) firmware delivery framework allowing 100% wireless updates directly through the web dashboard without taking the ESP32 out of its enclosure.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ESP32 Flash Memory Map (4MB Flash via partitions_ota.csv) β
β β
β ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββββββ β
β β Bootloader β App Slot 0 β App Slot 1 β LittleFS Storage β β
β β & NVS β (ota_0) β (ota_1) β Web Dashboard β β
β β (128 KB) β (1.44 MB) β (1.44 MB) β (1.06 MB) β β
β ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββ΄ββββββββββββββββββββββ β
β β² β β
β β Flashing β β
β Active Partition ββββΊ Inactive Partition (Fail-Safe) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π·οΈ Industry-Standard Nomenclature (firmware_XX.YY.ZZZ.bin)
Every production firmware binary follows a strict 3-tier versioning format: $$\Large \mathbf{firmware_XX.YY.ZZZ.bin}$$
XX(Major Revision): Core partition migrations (partitions_ota.csv), hardware pin redesigns.YY(Minor Release): New lighting effects, circadian math adjustments, or integrated dashboard UI tools.ZZZ(Patch/Build): Anti-flicker timing fixes, FreeRTOS task pacing, temporal low-pass filter tweaks.
π Minimalist In-Dashboard Web Flasher
- Open the dashboard at
http://aura-hub.localand click the Settings (Gear) icon. - Scroll to the sleek Wireless Firmware Update section.
- Select or drag the compiled binary (e.g.,
releases/firmware_01.07.001.bin). - Click Flash OTA. The real-time progress bar uploads the firmware to the inactive partition, verifies the cryptographic image checksum, triggers a safe 6-second reboot countdown, and reloads automatically.
πΆ Autonomous SoftAP Captive Portal & Dynamic Wi-Fi Provisioning
Changing Wi-Fi passwords, shifting between router bands, or moving flats/apartments previously required disassembling the ESP32 enclosure and flashing over a physical USB cable. The Aura Studio v01.03.000 eliminates physical intervention entirely with a self-healing, zero-friction wireless provisioning engine.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Autonomous Dynamic Provisioning & Captive Portal Architecture β
β β
β [ESP32 Power Up] β
β β β
β βββΊ Rapid 3-Cycle Power Toggle? βββΊ Clear NVS & Enter Setup β
β β β
β βΌ β
β [Load NVS Credentials] β
β β β
β βββΊ Connection Successful βββββΊ Normal Operation & Dashboard β
β β (http://aura-hub.local) β
β βΌ β
β [Connection Timed Out / Reset] β
β β β
β βΌ β
β [Autonomous SoftAP Broadcast] βββββββββΊ "Aura-Studio-Setup" Hotspot β
β [Amber Breathing Beacon] βββββββββΊ Desk Strip Pulses Warm Amber β
β [Port 53 DNS Captive Server] βββββββββΊ Auto Pop-up on iPhone/Mac/PC β
β β β
β βΌ β
β [Glassmorphic Setup Portal] βββββββββΊ Scan 2.4GHz Airwaves β
β β Enter Password & Save β
β βΌ β
β [Auto-Reboot into New Wi-Fi] βββββββββΊ Re-associates with Home LAN β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. π Apple & Android Native Captive Portal Auto-Popup
When the hub cannot reach the stored Wi-Fi network, it automatically broadcasts an open Wi-Fi network named Aura-Studio-Setup on 192.168.4.1.
- Built-in DNSServer (port 53) captures all inbound domain requests and responds with
192.168.4.1. - Intercepts OS probe endpoints:
- Apple iOS / macOS:
/hotspot-detect.html - Android / Chromium:
/generate_204,/gen_204 - Windows NCSI:
/ncsi.txt,/connecttest.txt,/canonical.html
- Apple iOS / macOS:
- Result: As soon as you tap
Aura-Studio-Setupin your iPhone or laptop Wi-Fi settings, the luxury glassmorphic Setup Portal pops open automatically without needing to type an IP address.
2. β‘ Live 2.4GHz Airwave Scanner & PROGMEM Portal
- Tap Scan 2.4GHz Networks to view all nearby SSIDs with live signal strength ($-\text{dBm}$) and encryption status.
- Select your network from the dropdown, enter the Wi-Fi password (with password show/hide eye toggle), and tap Save & Connect.
- Credentials persist safely in ESP32 Non-Volatile Storage (NVS
Preferencesnamespace"aura"). The hub reboots gracefully and joins your new home network.
3. ποΈ In-Dashboard Wi-Fi Management (While Online)
- Inside the Settings modal (
#modal-settings), the Wi-Fi & Network Provisioning card displays:- Current connected SSID
- Live RSSI signal strength (e.g.
-52 dBm (Excellent))
- Click Change Network to scan airwaves, select a new network, and apply new credentials on-the-fly.
- Click Reset to Setup Hotspot to wipe credentials and return to setup mode on demand.
4. π¨ Emergency 3-Power-Cycle Factory Reset Rule
If you move to a new apartment where your old Wi-Fi router no longer exists, you cannot reach the web dashboard to change settings.
- The Solution: Flip the room light/power switch off and on 3 times rapidly (within 4 seconds of power-on).
- The ESP32 hardware boot guard detects the 3 consecutive rapid cycles in NVS, wipes the stale Wi-Fi credentials, and launches the
Aura-Studio-Setuphotspot!
5. π‘ Amber Breathing Beacon Visual Indication
During SoftAP Setup Mode, the desk WS2812B LED strip automatically renders an amber breathing beacon (CRGB(251, 146, 60) pulsating gently at 45 speed). This gives immediate visual feedback that the hub is in setup mode and ready to be configured.
π‘οΈ Industrial Resilience & Router Outage Self-Healing (v01.04.001)
π The Traditional Vulnerabilities in Smart Lighting Hubs
Consumer IoT devices often suffer from catastrophic edge-case bugs during real-world domestic power events:
- The Delayed Router Problem: When a home power cut occurs, the ESP32 boots in 2 seconds, but the Wi-Fi router takes 60β90 seconds to initialize its radios. Legacy hubs fail connection immediately, enter setup mode, and stay stuck foreverβrequiring the user to manually unplug and replug the hub.
- Contact Bounce Credential Wiping: When a user unplugs and replugs a DC barrel jack or USB-C connector, physical contact bounce triggers 2 to 4 micro-resets within 300ms. Naive reboot counters interpret this as a factory reset and permanently destroy the user's saved Wi-Fi SSID and password.
- Boot Inrush Current Brownout: Driving 60 LEDs at full brightness while simultaneously negotiating Wi-Fi RF association draws over 1.8A in transient spikes. On standard 5V/1A USB chargers, voltage sags below 2.8V, triggering hardware brownout resets in an infinite bootloop and glitching the LED animation.
- NVS Handle Leaks & Concurrency Panics: Unclosed NVS Preferences handles in asynchronous callbacks trigger
ESP_ERR_NVS_INVALID_HANDLEor assertion panics in the ESP-IDF kernel, causing spontaneous software resets.
π‘οΈ The Industrial Robustness Engine (v01.04.001)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β The Aura Studio Industrial Hardening & Auto-Recovery Pipeline β
β β
β [Hardware Reset / Power Restoration] β
β β β
β βΌ β
β [esp_reset_reason() Inspection: Brownout Detection & Logging] β
β β β
β βΌ β
β [Safe NVS Credential Load: Zero Wiping on Rapid Power Cycles] β
β β β
β βΌ β
β [RF Transmit Power Capped to +17dBm (Eliminates 400mA Current Spikes)]β
β β β
β βΌ β
β [Soft-Start Inrush Limiter: 950mA Max Power + 75% Peak Luma Siri Wave]β
β β β
β βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ€
β βΌ βΌ β
β [Home Router Online] [Router Booting / Temporarily Offline]β
β β β β
β βΌ βΌ β
β β’ Instant 100% LAN Link β’ Enter Autonomous AP+STA Mode β
β β’ mDNS Responder Active β’ Broadcast Setup Hotspot & Captive β
β β’ WiZ Bulbs Auto-Synced β’ Retain Saved SSID in Memory β
β β β β
β β βΌ β
β β [Autonomous Background Reconnect Engine] β
β β β’ Probes Saved Router Every 5 Seconds β
β β β’ When Router Appears: Reconnects Silentlyβ
β β β’ Shuts Down SoftAP & Disables Captive β
β β β’ Restores 1500mA Power Limit & Syncs LAN β
β β β β
β βββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ
β β
β βΌ
β [100% Autonomous Continuous Operation]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Autonomous Background Station Reconnection:
- If the router is still booting after a power cut, the ESP32 serves the
Aura-Studio-Setuphotspot with captive portal, but never gives up. - A non-blocking background task continuously probes the saved home network every 5 seconds. The moment the router finishes booting, the ESP32 automatically connects to the station, stops the captive DNS server, switches to pure station mode, launches mDNS, and syncs all lightsβzero user reboots required.
- If the router is still booting after a power cut, the ESP32 serves the
- Zero Credential Destruction:
- Power outages, quick plug/unplug toggles, and contact bounce never erase Wi-Fi credentials. Factory reset is exclusively triggered via deliberate Web Dashboard action (
/api/wifi/reset).
- Power outages, quick plug/unplug toggles, and contact bounce never erase Wi-Fi credentials. Factory reset is exclusively triggered via deliberate Web Dashboard action (
- Soft-Start Inrush Current & Brownout Guard:
- Bootup current is clamped to 950mA with a gentle 75% luma curve during Wi-Fi handshake.
- Wi-Fi TX power is capped at +17dBm, reducing peak RF current pulses by >30% while maintaining rock-solid range.
- Brownout reset reason (
ESP_RST_BROWNOUT) is dynamically audited at startup to enforce conservative limits on weak power sources.
- Leak-Free Strict RAII NVS Lifecycle:
- Every flash preference operation opens a local scoped handle and immediately closes it with
prefs.end(), completely eliminating memory corruption and dangling handle panics.
- Every flash preference operation opens a local scoped handle and immediately closes it with
- FreeRTOS Stack Headroom & Network Isolation:
LedTaskFreeRTOS stack doubled to 8192 bytes on Core 1 for complete stack overflow immunity.- WiZ UDP transmission is strictly guarded by
WiFi.status() == WL_CONNECTEDchecks, preventing lwIP socket routing errors and buffer stalls when disconnected.
β‘ Instant WiZ Device Auto-Sync & Cold-Boot Detection (v01.04.000 / v01.04.001)
In smart home environments, auxiliary lights (like Philips WiZ floor lamps or desk bulbs) are frequently powered on and off using physical wall or lamp cord switches.
π The Traditional Problem
When a WiZ bulb powers up from a cold wall switch, its internal firmware defaults to warm white (2700K) and joins the local 2.4GHz Wi-Fi network. Previously, the hub did not know the bulb had just rebooted, forcing users to manually turn the entire room off and back on via the app to push the active color palette to the newly online bulb.
π The Self-Healing Architecture
The Aura Studio v01.04.000 solves this with an autonomous detection and synchronization engine:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Instant WiZ Auto-Sync & Cold-Boot Synchronization Lifecycle β
β β
β [Physical Lamp Switched ON] β
β β β
β βΌ β
β [Bulb Boots into Default 2700K Warm White] β
β β β
β βΌ β
β [Bulb Associates with Wi-Fi & Broadcasts "firstBeat" on UDP 38899] β
β β β
β βΌ β
β [ESP32 Bi-Directional UDP Receiver Catches Announcement] β
β (Or Active 2.5-Second Heartbeat Query Detects OFFLINE β ONLINE) β
β β β
β βΌ β
β [Instant syncBulb() Execution (<100ms)]: β
β β’ Computes Target Power State (Master Γ Channel Power) β
β β’ Computes Effective Dimming (Master Lux Γ Contrast Ratio Factor) β
β β’ Dispatches setPilot with Target RGB or CCT Spectrum β
β β β
β βββΊ Immediate UDP Pilot Packet Sent βββββββββββββββββββββββββββ
β β ββ
β βΌ ββ
β [Automatic 300ms Confirmation Resend] (Guarantees ARP Settlement) ββ
β β ββ
β βΌ βΌβΌ
β [Philips Lamp Instantly Snaps into Synchronized Room Color!] β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Bi-Directional UDP Payload Interceptor (
Port 38899):- The ESP32 UDP engine parses both standard query responses (
doc["result"]) and unsolicited push broadcasts (doc["params"]). - Automatically intercepts
firstBeat(emitted by WiZ bulbs immediately upon cold boot) andsyncPilot(state broadcast).
- The ESP32 UDP engine parses both standard query responses (
- Instant Synchronization Dispatch (
syncBulb):- The microsecond a bulb is detected online or emits a
firstBeat, the ESP32 takes the FreeRTOS state mutex, reads the current active color, mode, master brightness, and contrast ratio, and immediately transmits the targetsetPilotUDP packet. - Response latency: Under 100 milliseconds after the bulb joins Wi-Fi.
- The microsecond a bulb is detected online or emits a
- Active 2.5s Heartbeat & Fault Recovery:
- Background non-blocking
getPilotpolls monitor bulb health every 2.5 seconds. - If a bulb is powered off at the wall, it times out after 6 seconds and is marked
OFFLINE. When turned back on, theOFFLINE -> ONLINEtransition immediately triggers color synchronization.
- Background non-blocking
- 300ms Dual-Packet Arrival Assurance:
- When a bulb joins the network, local router ARP tables may take ~200ms to stabilize. The hub sends an immediate pilot packet followed by an automated verification packet 300ms later, ensuring 100% arrival rate with zero packet drops.
πΎ Full System State Persistence & Power-Cycle Recovery (v01.04.000 / v01.04.001)
π The Traditional Problem & Real-World User Usability
When smart lighting hubs experience an apartment power outage or are replugged:
- The Default Blasting Problem: Legacy hubs revert to 100% white or bright neon colors. If you switched off your lights before sleeping and suffered a power interruption, upon power restoration standard bulbs wake you up.
- The "Dead Hub" Usability Dilemma: If a hub completely skips its boot indication when previously turned off, the user receives zero visual confirmation that the hardware is powered and alive. When ambient bulbs (like Philips WiZ) turn on to factory default warm white while the hub stays pitch black, users assume the hub is broken or unpowered, leading to repeated, damaging power cycling.
π‘οΈ The Industrial Hardware Alive Signal & State Restoration Engine (v01.04.001)
The Aura Studio v01.04.001 resolves this with a dual-stage hardware alive indication and state restoration flow:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Smart Power-Cycle Bootloader & State Restoration Engine (v01.04.001) β
β β
β [ESP32 Power Restoration / Reboot] β
β β β
β βΌ β
β [Early loadPersistentState() from NVS "aura" Namespace] β
β β β
β βΌ β
β [ALWAYS Play Apple Siri HomePod Fluid Wave (2500ms Soft-Start)] β
β β’ Essential visual heartbeat: Confirms ESP32 has power & is booting β
β β’ Wi-Fi association runs concurrently in background β
β β β
β βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ€
β βΌ βΌ β
β [State Was SWITCHED OFF (state_t0)] [State Was SWITCHED ON] β
β β β β
β βΌ βΌ β
β β’ Boot Wave smoothly fades to dark β’ Smooth transition to state β
β β’ Core 1 maintains black (0W) β’ Restore exact color/effect β
β β’ Silent Wi-Fi connection handshake β’ Restore custom speed/luma β
β β’ WiZ Bulbs commanded OFF immediately β’ WiZ Bulbs sync with saved β
β upon LAN association or discovery palette and kelvin β
β β’ Preserves state_t0 if router boots β’ Resumes full room ambience β
β slowly (no amber overwrite) β β
β β β β
β βΌ βΌ β
β [Room Returns to Dark State_t0] [Studio Resumes Ambience] β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Comprehensive NVS State Registry (Namespace
"aura"):- Master Hub State:
masterOn,masterBri,contrast,syncCorners,preset,useGamma,onOffAnim. - WS2812B Desk Strip:
deskPower,deskBri,deskR,deskG,deskB,deskEffect,deskSpeed,deskIntens,deskHasGrad, and 4-stop custom gradient hex palettes. - Dual WiZ Bulbs:
wlPower,wlBri,wlMode,wlR,wlG,wlB,wlK(and right bulb equivalents).
- Master Hub State:
- Flash Wear Protection (100,000+ Write Longevity):
- Instant Commit: High-impact power toggles (
isMasterOn,desk.power, bulb power) and preset selections commit to flash immediately. If power is pulled 1 second after turning off the room, the OFF state is guaranteed saved. - Debounced Commit (1.2s): Continuous slider scrubbing (dragging brightness, speed, intensity, or the color spectrum) updates memory and hardware at 60 FPS, and commits to NVS flash only after 1.2 seconds of stillness.
- Instant Commit: High-impact power toggles (
- Smart Bootloader & Hardware Alive Signal:
webManager.loadPersistentState()executes at step 2.5 ofsetup(), before hardware LED initialization.- The Apple Siri bootup wave always executes at soft-start 950mA power limit to reassure the user that the microcontroller is functioning.
- If the system was switched off prior to power down (
state_t0):- The LEDs smoothly transition to dark once the 2.5s alive pulse completes.
- Core 1
LedTaskmaintains 0-luma black. - If the home router is booting slowly, SoftAP fallback preserves
state_t0rather than overriding with amber breathing. - As soon as the router finishes booting and Wi-Fi connects (or when WiZ bulbs emit heartbeats on boot), power OFF (
effectivePower = false) is dispatched to WiZ bulbs, overriding their default factory warm white and returning the entire room tostate_t0.
ποΈ Clean Architectural Settings Deck (v01.05.000)
π The Problem with Growing IoT Configuration Panels
As The Aura Studio expanded to introduce Wi-Fi captive provisioning, CIE 1931 perceptual gamma tuning, desk ignition physics animations, real-time hub telemetry, pixel hardware diagnostics, and dual-OTA web flashing, the settings modal grew into an endless 9-section vertical wall. Users had to scroll through dense technical controls to find everyday network options.
β¨ The Redesigned Segmented Settings Deck
In v01.05.000, the settings deck was completely reimagined into a clean, modern, card-based interface with segmented category navigation adhering to WAI-ARIA standards:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β The Aura Studio Reimagined Settings Architecture (v01.05.000) β
β β
β [ Studio System Settings ] ββββββββββββββββββββββββββββββ [ β Close ] β
β β
β βββββββββββββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββ¬ββββββββββββ β
β β π Network & WiZ β π‘ Optics & Strip β π Telemetry β β‘ OTA β β
β βββββββββββββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββ΄ββββββββββββ β
β β
β [ Dynamic Glassmorphic Card Container ] β
β β’ Focused, uncluttered layout: only relevant controls are displayed β
β β’ Smooth cubic-bezier transitions between categories β
β β’ Dedicated scroll container with custom minimalist scrollbars β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β [ π’ Persistent Flash NVS ] [ Save & Apply Settings ] β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Segmented Category Navigation:
- π Network & WiZ: Live Wi-Fi connection telemetry, on-the-fly network re-provisioning scanner, UDP 38899 Philips WiZ bulb auto-discovery, manual IP assignments, and mDNS Hub host address.
- π‘ Lighting & Optics: Perceptual CIE 1931 logarithmic gamma dimming curve toggle ($Y = X^{2.2}$) and WS2812B desk strip physical ignition & collapse dropdown (Gaussian Harmonic Ripple, Bilateral Bloom, Planckian Thermal Glow, Fluid Quantum Ion Sweep).
- π Diagnostics & Stats: Real-time ESP32 hub telemetry (IP, Wi-Fi RSSI, uptime, 60 FPS monitor), individual pixel continuity diagnostic slider (-1 to 59) with one-click restore, and W3C Secure Context status for Screen Share & Mic permissions.
- β‘ Firmware OTA: Wireless dual-partition OTA engine (
ota_0/ota_1), drag-and-drop firmware upload zone, live upload progress bar, and instant version registry badge (v01.05.000).
- Persistent Sticky Action Footer:
- The Save & Apply button and persistent flash NVS indicator are anchored to the bottom of the dialog, ensuring instant one-click saving without scrolling.
- Ergonomic & Accessible UX:
- Uses
role="tablist",role="tab", androle="tabpanel"with ARIA attributes and haptic feedback for smooth mobile and desktop interaction.
- Uses
π‘οΈ Anti-Flicker Hardware & Firmware Engineering
To guarantee zero LED flicker, strobing, or AC shimmer across high-intensity fluid physics animations:
- Temporal Dither Suppression (
FastLED.setDither(0)): Disables FastLED's internal software dithering cycle, which typically manifests as a high-frequency 50Hz/60Hz AC-like shimmer on static and low-brightness colors. - Quiet Bus Protocol: The firmware tracks state hash changes and ceases transmission of WS2812B data frames when solid colors are stationary. Data packets are only transmitted upon state alterations or a 3-second heartbeat keepalive, keeping the data bus silent.
- Dynamic Voltage Sag & Current Limiting:
FastLED's power manager restricts draw to
1000mAwith a stable45β60 FPSframe cadence. This prevents sudden current spikes and voltage dips on USB chargers during rapid wave physics (Cyberpulse,Candlefire). - Repeater Joint Temporal Filtering (LED #36):
WS2812B strips are factory-spliced at 0.5-meter increments (~LED index 30β36). LED #36 acts as the hardware signal repeater for downstream pixels (37β59). A temporal blending low-pass filter calms solder-joint noise:
leds[36] = blend(lastLed36, leds[36], 190); - Interactive Pixel Diagnostic Tool:
Accessible within Settings, allowing single-pixel isolation from index
0to59with a dedicated one-click test for suspect repeater LED #36.
β‘ Staged Sequential Boot Pipeline & Industrial Hardening (v01.05.001)
In v01.05.001, the ESP32 firmware architecture was thoroughly redesigned to eliminate brownout-induced reboot loops during home router power outages or cold restarts:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β The Aura Studio Staged Sequential Boot Pipeline (v01.05.001) β
β β
β [ POWER ON / RESET ] β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β STAGE 1: Isolated Hardware Alive Wave (Wi-Fi RF 100% OFF) β β
β β β’ FastLED max power clamped to 450mA (<220mA total current draw) β β
β β β’ Task Watchdog Timer (TWDT) explicitly fed on every frame β β
β β β’ 2.5s Siri HomePod fluid wave plays with 0 RF inrush collision β β
β ββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β STAGE 2: Subsystems & Instant Port 80 Web Server β β
β β β’ LittleFS mounted, NVS credentials & restored state_t0 loaded β β
β β β’ AsyncWebServer & WebSockets running immediately β β
β β β’ FreeRTOS LedTask spawned on Core 1 (restores dark if OFF) β β
β ββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β STAGE 3: Staged Wi-Fi Bring-Up & Instant SoftAP Resilience β β
β β β’ WIFI_AP_STA active: Aura-Studio-Setup open at 192.168.4.1 β β
β β β’ Dashboard reachable within 3 seconds even if router is offline β β
β β β’ Non-blocking probe (max 2.25s) with watchdog reset β β
β β β’ Connected: pure STA, sync WiZ, close AP β β
β β β’ Offline: remain in AP+STA, hand off to 15s background engine β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Brownout & Voltage Sag Root Cause Elimination:
- Previous versions initiated active Wi-Fi channel scans concurrently with the boot animation. When solitons collided into specular white at ~1.2s, the combined current ($\sim 1.4\text{A}$) collapsed the 3.3V LDO regulator on weak power supplies, tripping
ESP_RST_BROWNOUT. - By shutting down the RF radio entirely during the boot wave and limiting LED current to 450mA (peak draw < 220mA), brownouts are physically impossible.
- Previous versions initiated active Wi-Fi channel scans concurrently with the boot animation. When solitons collided into specular white at ~1.2s, the combined current ($\sim 1.4\text{A}$) collapsed the 3.3V LDO regulator on weak power supplies, tripping
- Watchdog Management (TWDT Safe):
- The Arduino ESP32 Task Watchdog default 5.0-second timeout is protected with explicit
esp_task_wdt_reset()andyield()calls on every frame of the boot sequence and across all setup stages.
- The Arduino ESP32 Task Watchdog default 5.0-second timeout is protected with explicit
- Instant Dashboard Access (Zero Lockout):
- By starting the SoftAP (
Aura-Studio-Setupat192.168.4.1) and AsyncWebServer on port 80 immediately in Stage 3, users can access the dashboard within 3 seconds of boot, even if their home GPON fiber router takes 5 minutes to complete booting after a power cut.
- By starting the SoftAP (
- State_t0 Preservation & Automatic Arrival Sync:
- When power is restored, if the system was switched off prior to power down (
state_t0), the LEDs seamlessly transition to dark after the 2.5s hardware confirmation wave. - WiZ bulbs that power on into default Philips warm white are captured by UDP discovery /
firstBeat/ heartbeat and immediately synchronized into the active system state without requiring manual room power toggling.
- When power is restored, if the system was switched off prior to power down (
π‘οΈ Autonomous Dual-Partition Hardware Rollback & Safe Mode (v01.08.000)
In v01.08.000, the ESP32 firmware architecture establishes True Hardware Bootloader-Enforced Tier-1 Auto-Rollback:
How It Works (Zero Box Disassembly)
- Hardware Bootloader State Enforcement (
ESP_OTA_IMG_NEW->ESP_OTA_IMG_PENDING_VERIFY):- When a wireless update is uploaded,
WebServerManager.cppwrites the binary to the inactive partition (app0orapp1), and explicitly sets the targetotadatarecord toESP_OTA_IMG_NEW(0x00000000) with a freshly computed CRC32. - Upon reboot, the ESP32 second-stage hardware bootloader detects
ESP_OTA_IMG_NEW, transitions it toESP_OTA_IMG_PENDING_VERIFY(1), and boots into the new firmware.
- When a wireless update is uploaded,
- Deferred Validation via
verifyRollbackLater():- The Arduino-ESP32 core startup routine (
initArduino()) normally auto-validates new images immediately on boot.v01.08.000overridesextern "C" bool verifyRollbackLater(void) { return true; }to defer validation until the system completes a full 20-second stability trial.
- The Arduino-ESP32 core startup routine (
- Autonomous Hardware Rollback on Crash:
- If the newly flashed firmware crashes, panics (e.g. testing with broken
01.05.001), or suffers a watchdog reset before completing the 20-second trial, the hardware bootloader detects that the image is still inESP_OTA_IMG_PENDING_VERIFYon the next reboot. - The bootloader automatically marks the partition as
ESP_OTA_IMG_ABORTED(4), rejects it, and rolls back to the previous working partition completely in hardwareβeven if the flashed binary contains zero rollback code of its own!
- If the newly flashed firmware crashes, panics (e.g. testing with broken
- Application-Level Watchdog Guard (Defense-in-Depth):
rtcBootFailurestracks consecutive boots in RTC memory. If 3 consecutive crashes occur,esp_ota_mark_app_invalid_rollback_and_reboot()is triggered as a secondary safety net.
- Dashboard Real-Time Telemetry & Safe Recovery Notification:
- Displays the Active Partition Slot (
Slot: app0orSlot: app1) with real-time[Trial]state indication. - When safely recovered after a rollback, a persistent warning banner appears in the Settings deck informing you that the previous update crashed and was automatically rolled back. Dismissing the banner restores normal UI readout.
- Displays the Active Partition Slot (
π‘οΈ Industrial Bootloop Immunity & Panic Elimination Architecture (v01.07.000)
In v01.07.000, the ESP32 firmware architecture was thoroughly redesigned to eliminate a critical post-bootup panic and bootloop condition:
Root Cause Analysis & Resolution
- Network Interface Availability:
- Previous Flaw:
WiFi.mode(WIFI_OFF)was executed during the boot wave. Subsequently,wizCtrl.begin()calledudp.begin(38899)andwebManager.begin()calledserver.begin()while lwIP network interfaces were uninitialized. CallingWiFi.mode(WIFI_AP_STA)afterwards triggered lwIP kernel assertions and fatal panics right as the bootup animation finished. - Architectural Fix: Kept standard idle Wi-Fi station mode during the 2.5s boot wave. Services (
AsyncWebServer,WiFiUDP) are strictly initialized after network modes and interfaces are established.
- Previous Flaw:
- FreeRTOS Task Priority & Preemption:
- Previous Flaw: The Core 1 FastLED rendering task (
LedTask) was spawned at Priority 2 whilesetup()ran on Core 1 at Priority 1. The momentLedTaskwas created, it preemptedsetup()mid-initialization, causing race conditions with FastLED interrupt disabling during Wi-Fi connection attempts. - Architectural Fix:
LedTaskis now spawned at the very end ofsetup()at cooperative Priority 1.
- Previous Flaw: The Core 1 FastLED rendering task (
- Non-Destructive SoftAP Management:
- Previous Flaw: When home Wi-Fi connected,
WiFi.softAPdisconnect(true)was called. In ESP32 Arduino core, passingtrueinvokesesp_wifi_stop(), shutting down the hardware Wi-Fi controller completely. - Architectural Fix: SoftAP is cleanly deactivated with
WiFi.softAPdisconnect(false)andWiFi.enableAP(false), keeping the station interface running smoothly.
- Previous Flaw: When home Wi-Fi connected,
- Task Watchdog & Yielding:
- Standardized on FreeRTOS cooperative task scheduling with
yield()andvTaskDelay()across all loops and animation frames, preventing CPU starvation and watchdog timeouts.
- Standardized on FreeRTOS cooperative task scheduling with
π§ Physical Strip Spatial Orientation & Coordinate Architecture (v01.06.000)
In v01.06.000, the physical hardware topology of the WS2812B desk strip was explicitly defined, synchronized, and documented across the firmware, visualizer, and UI diagnostics without altering system timing or core lighting physics:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β The Aura Studio Spatial Hardware Topology (v01.06.000) β
β β
β [ Left WiZ Bulb ] [ Right WiZ Bulb ] β
β (wizLeft) (wizRight) β
β β β β
β βΌ βΌ β
β ββββββββββββββββ ββββββββββββββββ β
β β LED 1 [0] β ββββ WS2812B 60-LED Strip βββΊ β LED 60 [59] β β
β ββββββββββββββββ ββββββββββββββββ β
β Stop 1 (0%) Stop 4 (100%) β
β β
β β’ Left Zone: Indices 0 to 29 (Midpoint x = 29.5) β
β β’ Right Zone: Indices 30 to 59 (Repeater Solder Joint at LED #36) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Hardware Coordinate Specification:
- LED 1 [Index 0]: Positioned adjacent to the Left Corner LED Lamp (
wizLeft). - LED 60 [Index 59]: Positioned adjacent to the Right Corner LED Lamp (
wizRight). - Standardized in
firmware/src/Config.hviaSTRIP_LEFT_INDEX($0$) andSTRIP_RIGHT_INDEX($59$).
- LED 1 [Index 0]: Positioned adjacent to the Left Corner LED Lamp (
- Diagnostic Alignment:
- The Hardware Pixel Diagnostic slider is fitted with spatial boundary indicators:
β LED 1 [0] (Left Lamp)toLED 60 [59] (Right Lamp) βΊ. - Tooltips dynamically indicate whether a pixel under test resides in the Left Zone (near Left Lamp) or Right Zone (near Right Lamp).
- The Hardware Pixel Diagnostic slider is fitted with spatial boundary indicators:
- Spatial Gradient Synchronization:
- In Gradient Lab Spatial Corner Sync mode, Stop 1 ($0%$) mirrors the Left WiZ fixture and physical LED 1 [0], while Stop 4 ($100%$) mirrors the Right WiZ fixture and physical LED 60 [59], providing seamless 1:1 room-scale coherence.
- Non-Invasive Architecture:
- Strictly preserves all underlying lighting physics (soliton waves, Marangoni convection, thermal plumes, and thin-film soap bubble interference) and FreeRTOS timing with zero functional regression.
π Project Structure
The_Aura_Studio/
βββ assets/ # Documentation & Branding Assets
β βββ sandy_logo.png # Designed by Sandy Signature Logo
β βββ screenshots/ # Full UI Suite Screenshots
βββ dashboard/ # Standalone Web Dashboard (Browser & Mobile PWA)
β βββ index.html # 6 Feature Suites, 2.5D Room Canvas, Minimalist OTA
β βββ style.css # Obsidian Glassmorphic Design System & Responsive Layout
β βββ app.js # Circadian, Ambilight, SoundSync, OTA & WebSocket Engine
β βββ Satisfy.ttf # Bundled Offline Header Script Font
β βββ sandy_logo.png # Product Signature Branding
β βββ manifest.json # Progressive Web App configuration
β βββ icons/ # High-res PWA application icons
βββ firmware/ # ESP32 FreeRTOS Firmware
β βββ platformio.ini # PlatformIO build configuration (-Os, -Wl,--gc-sections)
β βββ partitions_ota.csv # Dual-partition table (ota_0 / ota_1 / littlefs)
β βββ data/ # LittleFS assets (byte-for-byte synced with dashboard/)
β βββ src/
β βββ Config.h # Versioning, pins, Wi-Fi credentials, bulb IPs
β βββ LedDriver.h / .cpp # FastLED 60FPS non-blocking driver & anti-flicker filters
β βββ WizController.h / .cpp # WiZ local UDP driver & discovery parser
β βββ WebServerManager.h / .cpp # AsyncWebServer, WebSocket & OTA Web Flasher
β βββ main.cpp # FreeRTOS dual-core initialization
βββ releases/ # Numbered Production Firmware Binaries
β βββ firmware_01.08.000.bin # Production Dual-OTA Release Binary (v01.08.000)
β βββ littlefs_01.08.000.bin # Web Dashboard LittleFS Release Binary (v01.08.000)
β βββ firmware_latest.bin # Copy of the latest production release
β βββ littlefs_latest.bin # Copy of the latest web dashboard release
β βββ README.md # Release log, checksums, and architecture notes
βββ scripts/ # Developer Automation Utilities
β βββ export_release.py # Automated compiler and nomenclature packager
βββ test_suite.js # Automated verification test suite (167 DOM IDs verified)
βββ README.md # Comprehensive documentation & setup guide
β‘ Quick Start: Flashing the ESP32
Prerequisites
- VS Code with the PlatformIO IDE Extension.
1. Clone the Repository
git clone https://github.com/Sandeep271958/The_Aura_Studio.git
cd The_Aura_Studio
2. Configure Wi-Fi & Hardware
Open firmware/src/Config.h and set your local credentials:
#define DEFAULT_WIFI_SSID "Your_Home_WiFi"
#define DEFAULT_WIFI_PASSWORD "Your_WiFi_Password"
#define NUM_LEDS 120 // Your strip length
#define LED_PIN 16 // GPIO pin connected to strip data
3. Upload Web Assets to LittleFS
In PlatformIO:
- Click the PlatformIO Alien icon on the sidebar.
- Under
esp32devβPlatform, click Upload Filesystem Image. (This writesfirmware/datainto the ESP32's onboard flash memory).
4. Flash the Firmware
- Click Upload and Monitor.
- Note the IP assigned in the Serial Monitor (e.g.,
192.168.1.99) or navigate to:http://aura-hub.local - Tap "Add to Home Screen" on your iOS or Android device for a full-screen native app experience.
π Instant Browser Preview (Zero Hardware Required)
You can explore and test the dashboard immediately on any computer:
- Open
dashboard/index.htmlin any modern browser. - The dashboard automatically detects offline mode and starts the Interactive Room Simulator, allowing you to preview presets, adjust sliders, test the Circadian timeline, and experiment with Ambilight, SoundSync, and Fluid Wave physics.
π§ͺ Automated Testing
The Aura Studio includes a comprehensive headless verification test suite:
node test_suite.js
Validates:
- 26 core asset, font, and firmware files.
- 139 unique DOM IDs across all 6 feature suites and diagnostics.
- 111 interactive buttons with corresponding event bindings.
- 34 range sliders with numeric feedback tags.
- 10 world-class architectural presets.
- 8 fluid dynamics and physics profiles.
- 14 luxury designer palettes.
- Mobile viewport constraints and safe area compliance.
π License & Attribution
MIT License. Designed and engineered with passion by Sandy (@Sandeep271958). Proudly branded and built as The Aura Studio.
How to Install
- Download the dashboard markdown file from GitHub
- Drop it into your vault (anywhere)
- Install the Homepage plugin and point it at the file
- Enable any listed CSS snippets for the intended look
Stats
Stars
0
Forks
0
Last updated 5d ago
Categories