Skip to content
/ fanspeed Public

Arduino library for reading fan speed in RPM from any digital port

Notifications You must be signed in to change notification settings

anru/fanspeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino library for reading fan speed in RPM from any digital port

General methods

FanSpeed or FanSpeedInt(int pin, bool useInternalResistor = true)
pin:if pin is 13 useInternalResistor has no sense, use external resistor in this case.
FanSpeed::getPulseCounter()
returns the pulse counter
FanSpeed::reset()
Resets the pulse counter
FanSpeed::process()
Handling counter, use depends on the type of class, in the case of pin that supports interrupt (class FanSpeedInt), this function must be called in the callback function, otherwise if you use an ordinary digital port, the function must be called a global handler loop, as often as possible.

Examples

Examples located in examples sub directory

Scheme

https://github.com/anru/fanspeed/raw/master/examples/shema.jpg

About

Arduino library for reading fan speed in RPM from any digital port

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published