My daughter wanted some extra light for her desk. Remixed parts to make it fit.
Printed on an Ender 3 with 0.6mm nozzle, Satsana duct with 5010 fan, Octoprint
I have used an ESP32 (Arduino baseboard compatible) with MOSFET for PWM control. Using ESPHome for the code and integrated with HomeAssitant. It then syncs the brightness level between our Hue system.
esphome:
name: xx-led-dimmer
substitutions:
devicename: xx-led-dimmer
esp32:
board: esp-wrover-kit
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
web_server:
port: 80
ota:
password: "xxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "xx-Led-Dimmer Fallback Hotspot"
password: "xx"
captive_portal:
output:
platform: ledc
pin: GPIO27 # see below if you have more strips on one ESP32 board
frequency: 20000Hz
id: ledcout
min_power: 0.01
max_power: 1
zero_means_zero: true
light:
- platform: monochromatic
output: ledcout
name: ${devicename} light20s
default_transition_length: 20s
- platform: monochromatic
output: ledcout
name: ${devicename} light5s
default_transition_length: 5s
- platform: monochromatic
output: ledcout
name: ${devicename} lights
switch:
- platform: restart
name: ${devicename} restart
Thanks to all those that made the original models
The author remixed this model.