RX of esp <---> 6 pin (TX) of arduino via voltage divider (5V-3.3V)
TX of esp <---> 5 pin (RX) of arduino (3.3V)
Vcc of esp <---> 3.3v of arduino
GND of esp <---> GND of arduino
CH_PD of esp <---> 3.3V of arduino via 10k resistor
GPIO0 of esp <---> 3.3V of arduino via 10k resistor
GPIO2 of esp <---> 3.3V of arduino via 10k resistor
Then I upload this code on Arduino:
SoftwareSerial espSerial(5, 6);
const int COM_BAUD = 9600;
void setup() { espSerial.begin(COM_BAUD); Serial.begin(COM_BAUD); Serial.println("Setup done"); }
void loop() { if ( espSerial.available() ) Serial.write( espSerial.read() ); if ( Serial.available() ) espSerial.write( Serial.read() ); }
It prints on AT monitor: Setup done
But when I send AT command it is not even printed on AT monitor.
One more point -> New wifi called "AITHINKER..." is being created and I even connect to it, of course, this does not grant me access to web. But this is a good sign telling that esp is working, both current and voltage are enough for operation.
So it does not respond or recieve AT commands. There is no documentation for correct connection of esp01 as wifi of arduino uno and I will be very happy if you could share some websites using esp01 as wifi of arduino uno correctly.
There are some points which are usually resolve other problems of such kind, but did not resolve mine:
- External power supply with common to arduino ground -> done
- Change RX, TX pins -> done
- Replace esp01 -> having 5 of them, protecting from over voltage
Please, help me.. Losing any hope on this..
P.S. It responds to AT commands when I connect it directly to computer via USB UART cable. The problem comes when I connect it as arduino module.