Hi!
So I bought an ESP8266 ESP-12E UART WIFI SHIELD (which is the moer info $ version) I successfully installed it in the arduino which is the rx to rx and tx to tx. Sadly I can't figure out how to do serial communication using the serial software :((
Tried using the SoftwareSerial s(0,1) but nothing happened, I cant figure out which pin should I put it :((
Google is usually helpful... How to connect Wi-Fi shield ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with Arduino - Arduino Stack Exchange
Hello,
I tried dr. google:
Arduino UNO + ESP8266 ESP-12E UART WIFI Shield | by Attila Varga | Medium
It seems you have to program the ESP first so you can send serial data to the thing.
SoftwareSerial is not necessary as pin 0 and 1 are hardware serial output ports that also send serial data to your USB to serial convertor 16U2 installed on your UNO board.
Best Regards,
Johi
Take a look at
drmpf:
Take a look at
https://www.instructables.com/ESP8266-ESP-12E-UART-Wireless-WIFI-Shield-TTL-Conv/
I think this is the only solution since the transistors is wrong :< unfortunately I have no knowledge when it comes to soldering and I'm new to Arduino, Maybe I'll bought a shield again that is not clone, Thank you!!
blh64:
Google is usually helpful... How to connect Wi-Fi shield ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with Arduino - Arduino Stack Exchange
Thank you! The wifi shield is working properly, I uploaded the helloserver and it is working properly but still can't send data from arduino uno to the esp8266 :<
JOHI:
Hello,
I tried dr. google:
Arduino UNO + ESP8266 ESP-12E UART WIFI Shield | by Attila Varga | Medium
It seems you have to program the ESP first so you can send serial data to the thing.
SoftwareSerial is not necessary as pin 0 and 1 are hardware serial output ports that also send serial data to your USB to serial convertor 16U2 installed on your UNO board.
Best Regards,
Johi
Followed all the steps but still didn't work for me :< Thanks for the help though!
So how do you have it connected now ? What is the exact board you are using ? (please provide link) There are many versions of the ESP8266 12-E as they are used in development boards like the nodeMCU.
If you want to send data from the ESP to the UNO, you connect TX (esp) -> RX (Uno) & RX (esp) <- Voltage-divider <- TX (uno), but here is where it sometimes doesn't quite work the way you expect. Some of the Dev boards don't work receiving through the voltage divider, but only some ! Stay safe first use the voltage divider !!
Receiving on the Uno is a different matter, you should try first with a very basic sketch. Upload
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.print("A");
delay(1000);
Serial.print("B");
delay(1000);
}
to the ESP, and upload
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
if (Serial.available()) {
char c = Serial.read();
if (c == 'A') digitalWrite(13, HIGH);
if (c == 'B') digitalWrite(13, LOW);
}
}
to the Uno, and your ESP should be remotely 'blink' the Uno's built in led.
Deva_Rishi:
So how do you have it connected now ? What is the exact board you are using ? (please provide link) There are many versions of the ESP8266 12-E as they are used in development boards like the nodeMCU.
If you want to send data from the ESP to the UNO, you connect TX (esp) -> RX (Uno) & RX (esp) <- Voltage-divider <- TX (uno), but here is where it sometimes doesn't quite work the way you expect. Some of the Dev boards don't work receiving through the voltage divider, but only some ! Stay safe first use the voltage divider !!
Receiving on the Uno is a different matter, you should try first with a very basic sketch. Uploadvoid setup() {
Serial.begin(115200);
}
void loop() {
Serial.print("A");
delay(1000);
Serial.print("B");
delay(1000);
}
to the ESP, and upload
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
if (Serial.available()) {
char c = Serial.read();
if (c == 'A') digitalWrite(13, HIGH);
if (c == 'B') digitalWrite(13, LOW);
}
}
to the Uno, and your ESP should be remotely 'blink' the Uno's built in led.
OMG THANK YOU SO MUCH IT IS WORKING YOU ARE A LIFE SAVER. I REALLY MEAN IT THANK YOU SO MUCH IM CRYING RN CAUSE I CAN'T SLEEP FOR 3 DAYS STRAIGHT RESEARCHING FOR THIS.
I bought the ESP8266 ESP12-E UART WIFI SHIELD which is the moar info $ tech version (clone) https://shopee.ph/product/299014880/5048600547?smtt=0.396683011-1618152297.9?smtt=0.396683011-1618152297.9
I remove the pin (0,1) from the shield and out wires to the debug port of the esp which works because it can run the hello server
Here is the vid I followed https://youtu.be/w-6_3dBLUaY
I followed what you said and it is now working the lights are blinking and I'm crying thank you so much
P.S. I don't know how to upload the photo since I'm new here in this forum and whenever I click the attachments it gives me a link to put
Deva_Rishi:
So how do you have it connected now ? What is the exact board you are using ? (please provide link) There are many versions of the ESP8266 12-E as they are used in development boards like the nodeMCU.
If you want to send data from the ESP to the UNO, you connect TX (esp) -> RX (Uno) & RX (esp) <- Voltage-divider <- TX (uno), but here is where it sometimes doesn't quite work the way you expect. Some of the Dev boards don't work receiving through the voltage divider, but only some ! Stay safe first use the voltage divider !!
Receiving on the Uno is a different matter, you should try first with a very basic sketch. Uploadvoid setup() {
Serial.begin(115200);
}
void loop() {
Serial.print("A");
delay(1000);
Serial.print("B");
delay(1000);
}
to the ESP, and upload
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
if (Serial.available()) {
char c = Serial.read();
if (c == 'A') digitalWrite(13, HIGH);
if (c == 'B') digitalWrite(13, LOW);
}
}
to the Uno, and your ESP should be remotely 'blink' the Uno's built in led.
What if it is from arduino uno to the wifi shield?
What if it is from arduino uno to the wifi shield?
The same thing should apply with reverse uploading the sketches, though i am not sure which pin the internal led on the esp is connected to (if there is one)
hmm so this is the one. When connecting the RX(ESP) <- Uno (TX) do not omit the voltage divider. The ESP is not 5v tolerant ! You can connect an LED + 470R resistor to any pin and simply define that as the LED output pin.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.