Search found 20 matches

by PepeTheGreat
Thu May 09, 2024 3:23 pm
Forum: ESP32 Arduino
Topic: ESP32 S2 serial2 not working
Replies: 8
Views: 3258

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?
by PepeTheGreat
Tue May 07, 2024 9:36 am
Forum: ESP32 Arduino
Topic: ESP32 S2 serial2 not working
Replies: 8
Views: 3258

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; // serial...
by PepeTheGreat
Mon May 06, 2024 9:42 pm
Forum: ESP32 Arduino
Topic: ESP32 S2 serial2 not working
Replies: 8
Views: 3258

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.
by PepeTheGreat
Mon May 06, 2024 7:02 am
Forum: ESP32 Arduino
Topic: ESP32 S2 serial2 not working
Replies: 8
Views: 3258

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/hw...
by PepeTheGreat
Mon May 06, 2024 5:42 am
Forum: ESP32 Arduino
Topic: ESP32 S2 serial2 not working
Replies: 8
Views: 3258

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.println("hello 2"...
by PepeTheGreat
Mon May 06, 2024 5:35 am
Forum: ESP32 Arduino
Topic: ESP32 S2 serial2 not working
Replies: 8
Views: 3258

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); } gives compi...
by PepeTheGreat
Fri Mar 29, 2024 12:54 pm
Forum: ESP32 Arduino
Topic: ESP32S2 stalling 5ms every 2seconds?
Replies: 4
Views: 4068

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 loo...
by PepeTheGreat
Thu Mar 28, 2024 9:02 pm
Forum: ESP32 Arduino
Topic: ESP32S2 stalling 5ms every 2seconds?
Replies: 4
Views: 4068

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 understand it...
by PepeTheGreat
Thu Mar 28, 2024 11:25 am
Forum: ESP32 Arduino
Topic: ESP32S2 stalling 5ms every 2seconds?
Replies: 4
Views: 4068

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.
by PepeTheGreat
Mon Mar 18, 2024 9:11 pm
Forum: ESP32 Arduino
Topic: WebServer.h how do i know if a client disconnects?
Replies: 4
Views: 1522

Re: WebServer.h how do i know if a client disconnects?

👍 👍 👍

Code: Select all

  while(wfc.connected())
  {
Works perfectly. TY

Next thing is mounting esp32cam on this: