-->
Page 1 of 1

Freqmeasure and 8266

PostPosted: Thu Aug 11, 2016 5:31 pm
by Obliterous
Has anyone gotten the freqmeasure library working with the 8266 yet?

I'm trying to build a weather station, and this is the last part that I need to complete.

FreqMeasure library: https://www.pjrc.com/teensy/td_libs_FreqMeasure.html

Re: Freqmeasure and 8266

PostPosted: Sat Aug 13, 2016 10:04 am
by mrburnette
You may wish to consult this article on ESP8266 Interrupts:
http://www.switchdoc.com/2015/10/iot-esp8266-timer-tutorial-arduino-ide/

My assumption is that you want to measure wind speed by building an interrupt driven counter. Paul's FreqMeasurement lib may be a bit of an overkill, IMO.

Keep in mind that the Arduino code runs in a slice of the uC time... the RF/protocol/housekeeping routines get called with each iteration of loop{} OR when you do yield() or delay(0) but the native code needs to be dormant less than 50mS before the Arduino code is interrupted.

Ray