|
|||
ARDUINO: ACTIVE SENSOR THERMOMETER |
|||
|
|||
|
|||
INTRODUCTION This is a ambient thermometer based on the active sensor made by Microchip. The device is the MCP9701. The most characteristic of this device is the temperature representation by a voltage and its output characteristic defined by the formula: vout = tc * ta + vout0 where vout0 is the voltage at 0 °C while tc is the temperature coefficient. The tc for the MCP 9071 / A is 19.5 mV / °C while for the MCP9700 / A is 10 mV / °C. The output voltage vout0 for the MCP9701 / A is 400mV.
The temperature ta, note the
voltage vout, is
ta = (vout-
vout0) / tc The value of Vout
is obtained by averaging 1024
samples of the voltage on the pin A0 that is connected to the sensor
output. The value of ta
will be calculated by the formula and shown on
the serial monitor of the IDE program on the PC. You can use the the
IDE serial plotter to see a graphic of the time evolution of the
temperature. HARDWARE IMPLEMENTATION
The hardware implementation is
executed by using the Arduino MEGA 2560 card: just connect the active
sensor as shown in the figure. Pin A0 is set as an analog input for
converting the output voltage of the sensor to the AD. SOFTWARE
IMPLEMENTATION
Here the code ( for arduino )
. This code can be downloaded at this link: ActiveTherm.zip
VIDEO This video shows the connection
between the active sensor MCP9701 and the Arduino Mega 2560. In
the PC monitor where the IDE programm is running the temperature is
shown using the serial monitor of the IDE program
|
|
||
|
|||
|
|||
|