ESP8266MOD does not respond to my UNO (Custom board) AT+RST
Posted: Sun Jan 01, 2017 2:27 pm
This is very first project in UNO board and ESP module . I have some experience with 8051 uP. Request some guidance in addressing my issue.
Objective:
To connect ESP8266MOD to my wifi network and send a TCP message to my HOME_SERVER whenever required.
Hardware Module: UNO (Induino R5 Arduino R3 USB Clone Board) --> level shifter --> ESP8266MOD
As a first step, I am trying to send AT+RST command from UNO to connected ESP. But there is no response from ESP. However, i am able to notice a LED blink from ESP, whenever there is TXD operation in my UNO.
Request some guidance.
Hardware Connection:
UNO - Uses USB Power supply from laptop
ESP8266MOD- Uses 3 1.5V AA Batteries
UART Connection -- LS module ([url][/url])
Uno TXD -- rxi(ls) -- rxo (LS)-- rxd esp
Uno rxd -- txo (LS) -- txo(LS)-- TXD esp
ESP8266MOD Settings:
CH_PD ->> 3.3V
GPIO2 ->> 3.3V
GPIO0 ->> GND
GPIO15->> GND
UNO Code:
[Uno board]: http://www.simplelabs.co.in/content/induino-r5-arduino-r3-usb-clone-board
[ execution Ouput]: https://drive.google.com/open?id=0B60pejPe6yiSelVtQmV0dGI5M00
[Levelshifter]: https://i.stack.imgur.com/qACko.jpg
[Esp8266]:https://i.stack.imgur.com/F9Wzg.jpg
Objective:
To connect ESP8266MOD to my wifi network and send a TCP message to my HOME_SERVER whenever required.
Hardware Module: UNO (Induino R5 Arduino R3 USB Clone Board) --> level shifter --> ESP8266MOD
As a first step, I am trying to send AT+RST command from UNO to connected ESP. But there is no response from ESP. However, i am able to notice a LED blink from ESP, whenever there is TXD operation in my UNO.
Request some guidance.
Hardware Connection:
UNO - Uses USB Power supply from laptop
ESP8266MOD- Uses 3 1.5V AA Batteries
UART Connection -- LS module ([url][/url])
Uno TXD -- rxi(ls) -- rxo (LS)-- rxd esp
Uno rxd -- txo (LS) -- txo(LS)-- TXD esp
ESP8266MOD Settings:
CH_PD ->> 3.3V
GPIO2 ->> 3.3V
GPIO0 ->> GND
GPIO15->> GND
UNO Code:
Code: Select all
#include <SoftwareSerial.h>
const byte rxPin = 2; // Wire this to Tx Pin of ESP8266
const byte txPin = 3; // Wire this to Rx Pin of ESP8266
// We'll use a software serial interface to connect to ESP8266
SoftwareSerial ESP8266 (rxPin, txPin);
void setup() {
Serial.begin(9600);
ESP8266.begin(9600); // Change this to the baudrate used by ESP8266
delay(3000); // Let the module self-initialize
}
void loop() {
Serial.println("Sending an AT command...");
delay(3000);
ESP8266.println("AT+RST");
delay(30);
String response = "";
while(ESP8266.available()) {
char c = ESP8266.read();
response+=c;
// Serial.print(c);
}
if(response != ""){
Serial.println(response);
}else{
Serial.println("EMpty\r\n");
}
}
[Uno board]: http://www.simplelabs.co.in/content/induino-r5-arduino-r3-usb-clone-board
[ execution Ouput]: https://drive.google.com/open?id=0B60pejPe6yiSelVtQmV0dGI5M00
[Levelshifter]: https://i.stack.imgur.com/qACko.jpg
[Esp8266]:https://i.stack.imgur.com/F9Wzg.jpg