over clocking

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

over clocking

Post by OutoftheBOTS_ » Wed Nov 29, 2017 11:43 am

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??

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: over clocking

Post by pythoncoder » Wed Nov 29, 2017 5:16 pm

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.
Peter Hinch
Index to my micropython libraries.

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: over clocking

Post by OutoftheBOTS_ » Wed Nov 29, 2017 8:57 pm

ok so next question how do I get my ESP8266 to run at the 160mhz with micropython??

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: over clocking

Post by deshipu » Wed Nov 29, 2017 10:34 pm

Have you looked into the documentation already? There is a function for setting the cpu frequency.

manseekingknowledge
Posts: 61
Joined: Sun Oct 29, 2017 5:14 pm

Re: over clocking

Post by manseekingknowledge » Thu Nov 30, 2017 1:18 am

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

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: over clocking

Post by OutoftheBOTS_ » Thu Nov 30, 2017 2:49 am

OK thanks guys

I wasn't expecting it to be that easy

I will read away and have a play :)

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: over clocking

Post by OutoftheBOTS_ » Thu Nov 30, 2017 2:56 am

by the way google and youtube let me down I searched "micropython esp8226 overclocking" and didn't find anything useful

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: over clocking

Post by OutoftheBOTS_ » Thu Nov 30, 2017 3:47 am

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 :)

Post Reply