Grove_temp_sensor
Driver for Grove temperature sensor
The Grove - Temperature Sensor uses a Thermistor to detect the ambient temperature. The resistance of a thermistor will increase when the ambient temperature decreases. It's this characteristic that we use to calculate the ambient temperature. The detectable range of this sensor is -40 - 125ºC, and the accuracy is ±1.5ºC. In this project, the code is to demonstrate how to use this sensor to measure temperature
Sensor Image:
Pin:
Connection:
video:
Hello world Example:
Import programGrove_Temp_Hello_world
Grove Temp sensor Hello world example
Import library
Public Member Functions |
|
Grove_temp_sensor (PinName pin) | |
Create a
Grove_temp_sensor
object connected to the pin.
|
|
float | read_F () |
Read the temperature in Fahrenheit.
|
|
float | read_C () |
Read the temperature in Celsius.
|
Datasheet:
Please log in to post comments.