-->
Page 6 of 29

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Fri Jun 02, 2017 7:08 pm
by jackwan1
Hi Janage
when you upload your code which board do you use in the IDE? I used "Generic ESP8266" and cannot get it work, either at 115200 or 9600 baud.

The error messages are:

warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

I installed the esp-01 on the relay and use ftdi to supply 5v on the relay board and connected rx, tx and gnd on the relay board and then tried to upload the code.

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Fri Jun 16, 2017 5:35 pm
by sirrion
Vishal,

This is a great solution using an NPN transistor, I like that! I'm wondering if you could share a sketch of the required connections, any resistor required? I not sure how to do it, I appreciated you suggestion.

Thanks.

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Fri Jul 07, 2017 3:40 pm
by Anthony420
Thanks, guys for saving me from pulling out whatever little hair I had left. I could not for the life of me figure out why I could not get the relay to toggle with a simple http server sketch. At least now I know. It would seem to me that they have all the workings on the board to activate the relay from the ESP-01 GPIO i.e. a transistor driver, so why would they complicate the whole matter by using serial comms?

Has anyone hacked this board using the onboard components to drive the relay from GPIO2? I'm not up to reverse engineering the tracks to see if it is possible, but maybe someone else has gone through the exercise? Just figured it did not hurt to ask.
Anthony

Re: Trouble with ESP-01 + 1Ch 5V relay from LC Technology

PostPosted: Sat Jul 08, 2017 1:56 pm
by JanAage
I did never try it with the provided software as intended by the documentation.
I programmed the ESP to my own needs, control it over web with Blynk http://www.blynk.cc.

You can have a look at the attached file and this site:
https://www.hackster.io/makerrelay/esp8266-wifi-5v-1-channel-relay-delay-module-iot-smart-home-e8a437