Post topics, source code that relate to the Arduino Platform

User avatar
By nrijkers
#12693 With the same sketch, I only get a AT+RST on the monitor..but nothing happens.
CH_PD is 3v3, Arduino is a Nano

connections should be OK. If I use a bareminimum sketch, the module responds to my manual commands.

I suspect an issue with the software serial,
dbgSerial.println("ESP8266 Demo"); this doesn't show in the monitor, and it is written before the AT+RST command.

I connected the ESP tx/rx to pin 1 and 2
What should I do with the softwareserial?
User avatar
By jtheires@netins.net
#13305 nrijkers,
I had the same issue using hardware serial tx/rx pins on Nano connected to my 8266 module.
After exhausting all forums I could find on the topic, I was unable to get this configuration to work, so I changed to SoftwareSerial (I'm using Nano pins D2 and D3 for rx and tx, respectively).
My 3.3v 8266 module is connected directly to the 5v Nano (rx to tx, tx to rx)...no level shifters between them (I tried this too, but to no avail).
I can now talk to my 8266 module using AT commands.
However, I'm attempting to send a single data point to a thingspeak channel I set up for this purpose, and keep getting and "ERROR" response (from thingspeak?) after I send the GET command.
When I send an equivalent command from a web browser (https://api.thingspeak.com/update?key=<YOUR_KEY_HERE&field1=0), the data is sent to thingspeak perfectly.
Many posts I have read about SoftwareSerial suggest using pins 10 and 11, but for me these are being used for something else, so I selected 2 & 3.
Hope this helps.
User avatar
By Creamers
#13469 Any change there are people willing to share an super simple working thingspeak example using the pro mini or nano?
Updated the esp to the latest firmware and using the serial directly work 100% entering the commands manually. However, any of the dozen example don't seem to work like expected or are buggy and not stable.
User avatar
By impeham
#14392 I got an ESP8266 module and after upgrading its firmware with the arduino IDE (burn bootloader) I connected it successfully to an arduino uno 3 using the following sketch:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(2,3);

void setup() {
// put your setup code here, to run once:
mySerial.begin(115200);
Serial.begin(115200);
}

void loop() {
// put your main code here, to run repeatedly:
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}

I am able to send AT commands from serial successfully through the arduino to the module and get the output.

When I try to do the same with an arduino nano, connecting it to pins D2 and D3 with the same sketch, it doesn't work. I am using the same power for the wifi module (external from the arduino's) and just move the 2 RX,TX pins from the uno to the nano.

When I try to send any command, the serial light in the nano blinks but not the ESP's one. It's like there is a communication problem between them.

I tried to upload the sketch to the nano with different speeds (9600 and 19200) and still the same behavior. If I power off/power on the ESP while the arduino serial monitor is open, I get funny looking characters and a short blue led blink and that's it.

Any ideas?