Тёмный

How to use UART in ESP32 || Espressif IDE 

Подписаться
Просмотров 44 тыс.
% 453

Purchase the Products shown in this video from :: controllerstech.store
________________________________________________________________________________________
To download the code and for more details, goto controllerstech.com/how-to-use-uart-in-esp32-esp-idf/
ESP32 Getting Started Video :: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-h9JA7V5tHsA.html
Check out the ESP32 Playlist ru-vid.com/group/PLfIJKC1ud8ghS_i2Yky2actXWbQoqrscN
________________________________________________________________________________________
******* SUPPORT US BY DONATING******
paypal.me/controllertech
*******Join the Membership*******
ru-vid.com/show-UCkdqtSMnhYuMsJkyHOxiPZQjoin
Join the Discord Server discord.gg/D32JE5wKyD
Join the Telegram Group t.me/controllerstechdiscuss
Follow me on Instagram controllerstech
For more info, visit www.controllerstech.com

Наука

Опубликовано:

 

13 июн 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@noweare1
@noweare1 2 года назад
Glad that you are covering this. I have been teaching myself the esp32 for about a year now. It is very powerful and a great way to learn lots of different technologies. I use Visual Studio Code for my development as I do not understand the ins and outs of eclipse well enough to get me out of trouble when things go south. To many settings I do not understand. Anyways this should be fun, thanks.
@AzharMdNoh
@AzharMdNoh Год назад
you explained in most simple form, comprehensive indeed, easy to be understood. can you do SPI explanation next
@rudyf.4055
@rudyf.4055 Год назад
Hello how is it possible to open two COM ports I can only open one!
@Zurenio
@Zurenio 11 месяцев назад
Please: how can I work in Debug mode ... and put a break point ?
@sridevipindi1547
@sridevipindi1547 Год назад
hello sir can u teach us how to send and receive data(double/float) from mobile app to esp 32 using bluetooth and webpage
@mars3142
@mars3142 Год назад
How did you do the speaker voice?
@chakrounimen7432
@chakrounimen7432 Год назад
Hello ControllersTech, What should i change to make this code run on my esp32-s3-box in platformio based on Arduino Framework, i've changed uart's pins(#define TXD_PIN (GPIO_NUM_17) #define RXD_PIN (GPIO_NUM_18)) the transmit works fine; even thought i make changes in this task: static void rx_task(void *arg) { static const char *RX_TASK_TAG = "RX_TASK"; Serial.println("enter RXTask"); esp_log_level_set(RX_TASK_TAG, ESP_LOG_INFO); uint8_t *data = (uint8_t *)malloc(RX_BUF_SIZE + 1); while (1) { const int rxBytes = uart_read_bytes(UART_NUM_1, data, RX_BUF_SIZE, 1000 / portTICK_PERIOD_MS); if (rxBytes > 0) { data[rxBytes] = 0; ESP_LOGI(RX_TASK_TAG, "Read %d bytes: '%s'", rxBytes, data); ESP_LOG_BUFFER_HEXDUMP(RX_TASK_TAG, data, rxBytes, ESP_LOG_INFO); // Serial.println((char*)data); } Serial.println((char *)data); } free(data); } I didn't receive any thing on my serial monitor. Thank you in advance.
@sidpan-op8dm
@sidpan-op8dm Год назад
how to communicate 2 esp32 using uart ?
@waltersa9584
@waltersa9584 Год назад
Thanks!!! Would you know how i can turn on a led when i receive a specific word?
@ControllersTech
@ControllersTech Год назад
you can use string compare (strcmp) function to compare the word with the received work. If the comparison is ok, turn on the LED
@Saranbabu05
@Saranbabu05 2 года назад
Super sir keep up your good work 👍. Please make a video for event handler and wifi data transmit and receive in ESP32.
@prasannatarimella2434
@prasannatarimella2434 2 года назад
while receving data from terminal to real term it is working fine but while sending back it is showing an error char sent are not displayed in half duplex can ay please help me to get the output in both directions
@ControllersTech
@ControllersTech 2 года назад
Half duplex ? You need to use full duplex for sending and receiving. Half duplex will only send/receive, it can't do both, specially if you are using the default connection (USB). If you want to work with half duplex, then you need to connect via some other means (module), which can switch bwteen tx and rx mode.
@adityapatil6120
@adityapatil6120 Год назад
I am receiving a data packet ranging from 0 to 255 from serial and using it to drive a motor using PWM. How do I convert the data in the buffer to integer value so that I can pass to ledc_set_duty to change the duty cycle?
@ControllersTech
@ControllersTech Год назад
Look for atoi() function.
@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
@ControllersTech
@ControllersTech Год назад
Reduce the time interval in esp32_receive function. By default it is set to 1000ms
@yasinbyker
@yasinbyker Год назад
@@ControllersTech I am using arduinoIDE how can i found this function🙈 i couldnt find
@ControllersTech
@ControllersTech Год назад
Ask in the arduino support.. This video covers ESP-IDF, so doubts are expected to be related to that.
@yasinbyker
@yasinbyker Год назад
@@ControllersTech thanks for your attention
@balakrishnansambath
@balakrishnansambath 2 года назад
Thanks a lot for ur work sir can you post videos to interface ESP32 with UART??
@ControllersTech
@ControllersTech 2 года назад
This is what this video is
@balakrishnansambath
@balakrishnansambath 2 года назад
Sorry my bad, I meant to ask ESP32 interface with stm32?will the same esp8266 Library work with ESP32 also
@embedded3696
@embedded3696 2 года назад
@@ControllersTech 🤣🤣🤣😂😂😂
@devaharshameesarapu277
@devaharshameesarapu277 Год назад
ESP32's default baud rate is 115200. If I am changing the baud rate more than that after building the project its again resetting it to 115200. As in config, its the maximum range of baud rate. But the datasheet states it can go till 5mbps. Can anyone help in how to set it? I am using ESP32 DevkitC.
@azezurrehman
@azezurrehman 9 месяцев назад
i am getting these error """E (348) uart: uart_set_pin(646): tx_io_num error"""" please if any one know these replay me
@gymv
@gymv Год назад
Does anyone know if it is posible to use UART3 in ESP32-WROOM?
@ControllersTech
@ControllersTech Год назад
I don't think it have uart3. It does have 3 uarts, but they are named as uart0 1 and 2.
@Videoman2102
@Videoman2102 7 месяцев назад
It appears this warning: E (10342) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time: E (10342) task_wdt: - IDLE (CPU 0) E (10342) task_wdt: Tasks currently running: E (10342) task_wdt: CPU 0: uart_tx_task E (10342) task_wdt: CPU 1: IDLE E (10342) task_wdt: Print CPU 0 (current core) backtrace