Post topics, source code that relate to the Arduino Platform

User avatar
By blacai
#13668
Suxsem wrote:How is the esp8266 connected to the Arduino? How do you shift from 5v to 3.3v?

How do you capture the output posted in the first post?


I use the following wiring(for softwareserial):
Image

Or the same but pins 1-0 for rx--tx when directly.

I capture the output just by running the sketch and openning the serial monitor with the selected baud rate(19200 in my case). Then it just start running...

I didn't down the 5v to 3.3 for rx-tx. For the + I connect it to the 3.3v from arduino.
User avatar
By Suxsem
#13687 1) you must shift the Arduino tx to 3.3v or you will damage the esp8266
2) the 3.3v pin of arduino can supply 150ma max...The esp8266 can drain up to 300ma.... you will damage the Arduino. Use an external power or a voltage regulator
3) how can you read the output if it's through software serial?
User avatar
By blacai
#13710
Suxsem wrote:1) you must shift the Arduino tx to 3.3v or you will damage the esp8266
2) the 3.3v pin of arduino can supply 150ma max...The esp8266 can drain up to 300ma.... you will damage the Arduino. Use an external power or a voltage regulator
3) how can you read the output if it's through software serial?

Ok, thanks for the answer. I will try modifying the wiring the way you say.

The output is captured by reading the softwareserial (esp8266 is the name in my sketch) and printing it into the Serial. I don't know if this is what you mean.

Check the sendData function, maybe I explain it not clear or I am wrong with what I do.