Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By marcomauro
#47928
Mmiscool wrote:Can you provide a link to the arduino frequency count documentation. Can see about adding this if it is esp8266 compatible.


It would be great if ESP8266 were compatible with arduino FreqCount library !

Here the link to the FreqCount library on Github https://github.com/PaulStoffregen/FreqCount
it measures the input frequency by counting the number of pulses during a fixed time.
It works with Arduino Atmel microcontroller, such as: ATMega32U4 , ATMEGA328 , ATMEGA168 and so on.
The microcontroller timer definition is given in the library util file here
https://github.com/PaulStoffregen/FreqCount/blob/master/util/FreqCountTimers.h

There is also another library for measures the frequency called FreqMeasure, here on github https://github.com/PaulStoffregen/FreqMeasure
it measures the input frequency by measuring the elapsed time during each cycle.

Is there any chance to make ESP8266 compatible with one of these libraries for frequency counter ?
great thanks !
User avatar
By cicciocb
#48251 Unfortunately there will be no chance to integrate these libraries as all of them relies on H/W counters that the ESP8266 doesn't have.
User avatar
By marcomauro
#48254 [quote="cicciocb"]Unfortunately there will be no chance to integrate these libraries as all of them relies on H/W counters that the ESP8266 doesn't have.[/

Thank you so much for replying. Now it is clear to me that ESP8266 does not have hardware counters. Actually these libraries are not portable, but it does not matter, I am searching for another way to measure or count the frequency using the awesome ESP8266 !
User avatar
By forlotto
#48283 Has anyone requested that this be included in the ESP32?

Seems to be a fairly hot topic. Someone who is part of seeing the ESP32 through may want to suggest that we need some hardware based counters.