Membuat sensor suhu lm 35 menggunakan at mega
Upcoming SlideShare
Loading in...5
×
 

Membuat sensor suhu lm 35 menggunakan at mega

on

  • 3,957 views

membuat sens

membuat sens

Statistics

Views

Total Views
3,957
Views on SlideShare
3,569
Embed Views
388

Actions

Likes
0
Downloads
86
Comments
0

1 Embed 388

http://anotherorion.com 388

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Membuat sensor suhu lm 35 menggunakan at mega Membuat sensor suhu lm 35 menggunakan at mega Presentation Transcript

    • Membuat sensor suhu LM 35 menggunakan ATMega CODEVISION DAN PROTEUS ISIS
    • LM 35 dengan output LCD#include <mega16.h> DDRA=DDRB=0x00;#include <stdlib.h> ACSR=0x80;#asm ADMUX=ADC_VREF_TYPE & 0xff; .equ __lcd_port=0x15 ;PORTC ADCSRA=0xA3;#endasm SFIOR&=0x1F;#include <lcd.h> lcd_init(16);#include <delay.h> while (1)#define ADC_VREF_TYPE 0x00 {unsigned int read_adc(unsigned char adc_input) temp = read_adc(0);{ vin=(float)temp*500/1024;ADMUX=adc_input | (ADC_VREF_TYPE & 0xff); ftoa(vin,1,suhu);delay_us(10); lcd_gotoxy(0,0);ADCSRA|=0x40; lcd_puts(suhu);while ((ADCSRA & 0x10)==0); lcd_gotoxy(5,0);ADCSRA|=0x10; lcd_putchar(0xdf);return ADCW; lcd_putsf(“C”)} delay_ms(1);int temp; };unsigned char suhu[33]; }float vin;void main(void){
    • Rangkaian Skematik
    • Tugas1. Mengubah tampilan LCD dalam °Reamur, °Kelvin dan °Fahrenheit2. Membuat 2 sensor LM 35 di ADC.1 dan ADC.2 dengan output R dan K dalam LCD yang sama3. Mengaktifkan motor ketika suhu mencapai 40°C4. Mengatur kecepatan motor dengan LM35 request codevision program and proteus schematic please ask at http://anotherorion.com or http://anotherorion.multiply.com