There aremany situations when you might need to measure temperatures or trigger some events due to temperature changes. It is very convenient to have these values in a digital format. Then you can transfer digital values to microcontroller to process data or jus to display on LCD screen.
AD7416 Sensor description
This is 10 bit digital temperature sensor which ca measure temperatures in range interval -40 to 125ï‚°C). Temperature conversion ADC has 15 conversion times. Sensor can be supplied from 2.7 to 5.5V, so it is no problem to connect directly to ARM microcontrollers. Data is transferred through I2C serial interface.
More detailed description â€“ datasheet can be downloaded from Analog devices page: AD7416. Here you find simple routine where Atmega8 microcontroller reads sensor data decodes temperature value and displays it on 2×16 LCD display.
Lets connect everything to simple circuit. Donâ€™t forget to connect pull-Ups to SCl and SDA busses:
Here are few real images of prototyping:
Thatâ€™s it. If you would like to try to run this sensor by your own, here is source code of CodeVision compiler. And already compiled hex in archive. Also I added Eagle libray with AD7416 part in it. AD7416
Have fun 😉