Arduino Due with ESP8266 simple AT command -
i have arduino due , want connect esp8266 board , test connection simple "at" command on serial command line. have written lot on internet there many different answers on topic , none of them solves issue directly.
i set eps8266 correctly 2 power cables. comming different power sources, there should not problem power esp board.
i think problems somewhere in different baud rates. if choose 9600 baud connection arduino pc via usb , 74880 connection esp board due @ least error messages correctly when esp board has restart (when force it).
ets jan 8 2013,rst cause:1, boot mode:(3,6)
load 0x40100000, len 1396, room 16
tail 4 chksum 0x89 load 0x3ffe8000, len 776, room 4
tail 4 chksum 0xe8 load 0x3ffe8308, len 540, room 4
tail 8 chksum 0xc0 csum 0xc02nd boot version : 1.4(b1)
spi speed : 40mhz
spi mod
le:52mn
the code following:
//always high int ch_pd_8266 = 53; void setup() { serial.begin(9600); serial3.begin(74880); //--> @ least error code shwon correctly // serial3.begin(115200); //error code gibberish pinmode(ch_pd_8266, output); digitalwrite(ch_pd_8266, high); } void loop() { while (serial.available() > 0) { char = serial.read(); serial3.write(a); //write see if comes perfect //serial.write(a); } } void serialevent3() { while (serial3.available() > 0) { char = serial3.read(); // serial.write('a'); serial.write(a); } }
any appreciated.
that isn't error. it's boot message.
the @ firmware using different baud rate, bootloader.
should try different baud rates , test simple at
command.
when find right baud rate, boot message garbage, @ commands work.
Comments
Post a Comment