diff --git a/cookbook/h801.rst b/cookbook/h801.rst new file mode 100644 index 000000000..4a567275f --- /dev/null +++ b/cookbook/h801.rst @@ -0,0 +1,100 @@ +H801 RGBW LED controller +======================== + +The H801 is pretty afordable and easy to hack and adapt to your needs. It can be found on `Aliexpress `__ +`Here `__ is an article about the hardware for those who have an interest for more details about the board. +It can be used as a RGB, RGBW, RGB dual white or even control 5 individual monochromatic strips if you want or combinations of these. + +.. figure:: images/h801.jpg + :align: center + :width: 80.0% + +For esphomelib, you can then use the :doc:`RGBW ` +and the :doc:`ESP8266 Software PWM output ` components using below configuration: + +.. code-block:: yaml + + esphomeyaml: + name: h801light + platform: ESP8266 + board: esp01_1m + wifi: + ssid: 'WIFI' + password: 'WIFIPASS' + manual_ip: + static_ip: x.x.x.x + gateway: x.x.x.x + subnet: 255.255.255.0 + logger: + api: + ota: + sensor: + - platform: wifi_signal + name: "WiFi Signal h801light" + update_interval: 60s + #RGBWarm + output: + - platform: esp8266_pwm + pin: 12 + frequency: 1000 Hz + id: pwm_b + - platform: esp8266_pwm + pin: 15 + frequency: 1000 Hz + id: pwm_g + - platform: esp8266_pwm + pin: 13 + frequency: 1000 Hz + id: pwm_r + - platform: esp8266_pwm + pin: 14 + frequency: 1000 Hz + id: pwm_w + light: + - platform: rgbw + name: "H801 Light" + red: pwm_r + green: pwm_g + blue: pwm_b + white: pwm_w + + +Make your node in the esphome dashboard and compile/upload it. (if it fails OTA it must be uploaded manually with your favorite ESP flasher, e.g. :ref:`esphomeflasher `) + +.. figure:: images/gpio.jpg + :align: center + :width: 80.0% + +Front side of board with pins soldered on + +.. figure:: images/back.jpg + :align: center + :width: 80.0% + +Back side of the board (don't melt the blue and red wire when soldering) + +.. figure:: images/rgbwarm.jpg + :align: center + :width: 80.0% + +This LED strip can be used with the sketch as-is + +.. figure:: images/rgbw.jpg + :align: center + :width: 80.0% + +For this type of led strip you have to swap the white and blue gpio numbers in the sketch + +You will need to solder pins to the board inside the h801 (fortunately its pretty roomy and not a lot of components or stuff in the way part from the 2 wires on the back) + +3.3v, GND, TX and RX (RX to RX and TX to TX) needs to be connected to your serial adapter, the two other pins must be shorted by a jumper or a breadboard cable when flashing. +(Remember to remove it after flashing) + +See Also +-------- + +- :doc:`/components/light/rgbw` +- :doc:`/components/output/esp8266_pwm` +- :ghedit:`Edit` + +.. disqus:: diff --git a/cookbook/images/back.jpg b/cookbook/images/back.jpg new file mode 100644 index 000000000..b69e310b8 Binary files /dev/null and b/cookbook/images/back.jpg differ diff --git a/cookbook/images/gpio.jpg b/cookbook/images/gpio.jpg new file mode 100644 index 000000000..3524ff2d3 Binary files /dev/null and b/cookbook/images/gpio.jpg differ diff --git a/cookbook/images/h801-header.jpg b/cookbook/images/h801-header.jpg new file mode 100644 index 000000000..4a4dd5186 Binary files /dev/null and b/cookbook/images/h801-header.jpg differ diff --git a/cookbook/images/h801.jpg b/cookbook/images/h801.jpg new file mode 100644 index 000000000..98887d15c Binary files /dev/null and b/cookbook/images/h801.jpg differ diff --git a/cookbook/images/rgbw.jpg b/cookbook/images/rgbw.jpg new file mode 100644 index 000000000..1134363b5 Binary files /dev/null and b/cookbook/images/rgbw.jpg differ diff --git a/cookbook/images/rgbwarm.jpg b/cookbook/images/rgbwarm.jpg new file mode 100644 index 000000000..90c800d1b Binary files /dev/null and b/cookbook/images/rgbwarm.jpg differ diff --git a/cookbook/images/serial.jpg b/cookbook/images/serial.jpg new file mode 100644 index 000000000..f55c01200 Binary files /dev/null and b/cookbook/images/serial.jpg differ diff --git a/images/h801.jpg b/images/h801.jpg new file mode 100644 index 000000000..98887d15c Binary files /dev/null and b/images/h801.jpg differ diff --git a/index.rst b/index.rst index c00ae68cc..9bcf71725 100644 --- a/index.rst +++ b/index.rst @@ -296,6 +296,7 @@ This list contains items that are technically already supported by other compone Dual Relay Motor Cover, cookbook/dual-r2-cover, sonoff_dual_r2.jpg BME280 Environment, cookbook/bme280_environment, bme280.jpg Sonoff Fishpond Pump, cookbook/sonoff-fishpond-pump, cookbook-sonoff-fishpond-pump.jpg + H801 LED Controller, cookbook/h801, h801.jpg Do you have other awesome automations or cool setups? Please feel free to add them to the documentation for others to copy. See :doc:`Contributing `.