Connecting Arduino UnoR3 and ESP8266?
Posted: Fri Jul 31, 2020 9:01 pm
Hi,
I am using a WeMos UNO R3 board which has a ESP8266 module. I can upload sketches to both the Arduino or the ESP based on jumper settings. However, what I want to do is use my Arduino sketch which has several sensors attached, and send commands to the ESP so that it can send UDP packets.
So, the first thing I think I need to do is connect RX to TX and vice versa from the ESP to the Arduino using appropriate level converters. After this things get fuzzy for me...
I understand I can use AT commands to connect, and send packets and I have done so completely from the ESP however, this must come from the Arduino. So what do I do? How do I send the command to the ESP from a sketch in the ARduino? Is it something like SerialPrint(2) for the pins 0 and 1 on the arduino?
Or, is there a better way to do this? I'm kind of lost at the moment. I cannot use the ESP for all my sensors. It will not work.
Thanks, Tom
I am using a WeMos UNO R3 board which has a ESP8266 module. I can upload sketches to both the Arduino or the ESP based on jumper settings. However, what I want to do is use my Arduino sketch which has several sensors attached, and send commands to the ESP so that it can send UDP packets.
So, the first thing I think I need to do is connect RX to TX and vice versa from the ESP to the Arduino using appropriate level converters. After this things get fuzzy for me...
I understand I can use AT commands to connect, and send packets and I have done so completely from the ESP however, this must come from the Arduino. So what do I do? How do I send the command to the ESP from a sketch in the ARduino? Is it something like SerialPrint(2) for the pins 0 and 1 on the arduino?
Or, is there a better way to do this? I'm kind of lost at the moment. I cannot use the ESP for all my sensors. It will not work.
Thanks, Tom