Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance 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

AltStyle によって変換されたページ (->オリジナル) /