ESP8266 EasyIoT relay

8 years 11 months ago #1563 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay
Today i've read all 7 pages of this forum, but i don't understand a thing :

In my circuit reset is connected with arduino... and EasyIoT server need reset to work correctly because when esp doesn't respond server reset module....
and there are two resistor connected to shift level (20k to gnd and 10k to pin)
Everybody talk about a capacitor ... but we use TWO capacitor... one 100uf on 5v and one 1000uf on 3.3v ...
Don't really understand what we can do !
I see that usually it doesn't hang immediately, but hang if you do lots of operation in sequence....
Tomorrow want to try to add 100nf cap from the reset pin to 3.3V ... and try again!

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1565 by ArneiO
Replied by ArneiO on topic ESP8266 EasyIoT relay
I recommend a 100 nF ceramic capa as close as possible to the terminals of the ESP-01, as described here .
The large electrolytic capa's take care of low frequency noise, but a ceramic capa responds better to high frequency noise, and does not need so be as large as the low frequency electrolytes, which you would normally place where the voltage enters your board.
I do not use an arduino on my relay board, only an ESP-01 with GPIOs directly controlling a 5V relay module. That means I could cut the RES line on the module without impeding functionality. If your circuit uses an arduino in addition you can maybe not do that. But you don't really need the arduino...

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1568 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay
You tell me that i must put a 100nf cap between reset and gnd and leave attached my 1000mf capacitor between esp vcc 3.3v and gnd ?
I really need arduino because i have 4 relay and 4 input sensors if you turn on the lights manually.

Please Log in or Create an account to join the conversation.

8 years 11 months ago - 8 years 11 months ago #1569 by ArneiO
Replied by ArneiO on topic ESP8266 EasyIoT relay
A 100 nF ceramic capa between Vcc and GND is a good precaution that will dampen any RF noise that tries to enter the module via the power lines. You do not have to do it, but it is recommended. Should be placed on the module, as illustrated. Your 1000 µF (I assume) electrolyte on the power line filters out low frequency noise and acts as charge buffer when the ESP consumes in bursts - so you should keep it. The two capas have different purposes.

And check your wiring configuration. Always try to make a star configuration from one common GND point. IN a noisy environment, keep GND and power lines in parallell. Twisted wire pairs between boards. Avoid ground signal loops.
If you really need 8 GPIOs I guess you need the Arduino, yes.
The following user(s) said Thank You: cdj

Please Log in or Create an account to join the conversation.

8 years 11 months ago #1619 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay

ArneiO wrote: A 100 nF ceramic capa between Vcc and GND is a good precaution that will dampen any RF noise that tries to enter the module via the power lines. You do not have to do it, but it is recommended. Should be placed on the module, as illustrated. Your 1000 µF (I assume) electrolyte on the power line filters out low frequency noise and acts as charge buffer when the ESP consumes in bursts - so you should keep it. The two capas have different purposes.

And check your wiring configuration. Always try to make a star configuration from one common GND point. IN a noisy environment, keep GND and power lines in parallell. Twisted wire pairs between boards. Avoid ground signal loops.
If you really need 8 GPIOs I guess you need the Arduino, yes.


Today i've tried to put the cap with no result... when it start it works for some commands and then hang. Tomorrow i debug it with a serial attached to arduino... and let's see where it hangs

Please Log in or Create an account to join the conversation.

8 years 11 months ago - 8 years 11 months ago #1623 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay
Ok guys... Mr EasyioT.... everybody... i don't know what i can do with this.
Here is log :
+IPD,10:h
Response->OK

Process new message
Receive: command: 1, type: 1, len: 1, sender: 0, crc: 0

(358)
Receive C_SET
Incoming change for sensor:3, New Switch status: 0
ACK message

write: command: 1, type: 1, len: 1, sender: 3, crc:189 
Send cmd:AT+CIPSEND=10
ACK message

+IPD,39:h0h    0h     0h   

akjshdkajhsdkahsdadsbadcharshereasjdlajsdBADCHARS HERE
Process new message
Receive: command: 1, type: 1, len: 1, sender: 0, crc: 0

(358)
Receive C_SET
Incoming change for sensor:3, New Switch status: 0
ACK message
iajsdlkajsdlkajsldkjasldjaosijdoaisjd badcharshere
Ai-Thinker Technology Co. Ltd.

ready

Response->timeout
Command response timeout
Send cmd:AT+CIPCLOSE

AT+CIPCLOSE
ERROR

Response->timeout
Send cmd:AT+CWJAP?

AT+CWJAP?+CWJAP:"mywifi"

OK
Response->timeout
E_START
E_CWMODE
Send cmd:AT+CWMODE=1

AT+CWMODE=1
OK

Response->OK
Send cmd:AT+CWJAP="mywifi","mypass"

AT+CWJAP="mywifi","mypass"
OK

Response->OK
Send cmd:AT+CWJAP?

AT+CWJAP?+CWJAP:"mywifi"

OK

Response->OK
Send cmd:AT+CIPSTART="TCP","192.168.0.10",37602

AT+CIPSTART="TCP","192.168.0.10",37602CONNECT

OK

Response->OK


write: command: 3, type: 2, len: 0, sender: 3, crc:174 
Send cmd:AT+CIPSEND=9

PING
AT+CIPSEND=9
.....................................and restart to work...

but sometime :
+IPD,10:h
Process new message
Receive: command: 1, type: 1, len: 1, sender: 0, crc: 94(358)
Receive C_SET
Incoming change for sensor:3, New Switch status: 1
ACK message


write: command: 1, type: 1, len: 1, sender: 3, crc:227 
Send cmd:AT+CIPSEND=10

ACK message
òsldkjflksjdflkjsdlfkjslkdjflskjdfbadcharshereòlaksdòalksdòlkasd
Ai-Thinker Technology Co. Ltd.

ready
 AND STOP TO RESPOND... FREEZE HERE UNTIL I RESET ARDUINO

Please give me some ideas

EDIT: Found in the post above :
bowlman42 wrote:
Solved all my reset problems by connecting the negative (0V) of the 3.3V supply to the ESP-01 to the earth wire of the incoming mains AC supply. Using a Chinese AC-DC 3.3V supply from Ebay. Now switching mains without a problem using a 2A solid state relay.

Could it be a good idea ???

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds

Forum latest

  • No posts to display.