Skip to content

Simple tachometer class for Mbed OS6 based on InterruptIn with a Ticker to calculate RPM at a given rate

Notifications You must be signed in to change notification settings

SuperThunder/Tach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tach

Simple tachometer class for Mbed OS6 based on InterruptIn with a Ticker to calculate RPM at a given interval. Uses a to track the actual time elapsed between RPM calculations.

Installation

Navigate to your project directory, and enter the command: mbed add https://github.com/SuperThunder/Tach.git

Usage

//Tach starts automatically when object created
Tach fan_tach(TACH_PIN);
...
void print_tach()
{
    printf("Tach reading (RPM): %d\n", fan_tach.getRPM());
}

//Functions available
uint32_t getRPM();
void setCalculationInterval(chrono::milliseconds t);

void reset();
void start();
void stop();

About

Simple tachometer class for Mbed OS6 based on InterruptIn with a Ticker to calculate RPM at a given rate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages