Hi, guys. As I mention in topic, my arduino can communicate with serial monitor with bareminimum code. But when I upload code with same baud rate serial monitor 115200 RX,TX=2,3 , I can't get response from esp8266. Serial.println on 9600 baudrate say 0 when I use esp8266.available(). Is that error come from the failure of the esp8266 bootloader that can't communicate via softwareserial?
Welcome to the forum.
Can you show the sketch between code-tags.
This is an introduction to this forum and also writes about the code-tags: How to get the best out of this forum
What are you trying to do ? Using SoftwareSerial on the default RX,TX pins for the Serial Monitor ? Do you think that pin 2 and 3 are for the Serial Monitor ? I don't understand it.
@ramzie, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project See About the Installation & Troubleshooting category.
Take a deep breath, calm down and break your paraphernalia up.
Explain how your parts are connected, show the code you have, and see if you can explain the problem without panicking.
You’ll get there. Enjoy.
Again, given that the actual majority of posts to that forum are wrongly posted, surely it appears it seriously needs to be meaningfully re-named. People are clearly not inclined to read the About the Installation & Troubleshooting category description any more than how to use this forum.
I have suggested "Installing/ Troubleshooting the Arduino IDE", because according to the "about", that is what is is intended to be, but it needs to be up front.
But even though posts have so frequently to be moved, it is apparently a waste of time suggesting it be corrected, because the forum maintainers have no intention of doing anything, do they?
I know. I have been thinking about this but I haven't figured it out yet.
Remove the word "troubleshooting". About 99% is about troubleshooting on this forum.
@ramzie i don't think softwareserial works at 115200 baud. Certainly not on an UNO, but i dont know about an esp8266.
I don't think software serial works at all on an ESP8266, the interrupts that drive the WiFi part mess up the timings.
@ramzie
Are you aware of
Serial.swap();
If you use that you get the hardware serial port on GPIO13 (Rx) and GPIO15 (Tx). If you do this you get a perfectly good hardware serial port but at the expense of losing the USB port.
Not that you must not allow GPIO15 to be pulled high at boot because if you do it won't boot. I solve this with a 3k3 resistor to 0V.
There is also TxD1 on GPIO2, but you cannot access the corresponding RxD1, making it a Tx only serial port. I've never used this one.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.