• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 WROOM ESPDUINO-32 three Noob questions

Q&A Forum › Category: ESP32 › ESP32 WROOM ESPDUINO-32 three Noob questions
0 Vote Up Vote Down
Bernie asked 4 years ago

Hi, Is it possible to interface the Arduino IDE to the Espduino-32 via WiFi, and eliminate the USB cable?
Does the lab explain anywhere how to connect to the ESP32 using UDP or TCP (over WiFi)?
What is the best way to physically connect an Arduino Mega to the ESP32?  Serial? GPIO?
Thanks!

Question Tags: ESP32 Arduino UDP TCP
5 Answers
1 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Bernie.
 
You can program your ESPduino-32 over the air (OTA).
But, for that, first, you need to upload a sketch via USB that allows the board to accept OTA updates. Later, you can upload new code to the board over-the-air without the need for the USB cable.
Search for “ESP32 OTA”.
We have tutorials about that:

  • https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/
  • https://randomnerdtutorials.com/esp32-over-the-air-ota-programming/

 
About the second question, it depends on what kind of data you want to send from one board to the other. Serial communication is usually the way to go.
 
I hope this helps.
Regards,
Sara

1 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

“Does the lab explain anywhere how to connect to the ESP32 using UDP or TCP (over WiFi)?”
How do you want to connect to the ESP32? Using a web server that you can access on your smartphone, for example?

0 Vote Up Vote Down
Bernie answered 4 years ago

Thanks Sara! – Regarding the second question –  It would be the PC that connects to the ESP32.  So some software on the PC would like to send raw data and receive raw data with the ESP32.  I already have a reliable UDP data transfer protocol for Linux, which retransmits the packet if it is dropped.  So I need to be able to send UDP packets from the ESP32, and receive UDP packets OTA without blocking.  I want to avoid the overhead of a web server and http.

Regarding board-to-board communication, again it will be raw data.  The rate will be low – not more than 100 bytes a second.

I would appreciate if you would point me to libraries or examples on Arduino, Github, etc.

1 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
 
We do not cover sending UDP packets in our courses.
 
I found this example for arduino: https://www.arduino.cc/en/Tutorial/WiFiSendReceiveUDPString
Usually, Wi-Fi examples for arduino are also compatible with the ESP32. So, I think that example will work with the ESP32.
There’s also this example: https://gist.github.com/santolucito/4016405f54850f7a216e9e453fe81803
 
I hope this helps.
Regards,
Sara
 
 

1 Vote Up Vote Down
Steve Mercer answered 4 years ago

There are many examples out there. As UDP is part of the base WiFi module Espressif has their own examples. There are also instructable’s and stack overflow’s.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.