-->
Page 1 of 2

80 MHz to 160 MHz

PostPosted: Wed Dec 15, 2021 12:51 am
by jsmwrench
Hello everyone.

I'm fairly new at the microcontroller game, so I may sound a little ignorant in my terminology I use. Please forgive me and I will try to learn from my mistakes.

So, I've read many statements and quotes from various sources that the ESP8266 Node MCU runs at 80 MHz (default), but can be increased to 160 MHz. The problem is, not one of those posts I read said HOW to increase it. Does anyone know how to do this? I typically upload my code via the Arduino IDE, but if I have to do that through another means just to be able to increase this I will be okay learning another IDE.

Just to clarify my intentions, my goal is to be able to run a stepper motor as fast (or slow) as possible. I was under the impression that this is determined by how fast (or slow) the processor can repeat the "void loop()" part of the code.

If anyone can help clarify this for me, it would be greatly appreciated.
Ron.

Re: 80 MHz to 160 MHz

PostPosted: Wed Dec 15, 2021 5:47 am
by QuickFix
Using the Google search query "esp8266 set clock speed arduino" I got of useful results, like this old post right here on our forum. ;)

Re: 80 MHz to 160 MHz

PostPosted: Wed Dec 15, 2021 6:09 am
by btidey
In Arduino IDE on tools menus you can select the CPU frequency 80/160MHz

You can also set it dynamically in code using os_update_cpu_frequency

Re: 80 MHz to 160 MHz

PostPosted: Wed Dec 15, 2021 6:22 am
by jsmwrench
LOL! Boy, do I feel dumb. :roll: I have researched this for hours and couldn't find any documentation on this. Thank you very much for the reply and info. Much appreciated. :)