Go Down

Topic: Microcontroller I/O & ADC Benchmarks (Read 45556 times) previous topic - next topic

Riva

#30
Dec 08, 2018, 03:25 pm Last Edit: Jun 09, 2019, 08:59 am by Riva
Managed to get my hands on a SAMD21 Zero clone and run the benchmark in #1 after converting references of Serial to SerialUSB and am surprised at how slow it is, especially the analogRead.
I have added results to the first post but for reference here, they are repeated.
Code: [Select]

Arduino Zero I/O Speed Tests Over 50000 Iterations. Compiled Using Arduino IDE v1.8.7
Digital Pin Write Takes About 1.6234 Microseconds.
Digital Pin Read  Takes About 1.0264 Microseconds.
Analogue Pin Read Takes About 423.2541 Microseconds.
Don't PM me for help as I will ignore it.

sblantipodi

it would be interesting to see some comparison between the new nanos and the ESP8266/ESP32...
is there something like this on the net, can't find it?

Riva

Have just done the test on an ESP32

Code: [Select]
ESP32 DoIt ESP32 Devkit V1 (80MHz) I/O Speed Tests Over 50000 Iterations. Compiled Using Arduino IDE v1.8.9 and 1.0.2 Core
Digital Pin Write Takes About 0.1199 Microseconds.
Digital Pin Read  Takes About 0.1642 Microseconds.
Analogue Pin Read Takes About 10.3027 Microseconds.
Don't PM me for help as I will ignore it.

Go Up