I've been making great progress on my pump room monitoring project, having used an ethernet Shield so far.
Although ethernet connectivity is easy in the pumproo, I'm going to run out of cables and need to add a switch for more devices.
The other alternative (likely a bit cheaper and with an opportunity to learn), is to switch the pump monitor to WiFi.
I found an ESP-01 in my drawer, along with the 5V adapter. I can find it on Wifi, but but no matter how hard I tried with the sketches available (different UARTs, all baud rates, etc) I have not been able to get the Mega to talk to the 01.
Various posts suggest not to bother with the 01.
I have some spare ESP8266 NodeMCU CP2102 ESP-12E. Can I use these instead? Any tips and tricks?
trilife:
I found an ESP-01 in my drawer, along with the 5V adapter. I can find it on Wifi, but but no matter how hard I tried with the sketches available (different UARTs, all baud rates, etc) I have not been able to get the Mega to talk to the 01.
As you have not posted your program it is a bit difficult to see what might be wrong with it.
Have you a voltage converter (e.g. a voltage divider with a couple of resistors) to drop the Mega's 5v Tx to the ESP8266's 3.3v Rx?
74800 is a very strange baud rate, the usual is 76800.
Make a pencil drawing showing how you have everything connected and post a photo of the drawing. See this Simple Image Posting Guide
A link to the datasheet for the voltage adapter would also be useful.
There is a lot of useful info (and code) about using an ESP8266-01 on the ESP8266 Forum and there is a very useful book by Neil Kolban that you can download.
AT firmware’s default is 115200 baud.
74800 is boot log for esp8266 with the usual 26 MHz crystal. it is because the esp8266 was developed for 40 MHz crystal with that it has has boot log at 115200 baud.
Robin2:
74800 is a very strange baud rate, the usual is 76800.
Make a pencil drawing showing how you have everything connected and post a photo of the drawing. See this Simple Image Posting Guide
A link to the datasheet for the voltage adapter would also be useful.
There is a lot of useful info (and code) about using an ESP8266-01 on the ESP8266 Forum and there is a very useful book by Neil Kolban that you can download.
…R
Hi Robin, here’s the sketch. Only 4 wires. I made sure that Rx/Tx goes to Tx/Rx, all pairs on the Mega, tried all the Baudrates available from the serial monitor drop down, and the 74800 odd rate.
@Juraj, I had also tried your WiFiEspAT library before. No dice.
I’m thinking my unit is busted.
My question was and is though:
I have some spare ESP8266 NodeMCU CP2102 ESP-12E. Can I use these instead? Any tips and tricks?
I don’t see any program. If you have posted a picture of the program then please don’t. Just copy and paste the program and use the code button </> so the code looks like this
If the picture is something other than code then please make it visible in your Post. I gave you a link to the instructions.
Robin2:
I don’t see any program. If you have posted a picture of the program then please don’t. Just copy and paste the program and use the code button </> so the code looks like this
If the picture is something other than code then please make it visible in your Post. I gave you a link to the instructions.
…R
I see the sketch in comment #3. it is in code-tags
Juraj:
I see the sketch in comment #3. it is in code-tags
That may indeed be the correct program but Reply #9 clearly says "here's the sketch." and it does not say "the sketch is in Reply #3"
Of course this may be confusion caused by the nonsensical decision of the Arduino folks to use "sketch" when they mean "program" and perhaps Reply #9 was using the word "sketch" to mean drawing.
On that interpretation this is the image from Reply #9