Precision generator

ESP32_kid
Posts: 16
Joined: Tue Oct 28, 2025 10:02 pm

Re: Precision generator

Postby ESP32_kid » Tue Oct 28, 2025 11:26 pm

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/

RickRac
Posts: 7
Joined: Thu Apr 29, 2021 8:10 pm

Re: Precision generator

Postby RickRac » Wed Oct 29, 2025 12:47 am

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.

ESP32_kid
Posts: 16
Joined: Tue Oct 28, 2025 10:02 pm

Re: Precision generator

Postby ESP32_kid » Wed Oct 29, 2025 2:54 am

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?

Who is online

Users browsing this forum: Applebot, Qwantbot and 8 guests