As the title says... Chat on...

User avatar
By Robert1968
#58480 Hi,

I need to know what is the ESP01 pure performance if one GPIO is low and high in loop.
With LUA language I measured approx. 6.6Khz only with this method:

Code: Select allnode.setcpufreq(node.CPU160MHZ)
 gpio.mode(4, gpio.OUTPUT)

 tmr.wdclr()
 for count = 1,102400 do
     gpio.write(4,1)
     gpio.write(4,0)   
 end


As you see CPU speed set to 160MHz but the result is very disappointing.

If I use micropython would the performance increased?

Or any suggestion?

I would make a square wave frequency doubler with ESP8266.
See details of the investigation on my blog:
http://esp8266freq.blogspot.hu/p/blog-page.html