Page 1 of 1

over clocking

Posted: Wed Nov 29, 2017 11:43 am
by OutoftheBOTS_
From what I can understand it seems that the ESP boards have an over clocking feature. They can run at the standard 80mhz or with the change of 1 bit they can run at 160mhz. Id this feature possible to use in micropython and if so what is the down side to running the biard at 160mhz??

Re: over clocking

Posted: Wed Nov 29, 2017 5:16 pm
by pythoncoder
There seems to be no downside apart from slightly raised power consumption. I've run at 160MHz for long periods and it's stable with no hint of overheating. In some applications it can deliver about 60% more performance.

From what I've read it seems perfectly legitimate - I think the rate is set to 80MHz because many web applications aren't CPU bound.

Re: over clocking

Posted: Wed Nov 29, 2017 8:57 pm
by OutoftheBOTS_
ok so next question how do I get my ESP8266 to run at the 160mhz with micropython??

Re: over clocking

Posted: Wed Nov 29, 2017 10:34 pm
by deshipu
Have you looked into the documentation already? There is a function for setting the cpu frequency.

Re: over clocking

Posted: Thu Nov 30, 2017 1:18 am
by manseekingknowledge
How to change the frequency is described in the General Board section here.

Code: Select all

import machine

machine.freq()          # get the current frequency of the CPU
machine.freq(160000000) # set the CPU frequency to 160 MHz

Re: over clocking

Posted: Thu Nov 30, 2017 2:49 am
by OutoftheBOTS_
OK thanks guys

I wasn't expecting it to be that easy

I will read away and have a play :)

Re: over clocking

Posted: Thu Nov 30, 2017 2:56 am
by OutoftheBOTS_
by the way google and youtube let me down I searched "micropython esp8226 overclocking" and didn't find anything useful

Re: over clocking

Posted: Thu Nov 30, 2017 3:47 am
by OutoftheBOTS_
Well changing my clock speed to 160Mhz seems to have pushed the ESP8266 from not quite being able to keep up with what I wanted it to do to being able to get the job done :)