Just a quickie DIY on upgrading the H801 LED RGB 5 channel WiFi for use with Mosquitto and mcsMQTT
Hardware:
- H801 LED RGB WiFi device (< $10 USD)
- Pins for connectivity for JTAG and Jumper for firmware upgrading
- USB JTAG programmer - USE 3.3VDC pins
Step by step
1 - solder on 6 pins
2 - software utilized for Windows 7/10 or Ubuntu 18.04 ==> Visual Studio Code / PlatformIO
Installed it here on Windows 7 Pro 64 bit, Windows 10 Pro 64 bit and Ubuntu 18.04 LTS 64 bit with no issues.
3 - Updating firmware
A - put a jumper on J3
B - connect RX, TX, GND and 3.3 pins from controller to USB programmer. Make sure you utilize 3.3VDC pins.
C - plug in your USB programmer. The device will boot in in flash mode.
D - Per Tinkerman's review here ==> A closer look at the H801 LED WiFi Controller
git clone hxxps://github.com/xoseperez/espurna
cd espurna/code
pio run -e h801-debug -t upload
E - another easy and fast way to do this in Ubuntu Linux is to download the bin file here ===> espurna-1.13.1-huacanxing-h801.bin
F - install esptool ==>
pip install esptool
G - type (note make check to make sure your USB programmer is at ttyUSB0)
esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 espurna-1.13.2-huacanxing-h801.bin
Wait until it is finished flashing. The is fastest and easiest way if you do not want to modify the code.
H - unplug USB programmer and move jumper off the two pins.
I - plug in USB programmer
J - The device will be in AP mode. Connect to the AP. SSID password is fibonacci
K - go to web page 192.168.4.1 . login with admin and password fibonacci.
L - configure you WAP stuff and here I used a static IP and configured NTP.
M - configured device for one channel - warm white.
N - configure MQTT in mcsMQTT
xxxxxxxxxxxxxxxxxxx
Hardware:
- H801 LED RGB WiFi device (< $10 USD)
- Pins for connectivity for JTAG and Jumper for firmware upgrading
- USB JTAG programmer - USE 3.3VDC pins
Step by step
1 - solder on 6 pins
2 - software utilized for Windows 7/10 or Ubuntu 18.04 ==> Visual Studio Code / PlatformIO
Installed it here on Windows 7 Pro 64 bit, Windows 10 Pro 64 bit and Ubuntu 18.04 LTS 64 bit with no issues.
3 - Updating firmware
A - put a jumper on J3
B - connect RX, TX, GND and 3.3 pins from controller to USB programmer. Make sure you utilize 3.3VDC pins.
C - plug in your USB programmer. The device will boot in in flash mode.
D - Per Tinkerman's review here ==> A closer look at the H801 LED WiFi Controller
git clone hxxps://github.com/xoseperez/espurna
cd espurna/code
pio run -e h801-debug -t upload
E - another easy and fast way to do this in Ubuntu Linux is to download the bin file here ===> espurna-1.13.1-huacanxing-h801.bin
F - install esptool ==>
pip install esptool
G - type (note make check to make sure your USB programmer is at ttyUSB0)
esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 espurna-1.13.2-huacanxing-h801.bin
Wait until it is finished flashing. The is fastest and easiest way if you do not want to modify the code.
H - unplug USB programmer and move jumper off the two pins.
I - plug in USB programmer
J - The device will be in AP mode. Connect to the AP. SSID password is fibonacci
K - go to web page 192.168.4.1 . login with admin and password fibonacci.
L - configure you WAP stuff and here I used a static IP and configured NTP.
M - configured device for one channel - warm white.
N - configure MQTT in mcsMQTT
xxxxxxxxxxxxxxxxxxx
Comment