No connection ESP01 and Relay

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

No connection ESP01 and Relay

#1 Post by cbirchy87 » 01 Dec 2017, 09:21

Hi,

I am having issues with a ESP-01 connected to a relay. When the ESP-01 is connected to my USB programmer the device connects to my network. When i connect the ESP-01 to the relay and power the relay the ESP-01 turns on but doesn't connect to my network.
The ESP-01 flashed fine and ESP easy was setup.

I have no idea what is going wrong. I have tired powering the relay from the pins of the same USB programmer it works with and still get no network connection. I have included images of the two devices I have for reference. I hope you can help me.

P.S I have tried two ESP-01s and two of the same relays with the same result.
Attachments
esp01.JPG
esp01.JPG (24.52 KiB) Viewed 37871 times
relay.jpg
relay.jpg (15.27 KiB) Viewed 37887 times
usbpro.JPG
usbpro.JPG (12.35 KiB) Viewed 37887 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#2 Post by grovkillen » 01 Dec 2017, 10:50

Please take a picture of your ESP-01 since I suspect you do not have it correctly set to boot.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#3 Post by cbirchy87 » 01 Dec 2017, 10:55

I will do when i get home. All i did was plug the esp-01 into the yellow connector of the relay.

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#4 Post by cbirchy87 » 01 Dec 2017, 11:49

looking into the further and look like i need to boot into "boot from flash mode" how do i go about this? Am i guessing the USB programmer goes into boot from flash as default?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#5 Post by grovkillen » 01 Dec 2017, 12:38

To boot into flash mode:
put the "CH-EN" to HIGH
put "GPIO00" to LOW

Picture
Image

To boot into normal mode:
put "CH-EN" to HIGH (recommended with a resistor between, I managed to just solder a piece of wire = unprotected)
put "GPIO00" to HIGH (disconnect the cable)

More info on the wiki: https://www.letscontrolit.com/wiki/inde ... figuration
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#6 Post by cbirchy87 » 01 Dec 2017, 12:46

Thank you. How can I do this while connected to the Relay board?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#7 Post by grovkillen » 01 Dec 2017, 13:13

Solder a wire between those two pins (VCC---CH-EN) Solder on the "top" of the board.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#8 Post by cbirchy87 » 01 Dec 2017, 13:18

Ok cool. so just solder those two terminals. Then power up? or do i need to connect GPIO0 to something also on boot uo?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#9 Post by grovkillen » 01 Dec 2017, 13:21

No just connect those two (permanently using a wire and solder). Then just power it up.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#10 Post by cbirchy87 » 01 Dec 2017, 13:24

OK just to check Solder VCC to CH-ENG then power up :)

Sorry being thick today.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#11 Post by grovkillen » 01 Dec 2017, 13:32

Correct
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#12 Post by cbirchy87 » 02 Dec 2017, 22:37

Placed a 10k resistor between vcc and Ch Eng and getting the same.problem. any ideas

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#13 Post by grovkillen » 02 Dec 2017, 23:30

I flashed a ESP-01 just an hour ago (to make this wiki page): https://www.letscontrolit.com/wiki/index.php/ESP-01
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#14 Post by cbirchy87 » 02 Dec 2017, 23:34

Im really not getting this. My unit has been flashed with firmware. Just doesn't connect.to WiFi after I disconnect it from the usb programmer and just apply power.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#15 Post by grovkillen » 02 Dec 2017, 23:50

Do you get any serial information?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#16 Post by cbirchy87 » 02 Dec 2017, 23:55

When I disconnect it from the programmer I don't have anything connected to the unit no serial info. As I said it works fine when connected to the programmer. I am able to connect via the IP address. When disconnected from the programmer it doesn't appear on my network.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#17 Post by grovkillen » 03 Dec 2017, 00:00

Do you have any other programmer?

But please send a picture of your soldering / connection when trying to run it with NO programmer.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#18 Post by cbirchy87 » 03 Dec 2017, 00:03

Yes I do. I have a standard ftdi programmer. I will send over a photo to.orrow if you don't mind. By soldering those pins does that mean it's in bootloader mode 247? I thought these where the pins I shorted to flash the firmware.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#19 Post by grovkillen » 03 Dec 2017, 00:13

