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.
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 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) |
Gerber files for production is located in extras/PCB Layout/Gerber folder.
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 |
- OTA
- Customized linear fade curve
Wemos D1 Mini: https://wiki.wemos.cc/products:d1:d1_mini