esp8266-led-dimmer

Public

@stelioskat

Download board files

Files for version 1. Pick what you came for.

Share esp8266-led-dimmer

Check access before sharing the link.

Who can open this board

Anyone can open this board. No sign-in is required.

This link opens the latest version. Copying it does not grant additional access.

Loading…

README

ESP8266 LED Dimmer (MQTT controlled)

  1. Layout
  2. Parts
  3. Schematic
  4. Firmware
  5. MQTT

This is a very simple wifi enabled (ESP8266 12e) LED dimmer for single colored LED strips.

Its purpose was originally to be controlled by Node-RED (http://nodered.org) and node-red-contrib-homekit (https://flows.nodered.org/node/node-red-contrib-homekit) using MQTT events. Thus, one could control this with Apple Homekit.

Of course by using MQTT you can control it with whatever you like and not necessarily with Apple Homekit.

Layout

The layout is made with KiCad but I have also included an screenshot of the schematic, in case you want to make your own PCB with another software. You could simply produce this PCB for example by uploading the ESPDimmer.kicad_pcb file directly in AISLER .

Parts

Nr. Part Package   Qty.
1Capacitor 100nF04022
2Capacitor 1uFPackage 04021
3Resistor 10kPackage 08051
4Voltage regulator TLV1117SOT-2231
5AK300-2 Terminal for LED strip-1
6ESP8266-12E1
7Standard barrel jack for power supply1
830V Single N-Channel Power MOSFETTO-2201

Schematic

Firmware

The firmware can be compiled in Arduino IDE using the available ESP8266 package. In order to flash the firmware you will need a USB-to-Serial adapter such as the FTDI232 that I am using (https://github.com/jandelgado/arduino/wiki/FTDI232-USB-to-Serial-converter). Keep in mind that you will have to update the Wifi credentials and also the MQTT broker hostname and port to fit your own.

Of course, you could write your own firmware or you use another one since this is basically a breakout board.

MQTT

The default firmware subscribes to the topic "/light/1" and expects the following JSON messages to control the LED strip and its brightness.

  • Turn on command:
{"On":1}
  • Turn off command:
{"On":0}
  • Set brightness level:
{"Brightness":<A VALUE BETWEEN 0 AND 100>}
Comments

No comments yet. Be the first to ask about this board.

Ask about this board

Sign in to BoardRepo

New here? Signing in creates your account; there is no separate sign-up.