Post topics, source code that relate to the Arduino Platform

User avatar
By alonewolfx2
#8931 i say one more time, arduino nanos 3.3v isnt enaugh for esp8266. i am using arduino nano+ ams1117 3.3v
wiring something like this. and arduino nano's default software serial not working correctly with esp8266.
/////////////////////////////////
// HW Serial Esp8266 Led Test ///
// Author M.Bozkurt ///
// http://www.mbozkurt.com ///
// esp rx- arduino pin1 ///
// esp tx- arduino pin0 ///
// leds- arduino pin8-13 ///
//esp gnd-arduino gnd ///
//esp vcc-ams1117 3.3vpin//
/////////////////////////////////
You do not have the required permissions to view the files attached to this post.
User avatar
By gadigr
#9078
cyberswordman wrote:Maybe I got it wrong, and I'm just pointing out an obvious thing, but keep in mind that in every case you should have only a single GND connection.
What I mean is that if I got it right, you should have connected the VCC from FTDI to the VCC of the ESP.
The GND form the FTDI to the GND of ESP.
TX and RX from ESP to RX and TX on arduino.
Now you are missing the common GND from Arduino to whatever you rpefer (FTDI or ESP, the GNDs should already been connected between the two)


Damn it, that was the problem... the GND..

but now it acting kinda funky look: it still writes gibbrish after its "ready"

Image
User avatar
By caosaquatico
#31484 #include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

Serial.println("Esp8266 ");

// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("AT");
}

void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}