Arduino and ESP32 Serial Communication || UART Communication

  Рет қаралды 119,964

Hacks360

Hacks360

Күн бұрын

In this video tutorial, I will show How to Exchange Data between Arduino and ESP32 using Serial Communication?
Serial communication is a process of data transmission sequentially through a communication channel or bus.
At least one serial pin is available in every Arduino and ESP board. The pins are named TX and RX pins. TX stands for transmitting, and RX stands for receiving.
For detailed steps and Arduino code, visit www.programmin...
Serial communication is also known as UART Communication. The Arduino UART Communication and ESP32 UART Communication work together through the operation voltage are not the same.
To establish serial communication between Arduino and ESP32, we can cross-connect the TX and RX pins of Arduino with ESP32.
Overview:
The video demonstrates serial communication between Arduino and ESP32, showcasing how to establish a connection and exchange data. It covers ESP32 and Arduino Uno, highlighting their compatibility for serial communication. The tutorial focuses explicitly on UART communication with ESP32, including ESP8266, and Arduino, illustrating how to transmit and receive data through the serial interface. It explores the UART communication protocol, explaining its significance in establishing reliable data transfer between devices. The video also touches upon nodemcu and Arduino UNO serial communication, showcasing their interoperability. Additionally, it provides an overview of ESP32, discussing its features and applications. The tutorial offers a comprehensive guide to implementing UART-based serial communication between Arduino and ESP32.
#esp32 #arduino

