Menü

Temperature Sensor using LM35 and atmega16 in c

20 Aralık 2017 - Arduino
Rate this post

Elektronik Elemanlar, 30 1.Öğretim, Grup 685

 

This project is a temperature sensor using Lm35 with avr atmega16 and 7-seg for output.we connect Lm35 pins to 5 volts and Gnd and the middle to ADC0 of atmega16 on portA to measure analog input.
We take the temp like 35 and divide by 10 the answer is 3.5 but we store it on integer so it will be 3 and we show this number on the first 7-seg

To extract the second digit to show on second 7-seg we take 35%10 so we will have 5 and we can show it now on second 7-seg.

other parts on schematic are necessary and you will find why they are there by reading your avr datasheet.

We used :

1) atmega 16
2) 2×7seg CA
3) lm7805
4) Arduino
5) 2×300 ohm resistor

Bir cevap yazın

E-posta hesabınız yayımlanmayacak.

Araç çubuğuna atla