So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By jackwan1
#66659 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.
User avatar
By Anthony420
#68045 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
User avatar
By JanAage
#68088 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
You do not have the required permissions to view the files attached to this post.