This program is made with ESP-IDF V4.4.2, His goal is to measure the time the ESP take to calculate those formula. Used to calculate effective and mean value of a AC or a rectified Sin, in order to give VRMS values.
NOTA BENE : The watchdog has been desactivated (component config -> esp system config -> initalize task watchdog timer on startup (to disable))
- powf : increase time by 1.7 (2520 instead of 1495) use simple multiplication for same result
- pow : increase time by 3.19 (4769 instead of 1495) use simple multiplication for same result
- Increasing the CPU freqency by X divide the calculation time by X (as expected)
ESP32-S2, CPU clock : 80MHz
Sampling : 1000 Hz
Sampling Number : 1024
Number of try : 5000 times
Caracteristics : f = 50Hz, A = 20
Method | Result | Time (us) |
---|---|---|
Left | 14.15 | 1505 |
Right | 14.14 | 1505 |
Trapezoidal | 14.15 | 1510 |
Calculs | 14.14 | By Hands |
Method | Result | Time (us) |
---|---|---|
Left | 00.05 | 928 |
Right | 00.06 | 928 |
Trapezoidal | 00.06 | 932 |
Basic | 00.07 | 899 |
TODO
Caracteristics : f = 50Hz, A = 20
Method | Result | Time (us) |
---|---|---|
Left | 10.03 | 1386 |
Right | 10.02 | 1386 |
Trapezoidal | 10.03 | 1391 |
Calculs | 10.00 | By Hands |
Method | Result | Time (us) |
---|---|---|
Left | 06.34 | 744 |
Right | 06.33 | 743 |
Trapezoidal | 06.35 | 747 |
Basic | 06.35 | 715 |
Calculs | 06.36 | By Hands |
TODO
Caracteristics : f = 50Hz, A = 20
Method | Result | Time (us) |
---|---|---|
Left | 13.83 | 1496 |
Right | 13.82 | 1496 |
Trapezoidal | 13.82 | 1501 |
Calculs | 14.14 ?? | By Hands |
Method | Result | Time (us) |
---|---|---|
Left | 12.31 | 754 |
Right | 12.31 | 754 |
Trapezoidal | 12.31 | 757 |
Basic | 12.32 | 725 |
Calculs | 12.73 | By Hands |
TODO