Presentation 1
Presentation 1
Presentation 1
LM35
Oleh :
Gilang Anugerah (184308003)
Ghea Putri (184308010)
M. Azro Dzikri (184308013)
U2(+VS)
APK-TECH | techno-apk.blogspot.com
AREF
13
PB5/SCK
12
PB4/MISO
RESET 11
~PB3/MOSI/OC2A
10 1 20
~ PB2/SS/OC1B
9 2 19
~ PB1/OC1A
1 8 3 18
PB0/ICP1/CLKO
4 17
ATMEGA328P-PU
1121
DIGITAL (~PWM)
LM35
U2
7 5 16
ANALOG IN
PD7/AIN1
6 6 15
5.0 A0 ~ PD6/AIN0
PC0/ADC0 5 7 14
A1 ~ PD5/T1
PC1/ADC1 4 8 13
A2 PD4/T0/XCK
2 PC2/ADC2 3 9 12
VOUT A3 ~ PD3/INT1
PC3/ADC3 2 10 11
A4 PD2/INT0
PC4/ADC4/SDA 1
A5 TX PD1/TXD
PC5/ADC5/SCL 0
LED-BARGRAPH-RED
U1
RX PD0/RXD
3
ARDUINO UNO R3
DUINO1
U2(+VS)
APK-TECH | techno-apk.blogspot.com
AREF
13
PB5/SCK
12
PB4/MISO
RESET 11
~PB3/MOSI/OC2A
10 1 20
~ PB2/SS/OC1B
9 2 19
~ PB1/OC1A
1 8 3 18
PB0/ICP1/CLKO
4 17
ATMEGA328P-PU
1121
DIGITAL (~PWM)
LM35
U2
7 5 16
ANALOG IN
PD7/AIN1
6 6 15
139.0 A0 ~ PD6/AIN0
PC0/ADC0 5 7 14
A1 ~ PD5/T1
PC1/ADC1 4 8 13
A2 PD4/T0/XCK
2 PC2/ADC2 3 9 12
VOUT A3 ~ PD3/INT1
PC3/ADC3 2 10 11
A4 PD2/INT0
PC4/ADC4/SDA 1
A5 TX PD1/TXD
PC5/ADC5/SCL 0
LED-BARGRAPH-RED
U1
RX PD0/RXD
3
ARDUINO UNO R3
DUINO1
void loop() {
temp = analogRead (tempPin);
float temp;
temp = (5.0 * temp * 100.0)/1024.0;
int tempPin = 0;
Serial.print (temp);
int pin2 = 2;
Serial.println ();
int pin3 = 3;
if (temp >=12.00) {digitalWrite (pin2, HIGH);}
int pin4 = 4;
if (temp >=20.00) {digitalWrite (pin3, HIGH);}
int pin5 = 5;
if (temp >=30.00) {digitalWrite (pin4, HIGH);}
int pin6 = 6;
if (temp >=45.00) {digitalWrite (pin5, HIGH);}
int pin7 = 7;
if (temp >=60.00) {digitalWrite (pin6, HIGH);}
int pin8 = 8;
if (temp >=75.00) {digitalWrite (pin7, HIGH);}
int pin9 = 9;
if (temp >=90.00) {digitalWrite (pin8, HIGH);}
int pin10 = 10;
if (temp >=105.00) {digitalWrite (pin9, HIGH);}
int pin11 = 11;
if (temp >=110.00) {digitalWrite (pin10, HIGH);}
int pin12 = 12;
if (temp >=125.00) {digitalWrite (pin11, HIGH);}
void setup() {
if (temp >=140.00) {digitalWrite (pin12, HIGH);}
pinMode (pin2, OUTPUT);
delay (500);
pinMode (pin3, OUTPUT);
digitalWrite (pin12, LOW);
pinMode (pin4, OUTPUT);
digitalWrite (pin11, LOW);
pinMode (pin5, OUTPUT);
digitalWrite (pin10, LOW);
pinMode (pin6, OUTPUT);
digitalWrite (pin9, LOW);
pinMode (pin7, OUTPUT);
digitalWrite (pin8, LOW);
pinMode (pin8, OUTPUT);
digitalWrite (pin7, LOW);
pinMode (pin9, OUTPUT);
digitalWrite (pin6, LOW);
pinMode (pin10, OUTPUT);
digitalWrite (pin5, LOW);
pinMode (pin11, OUTPUT);
digitalWrite (pin4, LOW);
pinMode (pin12, OUTPUT);
digitalWrite (pin3, LOW);
Serial.begin (9600);
digitalWrite (pin2, LOW);
}
delay (1);
}
AREF
13
PB5/SCK
12
PB4/MISO
RESET 11
~PB3/MOSI/OC2A
10
~ PB2/SS/OC1B
9
~ PB1/OC1A
8
PB0/ICP1/CLKO
1121
7
APK-TECH | techno-apk.blogspot.com
PD7/AIN1
6
A0 ~ PD6/AIN0
PC0/ADC0 5
A1 ~ PD5/T1
ATMEGA328P-PU
PC1/ADC1 4
A2 PD4/T0/XCK
PC2/ADC2 3
A3 ~ PD3/INT1
ANALOG IN
PC3/ADC3 2
A4 PD2/INT0
PC4/ADC4/SDA 1
DIGITAL (~PWM)
A5 TX PD1/TXD
PC5/ADC5/SCL 0
RX PD0/RXD DUINO1
10
R1
ARDUINO UNO R3
Volts
0.00
Saat Suhu di Bawah 28°C
D1
LED-YELLOW
1
3
28.0
VOUT
2
U1
LM35
AREF
13
PB5/SCK
12
PB4/MISO
RESET 11
~PB3/MOSI/OC2A
10
~ PB2/SS/OC1B
9
~ PB1/OC1A
8
PB0/ICP1/CLKO
1121
7
APK-TECH | techno-apk.blogspot.com
PD7/AIN1
6
A0 ~ PD6/AIN0
PC0/ADC0 5
A1 ~ PD5/T1
ATMEGA328P-PU
PC1/ADC1 4
A2 PD4/T0/XCK
PC2/ADC2 3
A3 ~ PD3/INT1
ANALOG IN
PC3/ADC3 2
A4 PD2/INT0
PC4/ADC4/SDA 1
DIGITAL (~PWM)
A5 TX PD1/TXD
PC5/ADC5/SCL 0
RX PD0/RXD
DUINO1
10
R1
ARDUINO UNO R3
Volts
+2.45
Saat Suhu di Atas 28°C
D1
LED-YELLOW
1
3
31.0
VOUT
2
U1
LM35
Program Arduinno