Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 3.28 KB

readme.md

File metadata and controls

49 lines (37 loc) · 3.28 KB

LED Dimmer

An Wemos D1 Mini based 1-channel 12VDC PWM Dimmer controlled via MQTT topics a home automation system and/or by a physical push button.

Installation

Needed Arduino Libraries to be included in IDE. Install them either from GitHub repository directly or within the IDE application itself Sketch > Import Library

Library Link to GitHub
PubSubClient https://github.com/knolleary/pubsubclient

MQTT Topics

MQTT Topics to be sent and recived.

Topic Description
LedDimmer/setLightStatus set topic - On/Off
LedDimmer/setBrightness set topic - Dim value (0-100)
LedDimmer/getLightStatus get topic - On/Off
LedDimmer/getBrightness get topic - Dim value (0-100)

Wiring

PCB Layout

Gerber files for production is located in extras/PCB Layout/Gerber folder.

BOM List

Part Comment/Link
Wemos D1 mini
Terminal block - 5.08mm https://www.rutronik24.com/product/sauro/msb02005/5511.html
MOSFET - IRLZ44N http://www.irf.com/product-info/datasheets/data/irlz44n.pdf
Voltage Regulator - LD1117v33 https://www.sparkfun.com/datasheets/Components/LD1117V33.pdf
Capacitor 10uF
Capacitor 100nF
Resistor 1 kohm
Resistor 220 kohm

Features

  • OTA
  • Customized linear fade curve

References

Wemos D1 Mini: https://wiki.wemos.cc/products:d1:d1_mini