Phase-angle AC control is a low-cost technique for regulating power in resistive loads, but its performance depends on accurate trigger timing. This study quantitatively compares an ESP32-based phase-angle controller implemented in MicroPython and in native C using ESP-IDF. Firing delay was measured over 1000 consecutive cycles at firing angles from 10∘ to 150∘ under a 60 Hz supply, and the timing error was converted into equivalent angular deviation. The native C implementation reduced the mean timing error from 218.2–234.7 μs in MicroPython to −10.3–6.1 μs after calibration, corresponding to an average improvement of approximately 225 μs or 4.86∘ across the tested angles. In the current dataset, the measured standard deviation remained angle-dependent and numerically similar in both environments, ranging from 2.5 to 10.1 μs. Oscilloscope measurements confirmed the expected phase-angle operation and the practical timing displacement between firmware strategies. The results show that the principal advantage of the native implementation is improved absolute synchronization accuracy, whereas the residual short-term jitter remains dominated by the shared detection and triggering chain.
García et al. (Wed,) studied this question.