Hey guys,
I am doing this cool project with the new ESP8266 wifi module. The idea is that I want to make an insole for people with balance problems, the insole has 5 analogue pressure sensors, the data of these sensors have to be send over a wifi network to an online interface. So I thought it would be fun to work with this new ESP8266 wifi module, and I can tell you: it isn't. The module is giving me headaches.
So I was working with my Arduino Uno, and after some time I found out that you have to plug it in this way to configure the ESP:
TX of the ESP ---> TX of the Uno
RX of the ESP ---> RX of the Uno
Okay great, I could configure the chip. But this way I couldn't load data on my arduino, to actually set in operating modus. So when I turned the connections around (TX to RX and RX to TX), I couldn't use my serial port anymore for debugging, which is horrible. And I couldn't get it to work.
There is a way I can switch easily between the modes with the Software Serial, Hardware Serial and two AND-ports. Demonstrated in the ugly picture below:
But I was thinking, it would be much easier to do it with the arduino due, as it has 4 different serial inputs. Great, so I bought me one and it doesn't work.
I've been used to working with the Uno for basic stuff, but I don't understand the serial ports of the due yet. I've read in this forum post: Serial Communication not working using the Arduino Due - Everything ESP8266, that you have to bridge the TX0 and RX0 of the due to another serial pairs, because the TX0 and the RX0 are the "echo" of the communication. Could someone explain me what I should do to connect the ESP to the serial pairs in two ways?
On the one side I want the TX of the ESP connected to one TX of the Due and to one RX of the Due, and the RX of the ESP connected to one RX of the Due and one TX of the Due.
This way I should be able to use the Serial Monitor while I am coding the ESP.
Greetings.