Sonntag, 23. August 2015

ESP8266 in the wild, WiFi LED controller hack.

Recently I found a cheap (9€) WiFi LED controller on AliExpress:


http://www.aliexpress.com/item/rgbww-strip-WiFi-controller-1-port-control-200-lights-communicate-with-Android-phone-via-WLAN-to/32301423622.html

I bought 2 because I was curious if it would be possible to hack this drivers.






Controller overview:


This pictures show the PCB. As you can see there are pins labeled as RX,TX,GND,3.3V. I simply connected an USB-Serial converter to the pins. The two other pins are GND and GPIO0. If you set a jumper between this two pins, the controller starts in bootloader mode. 



The chip above is a NXP HC245, a 3-state Octal bus transceiver. It is used to drive the N-channel MOSFETS (20N06L - 20 A, 60 V, N−Channel DPAK).

The power supply is a 2 stage design. A AOZ1212 3A Simple Buck Regulator to convert the input voltage to about 5V and an AMS1117 low dropout voltage regulator to get 3.3V.



The pinout for the ESP8266 is as follow (Arduino numbering)
 // RGB FET
redPIN    12
greenPIN  13
bluePIN   15

// W FET
w1PIN     14
w2PIN     4

// onbaord green LED D1
LEDPIN    5
// onbaord red LED D2
LED2PIN   1

TX GPIO2 @Serial1 (Serial ONE)
RX GPIO3 @Serial


Jumper closed -> start in bootloader mode on Power on.
Jumper open   -> start user program 
I have a simple demo sketch on github:
https://github.com/4ndreas/WiFI-RGBWW-module

This can be controlled with openHAB.

You should also take a look at my other ESP8266 project:

4 Kommentare:

  1. Hi and thanks for great info. I just ordered a couple of 801s for experimenting. However, when searching the web for more info, I get mixed messages: Some say when flashing the 8266 the USB-Serial programmer TX pin should be connected to the TX pin on the 801...and some say the USB-Serial TX pin should be connected to the RX pin. Perhaps you can confirm which one is correct?

    AntwortenLöschen
  2. Hi can you explain how the 245 drive the mosfet exactly ? why it dont use directly the esp no enough current for that ? thanks yohan you can give me an ansewer on ycellette@gmail.com

    AntwortenLöschen
  3. I use Delta PLC and you can provide more information about PLC. Thank you
    پی ال سی

    AntwortenLöschen