Search found 20 matches
- Thu May 09, 2024 3:23 pm
- Forum: ESP32 Arduino
- Topic: ESP32 S2 serial2 not working
- Replies: 8
- Views: 5232
Re: ESP32 S2 serial2 not working
I wonder if this will be corrected or if arduino usesrs will be limited to one serial on the ESP32S2 for eternity?
- Tue May 07, 2024 9:36 am
- Forum: ESP32 Arduino
- Topic: ESP32 S2 serial2 not working
- Replies: 8
- Views: 5232
Re: ESP32 S2 serial2 not working
How do you explain this works?
#include "driver/uart.h"
// ESP32S2 usb cdc on boot on, usb dfu on boot off, upload mode internal usb.
const int VEBUS_RXD1=13, VEBUS_TXD1=12;
const int VEBUS_RXD2=10, VEBUS_TXD2=11;
const int UART_USED1 = 0; //UART_NUM_1; // serial1
const int UART_USED2 = 1 ...
#include "driver/uart.h"
// ESP32S2 usb cdc on boot on, usb dfu on boot off, upload mode internal usb.
const int VEBUS_RXD1=13, VEBUS_TXD1=12;
const int VEBUS_RXD2=10, VEBUS_TXD2=11;
const int UART_USED1 = 0; //UART_NUM_1; // serial1
const int UART_USED2 = 1 ...
- Mon May 06, 2024 9:42 pm
- Forum: ESP32 Arduino
- Topic: ESP32 S2 serial2 not working
- Replies: 8
- Views: 5232
Re: ESP32 S2 serial2 not working
Me thinks console, serial0, is not uart but usb.
I did read with esp-idf both serial do work. Seems an arduino-ide problem.
I did read with esp-idf both serial do work. Seems an arduino-ide problem.
- Mon May 06, 2024 7:02 am
- Forum: ESP32 Arduino
- Topic: ESP32 S2 serial2 not working
- Replies: 8
- Views: 5232
Re: ESP32 S2 serial2 not working
Serial == Serial0 (aka the default console). <-- not hardwareserial, but USB
Serial1 == HardwareSerial(1)
Serial2 == HardwareSerial(2) <-- this one not working in arduino ide
I interpret "2 uart" as "2 hardwareserial".
See "uart" here:
https://docs.espressif.com/projects/esp-idf/en/v5.0.2/esp32s3 ...
Serial1 == HardwareSerial(1)
Serial2 == HardwareSerial(2) <-- this one not working in arduino ide
I interpret "2 uart" as "2 hardwareserial".
See "uart" here:
https://docs.espressif.com/projects/esp-idf/en/v5.0.2/esp32s3 ...
- Mon May 06, 2024 5:42 am
- Forum: ESP32 Arduino
- Topic: ESP32 S2 serial2 not working
- Replies: 8
- Views: 5232
Re: ESP32 S2 serial2 not working
This compiles, has outpunt on pin 12 but no output pin 11
#include <hardwareserial.h>
HardwareSerial Seriala(1);
HardwareSerial Serialb(2);
void setup()
{
Seriala.begin(9600,SERIAL_8N1,13,12);
Serialb.begin(4800,SERIAL_8N1,10,11);
}
void loop()
{
Seriala.println("hello 1");
Serialb ...
#include <hardwareserial.h>
HardwareSerial Seriala(1);
HardwareSerial Serialb(2);
void setup()
{
Seriala.begin(9600,SERIAL_8N1,13,12);
Serialb.begin(4800,SERIAL_8N1,10,11);
}
void loop()
{
Seriala.println("hello 1");
Serialb ...
- Mon May 06, 2024 5:35 am
- Forum: ESP32 Arduino
- Topic: ESP32 S2 serial2 not working
- Replies: 8
- Views: 5232
ESP32 S2 serial2 not working
The S2 has usb plus 2 hardware uart.
Serial usb
Serial1 = hardware first
Serial2 = hardware second
Arduino IDE:
void setup()
{
Serial1.begin(9600,SERIAL_8N1,13,12);
Serial2.begin(4800,SERIAL_8N1,10,11);
}
void loop()
{
Serial1.println("hello 1");
Serial2.println("hello 2");
delay(100 ...
Serial usb
Serial1 = hardware first
Serial2 = hardware second
Arduino IDE:
void setup()
{
Serial1.begin(9600,SERIAL_8N1,13,12);
Serial2.begin(4800,SERIAL_8N1,10,11);
}
void loop()
{
Serial1.println("hello 1");
Serial2.println("hello 2");
delay(100 ...
- Fri Mar 29, 2024 12:54 pm
- Forum: ESP32 Arduino
- Topic: ESP32S2 stalling 5ms every 2seconds?
- Replies: 4
- Views: 4818
Re: ESP32S2 stalling 5ms every 2seconds?
TY
Explains it.
In the main Arduino loop, above loop() function, in the file cores/esp32/main.cpp we see yieldIfNecessary() function. It works on ESP32-S2 for example as it only has one core. Function adds a 5ms delay every two seconds. Under some specific circumstances, this causes problem with ...
Explains it.
In the main Arduino loop, above loop() function, in the file cores/esp32/main.cpp we see yieldIfNecessary() function. It works on ESP32-S2 for example as it only has one core. Function adds a 5ms delay every two seconds. Under some specific circumstances, this causes problem with ...
- Thu Mar 28, 2024 9:02 pm
- Forum: ESP32 Arduino
- Topic: ESP32S2 stalling 5ms every 2seconds?
- Replies: 4
- Views: 4818
Re: ESP32S2 stalling 5ms every 2seconds?
The actual code is in the git link. It's:
void loop() { debug_gpio = !debug_gpio; digitalWrite(MY_GPIO, debug_gpio); }
The same code works glitch-free on the old esp32.
Could this be an internal usb thing?
Edit:
I did test moving it to "task1" at priority 1. No 5ms gaps there.
I do not ...
void loop() { debug_gpio = !debug_gpio; digitalWrite(MY_GPIO, debug_gpio); }
The same code works glitch-free on the old esp32.
Could this be an internal usb thing?
Edit:
I did test moving it to "task1" at priority 1. No 5ms gaps there.
I do not ...
- Thu Mar 28, 2024 11:25 am
- Forum: ESP32 Arduino
- Topic: ESP32S2 stalling 5ms every 2seconds?
- Replies: 4
- Views: 4818
ESP32S2 stalling 5ms every 2seconds?
Basically this issue:
https://github.com/espressif/esp-idf/issues/10055
The ESP32S2 stalls every 2 seconds for 5ms.
This is very annoying when using it for a quadcopter with 2ms cycle time.
ESP32 and ESP8266 do not have that issue.
https://github.com/espressif/esp-idf/issues/10055
The ESP32S2 stalls every 2 seconds for 5ms.
This is very annoying when using it for a quadcopter with 2ms cycle time.
ESP32 and ESP8266 do not have that issue.
- Mon Mar 18, 2024 9:11 pm
- Forum: ESP32 Arduino
- Topic: WebServer.h how do i know if a client disconnects?
- Replies: 4
- Views: 2546
Re: WebServer.h how do i know if a client disconnects?
Code: Select all
while(wfc.connected())
{
Next thing is mounting esp32cam on this: