NST1001 Arduino Driver
This is a simple Arduino driver for the NST1001 temperature sensor. (Example below)
This driver utilizes Timer-Counter 1 (TCCR1) to measure the temperature from the sensor.
Overview of functions.
Sensor mode = Normal (single sensor)
Function | Parameters | Comment | Return type |
---|---|---|---|
NST1001 (Constructor) | int, char | int = enable pin char = C, F or K. (unit) |
void |
NST1001 (Constructor) | int | Will default to Celsius. | void |
init | - | Starts timer. | void |
getTemp | - | Returns temperature. | float |
Sensor mode = MultiCast (multiple sensors)
Function | Parameters | Comment | Return type |
---|---|---|---|
NST1001 (Constructor) | int array, char | int array = all enable pins. char = C, F or K. (unit) |
void |
NST1001 (Constructor) | int array | Will default to Celsius. | void |
init | - | void | |
getTemp | int | int = index from the enable pin array | float |
Sensor mode = Free-running(single sensor, no additional GPIO)
Function | Parameters | Comment | Return type |
---|---|---|---|
NST1001 (Constructor) | char | char = C, F or K. (unit) | void |
init | - | Starts timer. | void |
getTemp | - | Returns temperature. | float |
Supported units
- Celsius (default)
- Kelvin
- Fahrenheit