You already know my silicon diode thermometer,
this time I'm using a Microchip MCP9700A analog temperature sensor :
cheap and easy to use, factory calibrated, it is plug and play.
Let's plug it to an EasyPIC4 to see how we can play with it !
the sensor : Microchip MCP9700A Thermistor
The MCP9700A is a low power linear active thermistor from Microchip, it features :
It is designed to be directly connected to a PIC analog input :
MCP9700A circuit example (from Microchip datasheet)
Its linear output simplifies software : 500mV ouput is 0°C, and 10mV is 1°C :
MCP9700A output voltage curve (from Microchip datasheet)
Other similar sensors of the same family are MCP9700, MCP9701, MCP9701A.
To learn more about these sensors, please read the datasheet :
http://ww1.microchip.com/downloads/en/DeviceDoc/21942c.pdf
Plug and play
If you have an EasyPIC board, just put the MCP9700A sensor in place of the DS1820 sensor this way :
Take care to plug the MCP9700A correctly : the flat side of the package must be on the D1820 curved side !
Then connect JP14 to RE2. That's all !
C source code example
Here is a mikroC source code example to display temperature in Celcius and Fahrenheit degrees on a LCD, using a MCP9700A temperature sensor.
If you don't have mikroC compiler you can download it from : http://www.mikroe.com/en/compilers/mikroc/pic/
As you can see, I took advantages of the new mikroC LCD custom character generator to build symbols for °C and °F, as well as new "export code to HTML" feature of mikroC V7.0.0.3 to add color to the source code for better clarity :
|
Is it plugged ? Then play !
It should work at first try, this is what you should get on your LCD screen :
Plug and play, as I said
This sensor can take place in applications where relative temperature changes are monitored, rather than absolute temperature : computer fan control, home appliance, motors and batteries temperature control for robotics...
Please report bugs, comments or suggestions in my forum.