How to use UART in ESP32 || Espressif IDE

preview_player
Показать описание
________________________________________________________________________________________

________________________________________________________________________________________

******* SUPPORT US BY DONATING******

*******Join the Membership*******

Рекомендации по теме
Комментарии
Автор

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.

noweare
Автор

you explained in most simple form, comprehensive indeed, easy to be understood. can you do SPI explanation next

AzharMdNoh
Автор

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.

devaharshameesarapu
Автор

Hello how is it possible to open two COM ports I can only open one!

rudyf.
Автор

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.

chakrounimen
Автор

Please: how can I work in Debug mode ... and put a break point ?

Zurenio
Автор

Super sir keep up your good work 👍. Please make a video for event handler and wifi data transmit and receive in ESP32.

Saranbabu
Автор

hello sir can u teach us how to send and receive data(double/float) from mobile app to esp 32 using bluetooth and webpage

sridevipindi
Автор

how to communicate 2 esp32 using uart ?

sidpan-opdm
Автор

Thanks!!! Would you know how i can turn on a led when i receive a specific word?

waltersa
Автор

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?

adityapatil
Автор

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

prasannatarimella
Автор

i am getting these error """E (348) uart: uart_set_pin(646): tx_io_num error"""" please if any one know these replay me

azezurrehman
Автор

Does anyone know if it is posible to use UART3 in ESP32-WROOM?

gymv
Автор

Thanks a lot for ur work sir can you post videos to interface ESP32 with UART??

balakrishnansambath
Автор

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

yasinbyker
Автор

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

Videoman