Yes that jumper is a permanent thing. Do not remove it.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#20 Post by cbirchy87 » 03 Dec 2017, 18:36

Ok all soldered. Still not connecting to my network ;(

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#21 Post by cbirchy87 » 03 Dec 2017, 18:36

Image attached
Attachments
IMG_20171203_173419.jpg
IMG_20171203_173419.jpg (2.25 MiB) Viewed 37927 times

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#22 Post by cbirchy87 » 03 Dec 2017, 20:24

Really want to get this to work. But im on the verge of giving up. A lot of information online is different from one page to another.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#23 Post by grovkillen » 03 Dec 2017, 20:28

You sure it's 1MB? Have you removed it from the back relay board and booted it?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#24 Post by Shardan » 03 Dec 2017, 20:39

Do you get Wifi from the ESP if it is connected to the programmer?
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#25 Post by cbirchy87 » 03 Dec 2017, 20:47

I sure do.

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#26 Post by cbirchy87 » 03 Dec 2017, 21:26

grovkillen wrote: 03 Dec 2017, 20:28 You sure it's 1MB? Have you removed it from the back relay board and booted it?
Not sure if it is 1mb. And no I haven't booted away from the relay. As I don't have a 3.3 psu

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#27 Post by grovkillen » 03 Dec 2017, 21:27

Try to get 3.3V and boot before giving up. Also double check the memory size.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#28 Post by cbirchy87 » 03 Dec 2017, 21:44

I'll try powering from my arudino.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#29 Post by Shardan » 03 Dec 2017, 21:47

If Wifi is OK with the programmer the ESP is working and should have 1 MB.
Something does not work when the ESP is plugged into the relay board.

As the board should work with it's own software deleiverd with the board
something is stopping the ESPEasy firmware on the board.

Sadly i don't have a schematic or a sample of the board so it's difficult to say what's going on.
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#30 Post by cbirchy87 » 03 Dec 2017, 22:23

Just a question. Why does it work from the programmer without the link out? Why is it then needed?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#31 Post by grovkillen » 03 Dec 2017, 22:28

The programmer board connected these two pins via the board. You can test if they do using a multimeter.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#32 Post by Shardan » 03 Dec 2017, 22:30

This may answer your question.
I suspiced some needed pull-up resistors are missing on the board so i just checked the pictures of the board on AliExpress.

Beware - i'm judging only by the photos and may be wrong.

This is an interesting relay board.....
- Relay connected to GPIO0 - no pull-up resistor on the board
- GPIO2 floating - no pull-up resistor on the board
- ch-pd floating - no pull-up resistor on the board
- Reset just connected to the button - no pull-up resistor on the board

seeing this I checked ESP-01 and ESP-01S from my shelf:
The older ESP-01 (the one you used juding by your photos) has a internal pull-up on reset only.
The newer ESP-01S has internal pull-ups on reset, ch-pd (enable) and GPIO0 (I see 9..12 KOhm with multimeter) but
not on GPIO2 (I see some MOhms).

There may be other ESP-01 types differing from this.

It might be worth a try to solder the missing resistors to the board for a test.
Possibly it would work with the newer ESP01S, but not with your older ESP-01 types.

If you have a multimeter or voltmeter try the following:
- put the ESP-01 into the board
- power up the board (it needs 5V)
- check the voltage from GND to GPIO0, GPIO2, CH-PD (enable) and reset.

If possible give the results here.

Regards
Shardan
Last edited by Shardan on 03 Dec 2017, 22:34, edited 1 time in total.
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#33 Post by cbirchy87 » 03 Dec 2017, 22:33

Balls! Powered from arud and it's booted.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#34 Post by grovkillen » 03 Dec 2017, 22:38

cbirchy87 wrote: 03 Dec 2017, 22:33 Balls! Powered from arud and it's booted.
Great! You can get a DC-DC step down to 3.3V.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#35 Post by cbirchy87 » 03 Dec 2017, 22:39

Possible. However I wanted to use this relay due to the size. Which sucks!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: No connection ESP01 and Relay

#36 Post by grovkillen » 03 Dec 2017, 22:44

You probably can by modifying it a bit...
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#37 Post by cbirchy87 » 03 Dec 2017, 22:45

I can does reading tomorrow. It has esp01s printed on the rear of the relay if that helps

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#38 Post by cbirchy87 » 03 Dec 2017, 22:48

See photo.
Attachments
IMG_20171203_214800.jpg
IMG_20171203_214800.jpg (1.95 MiB) Viewed 38488 times

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#39 Post by Shardan » 03 Dec 2017, 22:50

Yep, i think that's the reason - some pull up resistors are missing.
If you check the pictures on AliExpress et al you will see they all use a ESP-01S type.

Look at this picture:
.
ESP-01_vs_01S_marked_1024.jpg
ESP-01_vs_01S_marked_1024.jpg (544.9 KiB) Viewed 38487 times
.
In the upper left marked area there are some more parts on the ESP-01S.
In the lower area are two resistors that are missing on the ESP-01.

As said check the voltage on the four pins as described some might have too low voltage to start up.

Regards
Shardan
Regards
Shardan

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#40 Post by Shardan » 03 Dec 2017, 22:52

cbirchy87 wrote: 03 Dec 2017, 22:48See photo.
As i can see from the photos you're using an ESP-01, not an ESP-01S (misstyped that on first run, sorry).
All boards i've seen on the marked use ESP-01S.
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#41 Post by cbirchy87 » 03 Dec 2017, 22:53

So I need to get some.esp01s WiFi boards to use my relays?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#42 Post by Shardan » 03 Dec 2017, 23:02

If you have a multimeter or voltmeter at hand try to check out the voltage on the four "middle" pins, GPIO 0 & 2, CH-PD (enable) and reset when the ESP-01 is plugged into the board.
I suspice the voltage on some pins is too low to boot up correctly due to the missing resistors.

The easiest way to get it working is getting ESP-01s, yes.
If you can check which pins have too low voltage it should be possible to use some 10KOhm resistors and pull the voltage up.

Regards
Shardan
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#43 Post by cbirchy87 » 03 Dec 2017, 23:04

I'll test it tomorrow. I might just grab some esp01s units. However most sellers.are not in the UK.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#44 Post by Shardan » 03 Dec 2017, 23:17

cbirchy87 wrote: 03 Dec 2017, 23:04 I'll test it tomorrow. I might just grab some esp01s units. However most sellers.are not in the UK.
Sadly they are not in Germany either..... and those which are sold here are not really affordable.
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#45 Post by cbirchy87 » 03 Dec 2017, 23:21

Will get an esp01s WiFi module from the UK. If it works I'll bulk buy for the project. Can't thank you enough for the help. I'll test the voltage tomorrow :)

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#46 Post by Shardan » 03 Dec 2017, 23:22

You're welcome.
Regards
Shardan

cbirchy87
Normal user
Posts: 25
Joined: 01 Dec 2017, 09:14

Re: No connection ESP01 and Relay

#47 Post by cbirchy87 » 06 Dec 2017, 00:45

Hey

So I've replaced the esp01 for esp01s and it works flawlessly. Thanks for your help. Just need to find a use for the old units now.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: No connection ESP01 and Relay

#48 Post by Shardan » 07 Dec 2017, 00:04

Great! :)
Regards
Shardan

jaap
New user
Posts: 1
Joined: 24 Dec 2017, 21:56

Re: No connection ESP01 and Relay

#49 Post by jaap » 24 Dec 2017, 22:12

i have connected VCC to CH_PD and put a 10K ohm resistor on VCC and GPO0 on the esp01.
The board seems to start up now and GPO0 can operate the onboard relais.
So don't throw away your old esp's yet.

User avatar
soif
Normal user
Posts: 46
Joined: 20 Feb 2018, 19:11
Location: Solar System
Contact:

Re: No connection ESP01 and Relay

#50 Post by soif » 01 Mar 2018, 15:11

BTW the shematic of this relay baby is there:
https://github.com/IOT-MCU/ESP-01S-Rela ... ematic.pdf

as well as some others documents (look like the manufacturer repo)

HTH
Soif
-----
Want to update ALL your ESP babies OverTheAir, or backup their settings in ONE simple command, + many other cool features.... Adopt EspBuddy

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests