Ledcontroller H801 upgraded MQTT from Aliexpress

Forum about LEDS, LED lights, DMX and other lights.

Moderator: Mversluis

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby raymonvdm » Fri Apr 29, 2016 4:08 pm

vlast3k wrote:
raymonvdm wrote:Using this interface i just got the example op eryk.io working. But i cannot build the vlast3k .ino yet

aahh sorry....
we have now easter and I will have finally time to add a description how to build :)


This is my first attempt to program H801 and my first experience with Arduino IDE so i might be doing something wrong. But the eryk.io was written successfull and i think the current INO is to difficult to read for me because of al vlast3k devices in one .ino file. Please give us a manual :D

Code: Select all

Arduino: 1.6.8 (Linux), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (256K SPIFFS), ck, Disabled, None"

Build options changed, rebuilding all
sketch/vThingCO2.ino.cpp.o: In function `printVersion()':
/home/calimero/Arduino/vThingCO2.ino/vThingCO2/vThingCO2.ino:271: undefined reference to `handleWifi()'
/home/calimero/Arduino/vThingCO2.ino/vThingCO2/vThingCO2.ino:271: undefined reference to `processUserInput()'
sketch/vThingCO2.ino.cpp.o: In function `activeWait()':
/home/calimero/Arduino/vThingCO2.ino/vThingCO2/vThingCO2.ino:271: undefined reference to `handleWifi()'
sketch/vThingCO2.ino.cpp.o: In function `operator<< <char const*>':
/home/calimero/Arduino/libraries/Streaming/Streaming.h:34: undefined reference to `processUserInput()'
sketch/vThingCO2.ino.cpp.o:(.text.setup+0x18): undefined reference to `h801_setup()'
sketch/vThingCO2.ino.cpp.o: In function `setup':
/home/calimero/Arduino/vThingCO2.ino/vThingCO2/vThingCO2.ino:282: undefined reference to `h801_setup()'
sketch/vThingCO2.ino.cpp.o: In function `operator<<':
/home/calimero/Arduino/libraries/Streaming/Streaming.h:103: undefined reference to `handleOTA()'
/home/calimero/Arduino/libraries/Streaming/Streaming.h:103: undefined reference to `h801_loop()'
sketch/vThingCO2.ino.cpp.o: In function `operator<< <const __FlashStringHelper*>':
/home/calimero/Arduino/libraries/Streaming/Streaming.h:34: undefined reference to `handleWifi()'
sketch/vThingCO2.ino.cpp.o: In function `operator<<':
/home/calimero/Arduino/libraries/Streaming/Streaming.h:103: undefined reference to `handleOTA()'
sketch/vThingCO2.ino.cpp.o: In function `loop':
/home/calimero/Arduino/vThingCO2.ino/vThingCO2/vThingCO2.ino:333: undefined reference to `processUserInput()'
/home/calimero/Arduino/vThingCO2.ino/vThingCO2/vThingCO2.ino:363: undefined reference to `h801_loop()'
collect2: error: ld returned 1 exit status
Multiple libraries were found for "NeoPixelBus.h"
Used: /home/calimero/Arduino/libraries/NeoPixelBus
Not used: /home/calimero/Arduino/libraries/NeoPixelBus_uart
exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1147
Joined: December 2011

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby Merdeka » Mon May 02, 2016 12:50 pm

vThingCO2.ino??

I think you only need to load H801_LED.ino. Discard the rest.

So just download only H801_LED.ino to a new folder (H801_LED) and load it from there.

Cheers,

Timo
Merdeka
Member
Member
 
Posts: 65
Joined: May 2009
Location: Netherlands

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby raymonvdm » Tue May 03, 2016 8:59 am

I did not noticed the file in the past but still without little success yet. I`m using Arduino 1.6.8

Code: Select all


Arduino: 1.6.8 (Linux), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (256K SPIFFS), ck, Disabled, None"

arduino.ar(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0x4): undefined reference to `setup'
arduino.ar(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0x8): undefined reference to `loop'
arduino.ar(core_esp8266_main.cpp.o): In function `loop_wrapper':
/home/user/.arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/core_esp8266_main.cpp:97: undefined reference to `setup'
/home/user/.arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/core_esp8266_main.cpp:97: undefined reference to `loop'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1147
Joined: December 2011

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby AshaiRey » Thu May 12, 2016 11:17 am

So, after a lot of frustration and fiddling i got this thing working.
This is what i did.

I installed
Arduino IDE v1.6.8
- Add under File\Preferences - Additional Boards Manager URLs
http://arduino.esp8266.com/stable/packa ... index.json
- Under Tools\board > Boards manager
install esp8266 (v2.2.0)

Make a new folder somewhere called H801_Controller
- Create a text file called the same as the folder (H801_Controller.ino)
- Copy the code example from this page into the ino file (https://eryk.io/2015/10/esp8266-based-w ... ller-h801/)

Double clicking the ino file will start your development environment
Change these settings
const char *ssid = "Your SSID to use";
const char *pass = "The password for this SSID";

Next connect the hardware
- FTDI Rx -> H801 Rx
- FTDI Tx -> H801 Tx
- FTDI Gnd -> H801 Gnd
Connect the FTDI to USB

Look in de Arduino IDE under Tools and set these settings
Also check if you got an active com port (default settings : 8N1 none)
esp8266.png
esp8266.png (6.89 KiB) Viewed 6384 times


Start a serial monitor (under Tools) at 115200 baud (Both NL & CR)

Now comes the trickiest part i encountered. The power supply need to be stable and 3.3V
Not 3.18V or 3.2V just 3.3V or thing get unpleasant. Also make sure it deliver enough current.
Using the 3.3V delivered from the FTDI wasn't good enough !!!

Place the jumper on the pins of the H801 for programming

Connect your 3.3V power supply
Gnd -> H801 - Gnd
+3.3V -> H801 - Vcc

Most likely the serial monitor will now show garbage.
If not then it might be still oke.

Start an upload (Sketch\upload)
If things went oke then a Done uploading message come and the serial monitor tells you something like this
........
WiFi connected
IP address:
192.168.1.xx

Webserver started

=====

Now you can control it from a browser
Remove all the wires, apply only Vcc (5-12V) to the screw terminal
Using a browser these commands work
http://192.168.0.xx/rgb/ff0000
http://192.168.0.xx/w1/ff
http://192.168.0.xx/w2/ff

=====
Troubleshooting
You might get an communication error or such.
- Check wiring
- Check 3.3V power supply
- Remove Vcc from H801, wait a moment and re-apply. Then try upload again.

The first H801 i had to reboot a few times before the upload succeeded. The second one went oke directly.

Hope this helps
Bram
AshaiRey
Senior Member
Senior Member
 
Posts: 1301
Joined: February 2009
Location: Netherlands

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby raymonvdm » Thu May 12, 2016 11:23 am

Hi Bram,

This erykio.ino was working without issues with my ArduinoIDE but as soon as i want to use https://github.com/vlast3k/vThingCO2/bl ... 01_LED.ino i get errors about setup and loop

And i`m just using the power provided by the FTDI programmer
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1147
Joined: December 2011

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby AshaiRey » Thu May 12, 2016 12:08 pm

I too tried to use vThing but could not get it to work also. I tried to add all the libraries and additional projects but still got the mentioned errors in setup en loop. The code isn't that easy to read so i didn't want to waste more time to it.

I am happy with the eyrkio.ino. It just work on a plain environment and the code is more readable.
Bram
AshaiRey
Senior Member
Senior Member
 
Posts: 1301
Joined: February 2009
Location: Netherlands

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby AshaiRey » Tue May 17, 2016 8:41 pm

r_255 wrote:You could use espeasy and a ftdi serial converter ( just make sure you use a 3.3v version )
I still had one laying from the jeenode workshop ( al these 3.3v sensors and stuff work fine on the esp with out level conversion )
[SNIPPED THE REST]
Have fun! :D


I had a look at ESPEasy and it sure looks oke however it seems more targeted for Domoticz than HomeSeer. (HS2 used here)
I would be really happy if there is a way to construct a http query string and send that to a IP address. I can handle data that is pushed to a url.

Edit:
Just found out that in build 106 there is a generic HTTP protocol to be used.
I am happy again.
Bram
AshaiRey
Senior Member
Senior Member
 
Posts: 1301
Joined: February 2009
Location: Netherlands

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby raymonvdm » Thu May 19, 2016 4:26 pm

Yesterday flashed the second H801 with the Eryk.io.INO and now i need to find out how to control it using HS3 :-)

Domoticz is already working using on = http://192.168.116.60/rgb/ffffff off = http://192.168.116.60/rgb/000000
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1147
Joined: December 2011

Re: Ledcontroller H801 upgraded MQTT from Aliexpress

Postby raymonvdm » Wed Aug 10, 2016 10:01 pm

I realy would like some help to get these devices working

I want to send the following commands using a virtual device for example

uit http://192.168.116.60/rgb/000000
Rood http://192.168.116.60/rgb/ff0000
Groen http://192.168.116.60/rgb/00ff00
Blauw http://192.168.116.60/rgb/0000ff

* hex value created by a color picker and send to the device would be great

W1 aan = http://192.168.116.60/w1/ff
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1147
Joined: December 2011

Previous

Return to LEDS, DMX & Lights Forum

Who is online

Users browsing this forum: No registered users and 1 guest