Search found 3 matches
- Mon Jul 08, 2024 12:58 pm
- Forum: General Discussion
- Topic: ESP32 cycletime regularly > 10ms
- Replies: 4
- Views: 1150
Re: ESP32 cycletime regularly > 10ms
unsigned long startTime, endTime; void setup() { Serial.begin(115200); } void loop() { startTime=micros(); endTime = micros() - startTime; Serial.print("Zykluszeit: "); Serial.println(endTime); } You are right, I changed the code and now: Zykluszeit: 1 Zykluszeit: 1 Zykluszeit: 1 Zykluszeit: 1 Zyklu...
- Sun Jul 07, 2024 8:30 pm
- Forum: General Discussion
- Topic: ESP32 cycletime regularly > 10ms
- Replies: 4
- Views: 1150
Re: ESP32 cycletime regularly > 10ms
With 'cycletime' I mean the time the program need to run one time and than starts again. This is what the terminal shows: First the ESP information after <reset> Then most cycles take 18-19 microseconds, but every 6..7 cycles more then 10.000 microseconds. rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST...
- Sat Jul 06, 2024 9:27 am
- Forum: General Discussion
- Topic: ESP32 cycletime regularly > 10ms
- Replies: 4
- Views: 1150
ESP32 cycletime regularly > 10ms
A simple code to measure the cycletime of an ESP32 Wroom 32. unsigned long startTime; void setup() { Serial.begin(115200); } void loop() { startTime=micros(); Serial.print("Zykluszeit: "); Serial.println(micros() - startTime); } If you on the result on a terminal you will see, that the cycletime is ...