ESP8266 EasyIoT relay

10 years 11 months ago #1778 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay
Ok guys, today i've realized a new pcb with :

- arduino nano
- ams1117 5v with 100mf cap
- esp-12 with electrodragon smd adapter
- electrodragon logic level shifter
- 4 Channel 5V Relay Module With optocoupler

and the result is always the same : INSTABILITY.
It works but i'm thinking that is not only esp that is instable.
Pheraps is software serial....or really don't know why. I'm a little bit demoralized

I've seen a video where it is an esp-12 that turn on a drill 500 times without crash....

The strange thing is that Esp-12 arrive with an AT software 0.23(???) set at 115200. Tried to low at 9600 with AT+CIOBAUD=9600 and it works but this time DOESN'T SAVE SETTING ???

When i reset module return at 115200... very strange. So i've flashed with 0.9.5.2 and it works... pheraps there's some new firmware after 0.9.5.2 ?
Mr. EasyIoT what do you think about ?

Thanks everybody for ideas.....

Dario

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

10 years 11 months ago - 10 years 11 months ago #1779 by asm7100
Replied by asm7100 on topic ESP8266 EasyIoT relay
Take a look here, then you can build your own LUA firmware
frightanic.com/nodemcu-custom-build/

Lua 0.9.6 is here
github.com/nodemcu/nodemcu-firmware/releases

//
Allan

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

10 years 11 months ago - 10 years 11 months ago #1782 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay
We're talking about AT firmware....in this project I've arduino!

This is my Arduino Serial Debug output :
EasyIoTEsp init
nodeid:1
hwReset
E_START
E_CWMODE
Send cmd:AT+CWMODE=1

AT+CWMODE=1


OK

Response->OK
Send cmd:AT+CWJAP="Serenario","XXXXXXX"

AT+CWJAP="Serenario","XXXXXX"


OK

Response->OK
Send cmd:AT+CWJAP?

AT+CWJAP?

+CWJAP:"Serenario"

OK

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

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

CONNECT

OK

Response->OK


write: command: 0, type: 2, len: 3, sender: 1, crc:14 
Send cmd:AT+CIPSEND=12

AT+CIPSEND=12


OK
> Sending len:12
SEND OK

Response->OK


write: command: 0, type: 2, len: 3, sender: 1, crc:87 
Send cmd:AT+CIPSEND=12

AT+CIPSEND=12

and start ping loop....

It seems to be ok !

and when i start to play with relay :
OK
> Sending len:9
STRANGE CHARS HERE FROM BOOTLOADER
Ai-Thinker Technology Co. Ltd.

ready

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

AT+CIPCLOSE


ERROR

Response->error
Send cmd:AT+CWJAP?

AT+CWJAP?

+CWJAP:"Serenario"

OK

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

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

CONNECT

OK

Response->OK
write: command: 3, type: 2, len: 0, sender: 1, crc:192 
Send cmd:AT+CIPSEND=9

PING
AT+CIPSEND=9


OK
> Sending len:9
STRANGECHARS
SEND OK

Response->OK

+IPD,9:strangechars
Process new message
Receive: command: 3, type: 3, len: 0, sender: 0, crc: 120(358)
Command
PING response


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

PING
AT+CIPSEND=9


OK
> Sending len:9
strchrs
SEND OK
Response->OK


+IPD,10:hstrangeasdasdasd
Process new message
Receive: command: 1, type: 1, len: 1, sender: 0, crc: 134(358)
Receive C_SET
Incoming change for sensor:4, New Switch status: 0
ACK message
write: command: 1, type: 1, len: 1, sender: 1, crc:65 
Send cmd:AT+CIPSEND=10
ACK message

STRANGECHARSSending len:10STRANGECHARS
Ai-Thinker Technology Co. Ltd.

ready

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

AT+CIPCLOSE


ERROR

Response->error
Send cmd:AT+CWJAP?

AT+CWJAP?

+CWJAP:"Serenario"

OK

This look so strange!

EDIT: Relay card is without any lamp attached... only relay card ! no 220v at the moment !!!!!!

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

10 years 11 months ago #1784 by asm7100
Replied by asm7100 on topic ESP8266 EasyIoT relay
What firmware do you have on it??

And the serie speed??

//
Allan

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

10 years 11 months ago #1786 by cdj
Replied by cdj on topic ESP8266 EasyIoT relay
0.9.5.2 with 9600 software serial

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

10 years 11 months ago #1787 by lesjaw
Replied by lesjaw on topic ESP8266 EasyIoT relay
have u try cut the rst pin?

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

Time to create page: 0.220 seconds

Forum latest

  • No posts to display.