Adding a Wifi connection to Mega ADK with a ESP-01

Hello,
I am sorry for my bad Engels.
I have here a Arduino Mega ADK with a ESP-01 with a adapter.
I looked on the internet for examples and tried so many and nothing works.
I connect VCC to +5V GND to GND and RX to pin 19 and TX to pin 18.
Maybe someone has a link with a .ino file which is going to work.
Or is this not possible.
Best Regards,
Mans

Depending on how the adapter labels TX and RX the connections may be backward. You also need some code on the ESP-01 to talk to.

Remove it now, at once, immediately, and straight away. ESP-01 is strictly a 3.3v device and you may have already destroyed it.
The ESP8266 is not famously frugal in its power requirements so I would doubt Mega's 3.3v pin is reliably up to the job. However, there are instances around where people have programmed them off a Uno.

@Nick_Pyner look at the photo. it has 5 V conversion

https://github.com/JAndrassy/WiFiEspAT?tab=readme-ov-file#getting-started

I missed the photo but now realise OP mentioned three devices. I see nothing that tells me it's a 5v kosher device, but I'll take your word for it.

Hello Juraj,
I looked into GitHub - JAndrassy/WiFiEspAT: Arduino networking library. Standard Arduino WiFi networking API over ESP8266 or ESP32 AT commands. this is too diificult for me.
I am 75 years old with Long Covid and I look for a easier solution.
Best Regards,
Mans

I find the AT command interface to be a kludge and not worth the trouble (personal bias YMMV :grinning_face:). I write the WiFi code to run on the ESP-01 and use the serial link to pass data back and forth.

This does require loading code on the ESP-01, but this is the same code you would have written on the MEGA. There are adapters to upload code on the ESP-01 or you can do it with a breadboard and a USB-serial adapter. I recommend a dedicated adapter if you are going to do it often.

Depending on why you are using the MEGA it may be easier to use an ESP8266 or ESP32 module with more I/O than the ESP-01 and do everything on the ESP. If you only need a few I/O pins just the ESP-01 may be sufficient.

I quit.
To difficult for me.
Regards,
Mans

What exactly are you trying to do? Maybe we can help.

That's the trouble with you young guys. You give up too easily. If you can just elaborate on what you want, it may turn out that your first, last, and only mistake was to read that stuff by JAndrassy....

Hallo Nick,
I am 75 years old.
Regards,
Mans

Hallo,
I made this clock : Pong Clock | Nick's LED Projects
And I want to add the Internet time through a ESP-01
Regards,
Mans

That makes you ten years younger than me, so my comment still stands. In the meantime you might have a Google at
Rui Santos ntp Random Nerd
I don't claim great expertise in this arena, but it I am working on a similar project, doing it as Oldcurmudgeon proposes. Indeed, I think it was he who put me onto this in the first place. You might also find this thread useful
Can't get ESP-01 to start. Re-reading post#9 would be a good idea and I think my comment about JAndrassy might be rather prophetic.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.