Пікірлер: 154
@nataliealonso2381
@nataliealonso2381 Жыл бұрын
excellent tutorial thank you very much! how would be the code to connect two ESP32? via serial communication
@Hacks360
@Hacks360 Жыл бұрын
The code will be similar to the given an example here: www.programmingboss.com/2021/04/esp32-arduino-serial-communication-with-code.html
@payalpal4386
@payalpal4386 Жыл бұрын
@@Hacks360 In my case, the ESP32 module , at first showed result which were mentioned in its own loop but failed to receive the data from UNO.
@beatricemiha
@beatricemiha Ай бұрын
Hi, I enjoyed this tutorial and followed it closely. For some reason I am getting question marks in the serial monitor of the esp though even though I have checked the connections and the baud rates. Do you have any ideas why? Thank you for your help.
@Hacks360
@Hacks360 Ай бұрын
Please check the connections to see whether the wires are good. Also, use common ground. It's clearly a hardware issue. For further discussion, please feel free to comment on the blog. Thanks. www.programmingboss.com/2023/01/serial-communication-between-arduino-and-esp32-CAM-UART-data-communication.html
@GentiGace
@GentiGace 2 жыл бұрын
Very useful video but can you tell me the inverse from esp32 to arduino. thank you.
@Hacks360
@Hacks360 2 жыл бұрын
In the description, there is a link. The process is pretty same. The connection also same.
@carlosmedrano9190
@carlosmedrano9190 Жыл бұрын
its secure to connect directly the TX of ESP32 to the RX of Arduino, have problem with the voltage?
@Hacks360
@Hacks360 Жыл бұрын
No, you are right. It's unsafe to directly connect the TX of ESP32 to the RX of Arduino. It would be best if you stepped down the voltage using a voltage divider.
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
​@@Hacks360​ u said tis safe if they share a common GND tho?
@Hacks360
@Hacks360 Жыл бұрын
@@Mystical-TEDDY_ You need a common GND between Arduino and ESP32.
@kogames3191
@kogames3191 Ай бұрын
what if i power the arduino with 12v to the vin pin wotn that fry the esp32 since the esp32 can only handle 6v?
@Hacks360
@Hacks360 Ай бұрын
Please check the link in the description. I have shown how to use a voltage divider to decrease the communication voltage from 5V to 3.3V. Answering your question, Arduino GPIO outputs 5v whatever voltage you apply in the VIN pin, as there is a 5v voltage regulator.
@kogames3191
@kogames3191 Ай бұрын
@@Hacks360 hey man thanks for telling me but i already found out that there is no need for a voltage divider since when you suply more thn 5 volts to the vin pin of the arduino the voltage will get stepped down to 5v wich means you can then just put the vin pin from the esp32 in the 5v pin of the arduino and connect the grounds ive done this and it works perfectly
@Hacks360
@Hacks360 Ай бұрын
@@kogames3191 Happy to hear that.
@ChathuYasas
@ChathuYasas 8 ай бұрын
There were errors in serial data that I get many times also in my projects. So I think this is a great tutorial.
@Hacks360
@Hacks360 8 ай бұрын
Happy to help you with serial communication. Thanks for your comment.
@بيانمحمد-س3ط
@بيانمحمد-س3ط 5 ай бұрын
I followed the tutorial but output in esp32 cam print only ;"Message Received: " without the message should recevied from arduino . What is the problem ? Please help me 😢😢
@Hacks360
@Hacks360 5 ай бұрын
Please check the connection again. For more details and codes, please visit the website.
@ReanNetwork2024
@ReanNetwork2024 Ай бұрын
After two days of figuring out how to send serial communication from esp to Arduino, finally I found a solution. Thanks
@taunaudaunau4844
@taunaudaunau4844 6 ай бұрын
hey i followed all the steps but in serial monitor im getting "��� �0��2��0���������������0�����D2�0�d2d6(��0�� Lpd6�(�\t�wD:�J�8�����0�D2`��`7�����3� d6���2c��2������Lpd2��d7�" such output on the esp32 end any way to fix that ?
@Hacks360
@Hacks360 6 ай бұрын
Please check your baud rate.
@taunaudaunau4844
@taunaudaunau4844 6 ай бұрын
@@Hacks360 i did keep it 115200 yet it gives me ���f�8���(��������������������������������������������������
@kangkamal8220
@kangkamal8220 3 жыл бұрын
it's safe for esp? cause digital signal from arduino has 5v and working device for esp is 3.3v
@Hacks360
@Hacks360 3 жыл бұрын
For safety, you can use resistor to drop the signal voltage level. But it's working fine if we use a common GND between Arduino and ESP32. Thanks for your comment.
@kangkamal8220
@kangkamal8220 3 жыл бұрын
@@Hacks360 ahh.. Thanks.. :D
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
@@Hacks360 what OHMS resistor should I use?
@Hacks360
@Hacks360 Жыл бұрын
@@Mystical-TEDDY_ You can use 2:1 ratio resistor. Like 10k and 20k resistors for the voltage divider. Please visit: www.programmingboss.com/2021/04/esp32-arduino-serial-communication-with-code.html
@devangpandit3
@devangpandit3 6 ай бұрын
Uploading is done but we are not getting "Hello boss" at esp32 !! Side... How to fix this?
@Hacks360
@Hacks360 6 ай бұрын
It should work. Please check the board and check the connection. Don't forget to use common ground between Arduino and ESP32.
@devangpandit3
@devangpandit3 6 ай бұрын
@Hacks360 yeah it's done !! Thanks a lot 😄
@Hacks360
@Hacks360 6 ай бұрын
You are most welcome. Subscribe and stay connected.
@sagunrai8689
@sagunrai8689 3 ай бұрын
Hey, when sending continuous data, the ESP32 monitor is only showing the initial data…please help
@Hacks360
@Hacks360 3 ай бұрын
Did you able to communicate with esp and Arduino? Please follow the blog for details. Also let me know how can I help...
@mertkayahan4153
@mertkayahan4153 3 ай бұрын
Hello, I am doing a project. I want to connect Arduino mega with esp32 and send an analog signal from esp32 to the PS gamepad. So, how can I send an int or double variable instead of a string expression from esp32 to arduino?
@Hacks360
@Hacks360 3 ай бұрын
The value will go as String. Just convert that in your desired data type. As simple as that.
@binayakbishnu
@binayakbishnu 5 ай бұрын
People who couldn't receive message One possible problem could be that it is said while uploading code Rx Tx pins should not be connected to anything.
@Hacks360
@Hacks360 5 ай бұрын
That's right, It would be an issue while uploading the code. Another thing is that there should be a common grounding between Arduino and esp32.
@yasinbyker
@yasinbyker Жыл бұрын
I have a problem. if i send data to esp32 faster than 1000 milliseconds. I'm having trouble reading this fast incoming data. How can i solve this problem
@Hacks360
@Hacks360 Жыл бұрын
The baud rate should be the same at the sender and receiver ends. Otherwise, the data should arrive usually. Please remove any delay on the receiver side which can interrupt the data receive.
@唐唯洲
@唐唯洲 2 жыл бұрын
Excuse me, I copied it, why does exit status 1 appear? 'Serial2' was not declared in this scope?
@Hacks360
@Hacks360 2 жыл бұрын
It should work. Can you please comment on the blog? Thanks
@唐唯洲
@唐唯洲 2 жыл бұрын
@@Hacks360 I'm sorry, I don't know it's inconvenient to send you an email?
@programmer1111x
@programmer1111x 2 жыл бұрын
@@唐唯洲 place the declaration of serial2 outside the void setup(). Outside of any function
@brianalmeida529
@brianalmeida529 5 ай бұрын
Communication is very good, but never do it without using a voltage divider. I followed step by step what he did in the video and unfortunately when transmitting from the arduino to the esp32cam, it damaged the board due to the difference in voltages.
@Hacks360
@Hacks360 5 ай бұрын
I have mentioned that on my website. You are right. The esp32 can be fried due to overvoltage.
@brianalmeida529
@brianalmeida529 5 ай бұрын
@@Hacks360 Yes sir.
@BlasterGames
@BlasterGames 2 ай бұрын
How can 5v arduino tx to 3.3v esp32 rx not damage the esp32?
@Hacks360
@Hacks360 2 ай бұрын
Your concern is valid and surely it will be destroyed. Please visit the website for details. Thanks
@muhammadhazrolhafifibinabd1693
@muhammadhazrolhafifibinabd1693 7 ай бұрын
Hello, does this mean i connect the android app to esp32, then the data received transfer from esp32 to arduino and arduino to esp32 and to android app?
@Hacks360
@Hacks360 7 ай бұрын
Yes, you can do that.
@e-splash
@e-splash Жыл бұрын
Does it okey to directly connect the RX and TX of Arduino Uno and ESP 32S without using a voltage divider??
@Hacks360
@Hacks360 Жыл бұрын
It is generally not recommended to directly connect the RX and TX pins of an Arduino Uno and an ESP32 without a voltage divider or a level shifter. This is because the logic levels of the two devices are different, and the Arduino Uno uses 5V logic levels while the ESP32 uses 3.3V logic levels. Connecting the two devices directly could result in damage to the ESP32.
@thestarangel4443
@thestarangel4443 6 ай бұрын
this code is giving error Compilation error: 'Serial2' was not declared in this scope but i write same code which u described in video. can you please resolve it
@Hacks360
@Hacks360 6 ай бұрын
Select the board properly. You should get this error if there is no hardware serial in your board.
@longphan5652
@longphan5652 4 ай бұрын
This is great video. But them can activity if you not connect with PC to show terminal then led blink on arduino from data of arduino .
@Hacks360
@Hacks360 4 ай бұрын
Can you please clearify your question again. Also please visit my website for more details. Thanks
@bryanangelobragais2498
@bryanangelobragais2498 2 жыл бұрын
sir thank you for your video. can i ask about esp32 how to send data using Arduino + esp32 to android
@Hacks360
@Hacks360 2 жыл бұрын
There is multiple way, In cause of arduino, you can use bluetooth module and gsm module to send data. Using ESP32, you can send data using wifi, bluetooth, and gsm. Thanks.
@marinekid9
@marinekid9 2 жыл бұрын
Hello, when I copied and pasted the code, I get an error message saying that " 'Serial2' was not declared in this scope." Any suggestions?
@Hacks360
@Hacks360 2 жыл бұрын
Can you please post the comment in our blog with screenshot. It will be easy to give the solution. Thanks. www.programmingboss.com/2021/04/esp32-arduino-serial-communication-with-code.html
@marinekid9
@marinekid9 2 жыл бұрын
@@Hacks360 Hello, yes I can do that. But before I do, could it because I need a voltage divider to go from 5V to 3.3V? That's what I am thinking. Please let me know your thoughts, thanks!
@mjuliana100
@mjuliana100 2 жыл бұрын
Hello, thank you for the video. But I have found different information in some videos, why some videos recommend to connect RX of arduino with TX of esp32, and other recommend to connect RX of arduIno with RX of esp32?
@Hacks360
@Hacks360 2 жыл бұрын
*TX* and *RX* are abbreviations for *Transmit* and *Receive* . If Arduino Transmit , ESP32 should Receive. Again if ESP32 Transmit something, Arduino should Receive. Which means, that *TX* of Arduino should connect with RX of ESP32 and *RX* of Arduino should connects with *TX* of ESP32. Cause while Arduino Transmit some message, ESP32 should Receive it through *RX* . I hope you got the answer. Thanks for your comment. Please *subscribe* and stay connected.
@mjuliana100
@mjuliana100 2 жыл бұрын
@@Hacks360 Thank you so much, but in this video kzbin.info/www/bejne/p16ueqN8fseFg80 they say that TX of arduino should be connected to TX of ESP32-CAM, and the same with RX. It is sad to find different information from videos that have a lot of views
@junantan2870
@junantan2870 2 жыл бұрын
Here you only show esp32 receive data from arduino. It's possible for arduino receive data from esp32?
@Hacks360
@Hacks360 2 жыл бұрын
Of course possible.
@junantan2870
@junantan2870 2 жыл бұрын
@@Hacks360 tq!
@Mindtrendss
@Mindtrendss 2 жыл бұрын
@@Hacks360 hello thx you for your information, can i get a code?
@rodo19724
@rodo19724 2 жыл бұрын
@@Hacks360 Can you show us HOW ?
@rodo19724
@rodo19724 2 жыл бұрын
I want to send FROM esp32, to arduino uno, doesn't work. Is it because rx from esp32 is 3.3 v?
@Hacks360
@Hacks360 2 жыл бұрын
Maybe it's the reason. Please try using voltage shifter in tx and rx. Thanks for your comment.
@rayenbensaid9365
@rayenbensaid9365 2 жыл бұрын
Good job man . Please i want to send data from arduino uno to Pc using the esp32 Bluetooth. Is it possible by this UART communication ? thank you
@Hacks360
@Hacks360 Жыл бұрын
Yes, possible.
@AhadShehbaz-c4d
@AhadShehbaz-c4d Жыл бұрын
I am using esp32 with arduino mega 2560, however when I run the code I don't get any output on the esp32 serial monitor, I connected TX1 of arduino mega 2560 to RX (GPIO3) on the esp32. If you can please help with this
@Hacks360
@Hacks360 Жыл бұрын
You must use *tx0, rx0* of Arduino mega which are digital pin 1 and 0. Otherwise, you have to define serial1.begin(9600) instade of Serial.begin(9600); . The right hardware pin must define in the code to establish the connection and start serial communication.
@requiem4adreamc
@requiem4adreamc Жыл бұрын
I want to make arduino pro micro as Bluetooth hid. I have esp32 and pro micro. How can i do that?
@Hacks360
@Hacks360 Жыл бұрын
To make an Arduino Pro Micro act as a Bluetooth HID device using an ESP32, you can follow these steps: Connect the ESP32 to the Pro Micro via serial communication as described in the previous answer. Upload the ESP32 code to create a Bluetooth HID device. There are several libraries available for this purpose, such as the ESP32 BLE HID library or the ESP32-BLE-Gamepad library. These libraries allow you to create a Bluetooth HID device with custom button mappings, joystick controls, and more. Once the ESP32 code is uploaded and running, it will act as a Bluetooth HID device and appear as such to any nearby Bluetooth-enabled device. In the Pro Micro code, read input from whatever sensors or buttons you want to use to control the Bluetooth HID device. Then, send HID reports to the ESP32 over serial communication. The HID reports should contain information about the state of the buttons or joystick axes. The ESP32 code will receive the HID reports and send them out over Bluetooth to the connected device. By following these steps, you can turn an Arduino Pro Micro into a Bluetooth HID device that can be used to control a computer, phone, or other Bluetooth-enabled device.
@requiem4adreamc
@requiem4adreamc Жыл бұрын
@@Hacks360 Thank you very much for detailed explanation. 🤝🙂
@Hacks360
@Hacks360 Жыл бұрын
@@requiem4adreamc You are welcome. Please support us by subscribing to the channel. Also, visit: www.programmingboss.com/ Thank you.
@requiem4adreamc
@requiem4adreamc Жыл бұрын
@@Hacks360 I already subbed and i will check out the website for sure :)
@nasralhubishi5080
@nasralhubishi5080 2 жыл бұрын
Hello. I want to make the esp32 the sender and arduino mega is the reciver, in other way i want the opposite of this video please...
@Hacks360
@Hacks360 2 жыл бұрын
Please comment on your problems and query on the website. Thanks, and stay tuned.
@lailanadira2664
@lailanadira2664 Жыл бұрын
hello, can the esp32 connect with stm32 through serial ? and esp32 send notifications through telegram by using stm ?
@Hacks360
@Hacks360 Жыл бұрын
Yes, it's possible.
@leonardo5854
@leonardo5854 Жыл бұрын
how about communicating eps32 with arduino uno via Bluetooth?
@Hacks360
@Hacks360 Жыл бұрын
Soon going to write article about it. Please keep eyes on the blog. www.programmingboss.com
@floringaspar6740
@floringaspar6740 2 жыл бұрын
Please help me man. I'm trying to transmit data from esp32-cam to the Arduino Pro Mini. I use a 5v to 3.3v voltage divider for Rx and TX pins. The data is transmitted for a few seconds, only after I disconnect the pin. Otherwise this communication does not work. I also tried at 5v voltage, without divider, the problem is the same.
@Hacks360
@Hacks360 2 жыл бұрын
Try changing the wires and try again. It should work. The idea of using a 5v to 3.3v voltage shifter is great. Keep trying. Thanks, and stay connected.
@hfe1833
@hfe1833 Жыл бұрын
How about voltage level in DIO? Arduino is 5v and 3.3V in Esp32
@Hacks360
@Hacks360 Жыл бұрын
If you follow the website and go through the tutorial, I have explain the matter. You must use a voltage divider to step down the voltage from the *Arduino Uno to the ESP32* . Please visit: www.programmingboss.com/2023/01/serial-communication-between-arduino-and-esp32-CAM-UART-data-communication.html Thanks
@hfe1833
@hfe1833 Жыл бұрын
@@Hacks360 very good documentation bro,thank u
@Hacks360
@Hacks360 Жыл бұрын
@@hfe1833 You are welcome, bro. Please subscribe to support us. Thanks
@corna1906
@corna1906 Жыл бұрын
I have this issue using your receiving code on my esp32
@Hacks360
@Hacks360 Жыл бұрын
Can you please comment your questions on the website? Link in the description.
@tiaradvm
@tiaradvm 6 ай бұрын
Thank you very muchhhh!!!!! Your video helps me😭
@Hacks360
@Hacks360 6 ай бұрын
You are most welcome. Stay connected by subscribing to our channel.
@yingxuan7238
@yingxuan7238 Жыл бұрын
Hi, can you show how to connect ESP32-CAM and arduino via UART ?
@Hacks360
@Hacks360 Жыл бұрын
The process is the same. Though, I will try to make a video on it. Subscribe and stay connected. Thanks.
@yingxuan7238
@yingxuan7238 Жыл бұрын
@@Hacks360 subscribed, thank you in advance.
@floringaspar6740
@floringaspar6740 2 жыл бұрын
Is this communication working without connection to the pc?
@Hacks360
@Hacks360 2 жыл бұрын
Yes, of course.
@Rohit-cd9vf
@Rohit-cd9vf 8 ай бұрын
Compilation error: 'Serial2' was not declared in this scope This shows when I'm uploading the ESP32 code
@Hacks360
@Hacks360 8 ай бұрын
The error you're encountering, 'Serial2' was not declared in this scope, indicates that the Serial2 object is not recognized in your code. This usually happens when you're trying to use the second hardware serial port (Serial2), but it hasn't been properly defined for the ESP32. The ESP32 boards typically have multiple hardware serial ports, and Serial2 is commonly available. However, to use it, you need to include the appropriate ESP32 library and use the correct pin assignments for UART communication. Here's an example of how to use Serial2 on ESP32: // Receiver ESP32 Code void setup() { Serial.begin(115200); // Serial for USB communication Serial2.begin(115200, SERIAL_8N1, 16, 17); // Serial2 for external communication (TX: 16, RX: 17) } void loop() { if (Serial2.available() > 0) { String message = Serial2.readStringUntil(' '); Serial.print("Received message: "); Serial.println(message); } }
@rayleblanc7209
@rayleblanc7209 2 жыл бұрын
Can you use the esp32 to upload sketches to the arduino mega wirelessly and receive serial monitor info back wirelessly ?
@Hacks360
@Hacks360 2 жыл бұрын
Arduino mega don't have wifi or bluetooth.
@rayleblanc7209
@rayleblanc7209 2 жыл бұрын
@@Hacks360 If the esp32 is serial communicating with the arduino and the esp32 is a wireless module, does that not create a wireless access to the mega?
@Mystical-TEDDY_
@Mystical-TEDDY_ Жыл бұрын
the music go kinda hard 🔥
@Hacks360
@Hacks360 Жыл бұрын
Thanks, keep your volume a little low.
@plcchileplc2061
@plcchileplc2061 Жыл бұрын
que pasa con la diferencoa de niveles de voltaje
@Hacks360
@Hacks360 Жыл бұрын
You have to use a voltage divider to step down the voltage. Please follow this link for more details: www.programmingboss.com/2023/01/serial-communication-between-arduino-and-esp32-CAM-UART-data-communication.html
@zgryx8428
@zgryx8428 2 жыл бұрын
Hi sir thank you for the wonderful tutorial, how can I trigger the esp32 cam to capturr photo with the command of Arduino? is it possible? if so, how?
@Hacks360
@Hacks360 2 жыл бұрын
Yes, it's possible.
@zgryx8428
@zgryx8428 2 жыл бұрын
@@Hacks360 could assist me sir how to do that? Thank you so much❤️
@Mat69MX
@Mat69MX 2 жыл бұрын
i want to connect sensors to esp32, and connect esp32 to arduino 33 iot, from there connect it to a display, and using the arduino 33 iot free access to arduino cloud with the esp32 sensor information, is it possible?
@Hacks360
@Hacks360 2 жыл бұрын
Yes, possible. You can do it in several ways. If you want to communicate with the esp32 wirelessly, you can send data from esp32 to Arduino using the MQTT protocol. In that case, you have to use the Arduino ethernet module to connect with the same network. Or you can use wifi module to do so. You can also do it if you want to use tx RX or serial communication. But it's recommended to add a logic level shifter between Arduino and esp32 as the esp32 logic level is 3.3v and Arduino logic level is 5v.
@larissanzogang1473
@larissanzogang1473 3 жыл бұрын
The esp32 does not match🤔
@larissanzogang1473
@larissanzogang1473 3 жыл бұрын
Esp 32 code
@Hacks360
@Hacks360 3 жыл бұрын
Select the proper board.
@lazyvideos9525
@lazyvideos9525 3 жыл бұрын
is it essential software serial at receiver side????any way i have default serial port like UART0 so i can use that both side transmitter and receiver side also right??? while programming my be i should remove the tx rx ....pls upadte on this???
@Hacks360
@Hacks360 3 жыл бұрын
In receiver side, you just need to read serial input. In UART communication, there should be 2 pins. By the way, you can use the example to test. Yes, while programming, you should remove RX0, TX0. If there is multiple tx rx, you have to remove only tx0 and rx0. Because most of the time programmer uses tx0 and rx0 to upload the program in the controller. Sometimes removing only RX0 can also work.
@アトマジャー
@アトマジャー Жыл бұрын
Hello, can we use blynk app with this method? Thanks in advance
@Hacks360
@Hacks360 Жыл бұрын
Yes, you can
@hamermohd6884
@hamermohd6884 2 жыл бұрын
Thank you for the clear and fantastic tutorial.
@Hacks360
@Hacks360 2 жыл бұрын
You are welcome. Please stay connected and subscribe. Thanks.
@youssefyasser1929
@youssefyasser1929 Жыл бұрын
can u show us more because i need to send mpu6050 data from esp to Arduino mega ,
@Hacks360
@Hacks360 Жыл бұрын
Follow the article on how to send data from *ESP32 to Arduino* . The website link is: www.programmingboss.com/2021/04/esp32-arduino-serial-communication-with-code.html Then first, connect the two devices by connecting the TX pin of the ESP32 to the RX pin of the Arduino Mega and the RX pin of the *ESP32* to the TX pin of the Arduino Mega. After connecting the devices, initialize the Serial communication on both devices with the same baud rate. Once you have the data from the *MPU6050* sensor, you can send it to the Arduino Mega using the Serial.write() function on the *ESP32* . On the *Arduino* Mega side, you can use the Serial.read() function to receive the data sent by the *ESP32* . If you need more help, please comment on the website. Thanks and please *_subscribe_* .
@youssefyasser1929
@youssefyasser1929 Жыл бұрын
@@Hacks360 Thanks it works, can it be done wireless, using wifi module or Bluetooth on Arduino Mega?,do you have anything that will help on this
@Hacks360
@Hacks360 Жыл бұрын
@youssefyasser1929 Nice to hear that it's working. You can connect Arduino and esp32 over *Bluetooth* or Wi-Fi. There are some challenges, though. You can follow this resource on Bluetooth Communication Between the *ESP32 and the Arduino* . www.programmingboss.com/2023/01/bluetooth-communication-between-esp32-arduino-hc-05-bluetooth-module.html Thanks, and stay connected.
@youssefyasser1929
@youssefyasser1929 Жыл бұрын
@Hacks360 hello again, I tried the code but they dosenot pair with each other
@ayeshaemdad1612
@ayeshaemdad1612 3 жыл бұрын
Good job
@Hacks360
@Hacks360 3 жыл бұрын
Thanks! Stay connected.
@JoseMideros
@JoseMideros Жыл бұрын
Greetings, very nice video. Very didactic and educational. I am running as in the video, but I am not getting any result. Maybe the Board inside the Arduino, I do not choose it well, could you guide me please. I have a: ESP32 38 PINES /// NODEMCU ESP-32S V1.1
@Hacks360
@Hacks360 Жыл бұрын
Try again...
@sevketkarayilan
@sevketkarayilan 10 ай бұрын
Where is serial1?
@Hacks360
@Hacks360 10 ай бұрын
For which controller you are looking for serial? Arduino? For Arduino it's tx and Rx pin. For esp it's gpio 1 and gpio 3.
@carlospachecocruz8142
@carlospachecocruz8142 Жыл бұрын
what would be the pins if I use tx0 and rx0
@Hacks360
@Hacks360 9 ай бұрын
We have used hardware serial pins for both Arduino and ESP32.
@ms64578
@ms64578 4 ай бұрын
Nice job. Is it dangerous to ground these two boards to each other? I thought the eso32 works on 3.3 v
@Hacks360
@Hacks360 4 ай бұрын
Yes, you are right. Please visit my blog for more details. Please subscribe to support me.
@강명훈-k2v
@강명훈-k2v Жыл бұрын
thank you so much!!
@Hacks360
@Hacks360 Жыл бұрын
Thank you so much. *Subscribe* and stay connected.
@merlinn64
@merlinn64 3 жыл бұрын
This is possible with Esp32-Cam?
@Hacks360
@Hacks360 3 жыл бұрын
Yes. But to avoid risk, you can use resistor to drop the signal voltage level. Thanks, and stay connected.
@mako3010
@mako3010 Жыл бұрын
Link is FULL of ads. Messy channel.
@Hacks360
@Hacks360 Жыл бұрын
Thanks for your feedback. Going to organize soon.
@mako3010
@mako3010 Жыл бұрын
@@Hacks360 I get it - you have to make money. But the amount of ads you have on that link are ANNOYING AF
@Hacks360
@Hacks360 Жыл бұрын
@@mako3010 Thanks again! Just ignore ads and focus on the content. Thanks.
@mako3010
@mako3010 Жыл бұрын
@@Hacks360 Its the principles. Not supporting creators that rely on ads ON TOP of KZbin's ads. I'll find better content elsewhere, from someone who isn't here to make a quick buck.
@Hacks360
@Hacks360 Жыл бұрын
@@mako3010 Seriously, men? Now it's getting funny and childish.
@thirty-twobits
@thirty-twobits 2 жыл бұрын
bro your music is a little dark, but thanks!
@Hacks360
@Hacks360 2 жыл бұрын
Thanks for your comment.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 47 МЛН
Ozoda - Lada ( Ko’k jiguli 2 )
06:07
Ozoda
Рет қаралды 15 МЛН
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,1 МЛН
Serial Communication between two Arduino Boards
5:35
Iotguider
Рет қаралды 179 М.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Рет қаралды 346 М.
Tech Note 137 - ESP32 a further insight into using the serial ports
6:43
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 583 М.
I2C Part 1 - Using 2 Arduinos
25:51
DroneBot Workshop
Рет қаралды 414 М.
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Рет қаралды 362 М.
#152 Additional ESP32 Serial Channels in Arduino IDE (Quickie)
5:10
Andreas Spiess
Рет қаралды 112 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН