Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with my arduino nano Atmega328 and my esp8266 01 module. I have connected the esp8266 on my arduino board with out ftdi.

I have made the following connection: I an using a 5V Arduino Nano which of course is 5V. The Esp8266 is a 3.3v device and so I am using a voltage divider to bring the Arduinos 5V down to 3.3v. If you are using a 3.3v Arduino then you do not need the voltage divider.

The wiring is very similar to the FTDI. Arduino pin 3 to voltage divider and then to ESP8266 RX Arduino pin 2 to ESP8266 TX Arduino GND to ESP8266 GND Pull CH_PD HIGH with a 10K resistor to +3.3v +3.3V to vcc

You only need the voltage divider on the Arduino TX pin. The 5V Arduino will read 3.3v as HIGH so you can connect the ESP8266 TX pin directly to the Arduino RX pin.

The problem i had and i cant handle is that when i start up the Arduino tx,rx leds works continuously so i cant have access to my serial monitor of Arduino Ide. So with that problem i cant send or receive any command to the ide. Also when i try to upload my program on Arduino i must have disconnected the esp. If i don t i can t upload it.

Any ideas guys? I would be gratefull my circuit

**I also try to implement code with AltSoftSerial but i have libraries issues my laptop doesnot recognize it. ( i download it and i put it in the same folder with my code ) ** I ve also linked a picture with my circuit schematic .

  #include <SoftwareSerial.h>

    SoftwareSerial ESPserial(2, 3); // RX | TX
    void setup() 
    {    Serial.begin(9600);     // communication with the host         computer

     // Start the software serial for communication with the ESP8266
     ESPserial.begin(9600);  

     Serial.println("");
     Serial.println("Remember to to set Both NL & CR in the serial monitor.");
     Serial.println("Ready");
     Serial.println("");}

     void loop() 
      {
      // listen for communication from the ESP8266 and then write it to the serial monitor
       if ( ESPserial.available() )   {  Serial.write( ESPserial.read();}  / / listen for user input and send it to the ESP8266
      if ( Serial.available() )       {  ESPserial.write( Serial.read()  );  }}
share|improve this question
    
Well, what did you expect? It seems you're using the same serial port for the PC and the ESP-01. Isnt SoftwareSerial a built-in library? – TisteAndii Mar 20 at 14:34
    
Yes. Is there anyway to resovle this? I was able to found some solutions using an extra software serial but nothing happened. I am still unable to resolve this. – Μάριος Μιχαήλ Mar 20 at 16:07
    
Post your code. – TisteAndii Mar 20 at 16:17
    
i have tried different codes but the basic one is the one below : – Μάριος Μιχαήλ Mar 20 at 17:02
    
You say the TX and RX leds onboard blink whenever you send stuff from the serial monitor? Did u set the monitor to "Both NL & CR"? How are u powering the ESP? – TisteAndii Mar 20 at 19:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.