-->
Page 1 of 1

communicating over serial between Arduino and ESP

PostPosted: Thu Nov 30, 2017 10:09 am
by Mai Ehab
Hello ESP8266 Forum`s member :
i having a big project which need Arduino to take reads from sensors and a Wi-Fi to send these data to database
after having the code done in mega and in ESP8266 (the Wi-Fi module ) i don`t know how to make them communicating so ..
Is it possible to read data from Arduino Mega over serial then manipulating data sent via ESP`s code ?
And if it is posiiable can someone show me small examples please ?

Re: communicating over serial between Arduino and ESP

PostPosted: Mon Dec 04, 2017 5:56 pm
by Mai Ehab
Can someone help please

Re: communicating over serial between Arduino and ESP

PostPosted: Thu Jan 18, 2018 4:16 pm
by weswitt
The Arduino is 5v while the ESP8266 is 3v3 so you'll need a level shifter to make it work.

Re: communicating over serial between Arduino and ESP

PostPosted: Sat Jun 02, 2018 1:15 am
by majidmp97
hello
in 8266
for read serial and put it to string
Code: Select allString resive;

void setup() {

Serial.begin(115200);

}

void loop() {

while(Serial.available()) {

resive= Serial.readString();// read the incoming data as string

Serial.println(resive); // print data to serial esp8266 for test
}
}