Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| memberpages:xro:eh2024_badge_homeassistant_esp32 [2026-04-15 07:57] – removed - external edit (Unknown date) 127.0.0.1 | memberpages:xro:eh2024_badge_homeassistant_esp32 [2026-04-15 07:57] (current) – ↷ Page moved from xro:eh2024_badge_homeassistant_esp32 to memberpages:xro:eh2024_badge_homeassistant_esp32 ruru4143 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Eeasterhegg 2024 Badge as Homeassistant Indicator Light ====== | ||
| + | |||
| + | ==== Goal ==== | ||
| + | |||
| + | * Control the brightness and activity of the beautiful EH2024 Badge via Homeassistant | ||
| + | * which means, controlling it via esphome from an ESP module | ||
| + | * which means, controlling it's supply voltage | ||
| + | |||
| + | ==== HowTo ==== | ||
| + | |||
| + | |||
| + | * The badge takes 3V and about 200mA of power | ||
| + | * It still works with about 1.8V where it takes about 50mA but has almost no activity and is very dark | ||
| + | * which is perfect, so we can control it's activity by controlling it's supply voltage | ||
| + | |||
| + | Basically we want to trick the step-down module to generate less output by changing the feedback voltage it sees by generating an offset voltage using the ESP32' | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | - To do that, we use a common StepDown module and connect it's Vin and GND to 5V and GND of an ESP32 | ||
| + | - We use the poti on the StepDown module to set it's output to slightly above 3V | ||
| + | - We solder an extra pin to the module, onto the FB pin of the the modules step-down IC | ||
| + | - via at least 10k of R we connect that FB pin to the ESP32' | ||
| + | - for fun, we also connect the Step-Down Modules Vout to an ADC pin of the ESP32 | ||
| + | - let's make sure the DAC output is 0V and re-measure the Step-Down Output and re-adjust it's poti so the output is exactly 3V (or a bit more if you want it brighter) | ||
| + | - Flash the ESP32 with esphome | ||
| + | - we are done | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === Resources === | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Result ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Badge controllable via HomeAssistant. | ||