Page 2 of 2

Re: Precision generator

Posted: Tue Oct 28, 2025 11:26 pm
by ESP32_kid
And then look into using a different coding language.
I think getting usec accuracy is doable, which means getting very very close to 7.83Hz
Actual desired period is 0.12771392081736909323116219667944sec
1277139 usec will be 7.830001276290208035303909754 Hz

Again, not sure if that's accurate enough for your needs. 3 0's after should be good, but you'll need to decide.

https://www.pythontutorials.net/blog/es ... hon-delay/

Re: Precision generator

Posted: Wed Oct 29, 2025 12:47 am
by RickRac
Thanks for the reply. I am an old fellow that grew up with Cobol and Fortran.
Not sure if I can do more than Arduino.
Hoping for easy.

Re: Precision generator

Posted: Wed Oct 29, 2025 2:54 am
by ESP32_kid
microPython is just a subset of Python, and is easy to use.
You do however need to flash the esp32 with a "bios" or "firmware" engine that can run the mPython code.

Is just a static Hz output you are looking for, or is there more code needed?