You are on page 1of 18

User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

USER MANUAL 1. Development System


Disebut juga sebagai minimum sistem mikrokontroler. Dipakai sebagai modul
utama, artinya semua aplikasi selalu memakai modul ini. Komponen utama
TRAINER KIT MIKROKONTROLER
mikrokontroler. Tipe mikrokontrolernya AVR 40 pin (ATmega8535/ ATmega16/
ATmega32).

Trainer Kit Mikrokontroler terdiri dari 10 modul.

1. Development System
2. Digital I/O
3. Traffic Light Controller
4. 7 Segment Display
5. LCD
6. Dot Matrik
7. Keypad
8. Serial RS232
9. Sensor suhu LM35
10. USB Downloader

Kelengkapan : Keterangan :
Konektor J1 sd J4 merupakan port ekspansi dari PORTA, PORTB, PORTC dan PORTD :
1. Kabel koneksi (pelangi 10 pin) : 2
No Pin J1 J2 J3 J4
2. Kabel koneksi (pelangi 6 pin) : 1
1 PORTA.0 PORTB.0 PORTC.0 PORTD.0
3. Kabel USB printer 2 PORTA.1 PORTB.1 PORTC.1 PORTD.1
4. Kabel Serial 3 PORTA.2 PORTB.2 PORTC.2 PORTD.2
5. Power Supply 4 PORTA.3 PORTB.3 PORTC.3 PORTD.3
5 PORTA.4 PORTB.4 PORTC.4 PORTD.4
6 PORTA.5 PORTB.5 PORTC.5 PORTD.5
7 PORTA.6 PORTB.6 PORTC.6 PORTD.6
8 PORTA.7 PORTB.7 PORTC.7 PORTD.7
9 VCC VCC VCC VCC
10 GND GND GND GND

CV.Kreasi Cipta Teknika Page 1


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

Konektor J5 adalah koneksi dengan USB Downloader. 4 Digit 4 control Segment d control
5 Digit 5 control Segment e control
No Pin J5 6 Digit 6 control Segment f control
1 MISO 7 Digit 7 control Segment g control
2 MOSI 8 Digit 8 control Segment h control
3 SCK 9 VCC -
4 SS 10 - -
5 RST
6 GND
3. DIGITAL I/O

DC IN : female jack untuk koneksi dengan power supply


Catu daya yang diperlukan adalah 5 Vdc, tinggal dihubungkan ke DC IN (hati hati
jangan sampai terbalik polaritas (+) dan (-) karena dapat mematikan
microcontroller). Led indicator merupakan indikasi bahwa power supply sudah ON.
RESET :
Untuk me-reset microcontroller. Setelah reset program akan kembali ke awal
program.

2. 7 SEGMENT DISPLAY Keterangan :

No Pin J1 J2
1 Dig.Out 1 (L1) Dig.Input 1 (sw 1)
2 Dig.Out 2 (L2) Dig.Input 2 (sw 2)
3 Dig.Out 3 (L3) Dig.Input 3 (sw 3)
4 Dig.Out 4 (L4) Dig.Input 4 (sw 4)
5 Dig.Out 5 (L5) Dig.Input 5 (sw 5)
6 Dig.Out 6 (L6) Dig.Input 6 (sw 6)
7 Dig.Out 7 (L7) Dig.Input 7 (sw 7)
8 Dig.Out 8 (L8) Dig.Input 8 (sw 8)
Keterangan : 9 VCC -
10 - GND
No Pin J1 J2
1 Digit 1 control Segment a control
2 Digit 2 control Segment b control
3 Digit 3 control Segment c control

CV.Kreasi Cipta Teknika Page 2


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

4. LCD 2x16 5. KEYPAD 3x4

Keterangan :
No Pin J1
1 Row 1
2 Row 2
3 Row 3
4 Row 4
5 Column 1
Keterangan : 6 Column 2
7 Column 3
8 -
No Pin J1 J2 9 -
1 RS Pemilih koneksi pin RW. 10 -
2 Option Jika RW akan diaktifkan
3 E posisi jumper pada : 1-2
4 D4 Jika RW langsung di-ground-
5 D5 kan posisi jumper pada : 2-3
6. TRAFFIC LIGHT CONTROLLER
6 D6
7 D7
8 D8
9 VCC
10 GND
Untuk mengatur kecerahan tulisan digunakan trimpot contrast

CV.Kreasi Cipta Teknika Page 3


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

Keterangan : Keterangan :
No Pin J1 J2 No Pin J1 J2
1 H2 control H1 control 1 Baris 1 Kolom 1
2 K2 control K1 control 2 Baris 2 Kolom 2
3 M2 control M1 control 3 Baris 3 Kolom 3
4 M3 control H4 control 4 Baris 4 Kolom 4
5 - K4 control 5 Baris 5 Kolom 5
6 - M4 control 6 Baris 6 -
7 - H3 control 7 Baris 7 -
8 - K3 control 8 - -
9 Vcc - 9 - VCC
10 - - 10 - -

7. DOT MATRIX

8. RS-232 CONVERTER

TX = Transmitter (terhubung ke
pin TXD microcontroller)

RX = Receiver (terhubung ke
pin RXD microcontroller)

CV.Kreasi Cipta Teknika Page 4


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

9. USB Downloader PETUNJUK PRAKTIKUM DENGAN TRAINER KIT MIKROKONTROLER


A. Persiapan Hardware
 1 Unit Trainer Kit Mikrokontroler
 Kabel USB printer
 Power Supply 5 V dc
 Komputer/laptop
B. Persiapan Software
 Instal driver USB Downloader. BACA PETUNJUK INSTALASI DI FILE
INSTALASI USB DOWNLOADER.PDF.
 Instal software compiler. Dalam contoh ini memakai BASCOM-AVR.
10. Sensor Suhu LM35  Instal software downloader. Dalam contoh ini menggunakan
eXtremeBurnerAVR.

Praktikum 1 : Digital Output


 Koneksikan USB Downloader dengan J5 pada Development System. Gunakan
kabel pelangi 6 pin. Untuk praktikum berikutnya tetap pada kondisi seperti ini.

CV.Kreasi Cipta Teknika Page 5


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

PC.6 7 / LED 7
PC.7 8 / LED 8
+5V 9 /+5V
GND 10

 Buat program di BASCOM-AVR :


'======================================
'Program 1: Menghidupkan LED di port C
'Chip : ATmega8535
'Clock : 16.000.000 Hz
'======================================
 Jika memakai power supply eksternal posisi jumper J1 pada USB Downloader = ' www.inkubator-teknologi.com @2012
off. Jika memakai power supply dari usb computer maka J1 = on. '======================================
 Koneksikan J3 (PORTC) pada Development System ke J1 pada Digital I/O. $regfile = "m8535.dat"
Gunakan kabel pelangi 10 pin. $crystal = 16000000
Ddrc = &B11111111
Portc = &B10101010

End

 Compile kemudian download ke mikrokontroler. Cara mendownload lihat di file


Instalasi USB Downloader.pdf
 Bisa juga download langsung file Program1.hex yang ada di CD.
 Hasil : LED 1, 3, 5, 7 nyala. LED 2, 4, 6, 8 padam.

 Hubungan antara mikrokontroler dengan LED : Praktikum 2 : Traffic Light Controller


ATmega8535 Modul LED
PC.0 1 / LED 1  Koneksikan J1 (PORTA) pada Development System ke J1 pada Traffic Light dan J3
PC.1 2 / LED 2 (PORTC) ke J2 Traffic Light. Gunakan kabel pelangi 10 pin.
PC.2 3 / LED 3
PC.3 4 / LED 4
PC.4 5 / LED 5
PC.5 6 / LED 6

CV.Kreasi Cipta Teknika Page 6


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

Ddrc = &HFF
Ddra = &HFF
Do
Do
Porta = &B11011110
Portc = &B11110011
Wait 3
Porta = &B11011101
Portc = &B11110011
 Hubungan antara mikrokontroler dengan LED : Wait 1
Mikrokontroller Traffic Light Mikrokontroller Traffic Light Porta = &B11110011
PA.0 1 / H1 PC.0 1 / H4 Portc = &B11110011
PA.1 2 / K1 PC.1 2 / K4 Wait 3
PA.2 3 / M1 PC.2 3 / M4
Porta = &B11101011
PA.3 4 / H2 PC.4 4 /M3
Portc = &B11110011
PA.4 5 / K2 - -
PA.5 6 / M2 - - Wait 1
PA.6 7 / H3 - - Porta = &B10011011
PA.7 8 / K3 - - Portc = &B11111011
+5V 9 - - Wait 3
GND 10 - - Porta = &B01011011
Portc = &B11111011
 Buat program di BASCOM-AVR : Wait 1
'====================================== Porta = &B11011011
'Program 2: Traffic Light Portc = &B11110110
'Chip : ATmega8535 Wait 3
'Clock : 16.000.000 Hz Porta = &B11011011
'====================================== Portc = &B11110101
' www.inkubator-teknologi.com @2012 Wait 1
'====================================== Loop
$regfile = "m8535.dat" End
$crystal = 16000000

CV.Kreasi Cipta Teknika Page 7


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

 Compile kemudian download ke mikrokontroler. Bisa juga download langsung PB.7 8 / seg h PD.7 8 / dig 8
file Program2.hex yang ada di CD. +5V 9 +5V 9
 Hasil : LED akan nyala dengan konfigurasi seperti pada traffic light. GND 10 GND 10

 Buat program di BASCOM-AVR :


'======================================
Praktikum 3 : Seven Segment Display 'Program 3: Tampilan 7 Segmet 8 Digit
' angka 01234567
 Koneksikan J4 (PORTD) pada Development System ke J1 pada Seven Segment 'Chip : ATmega8535
Display. J2 (PORTB) ke J2 Seven Segment Display. Gunakan kabel pelangi 10 pin. 'Clock : 16.000.000 Hz
'============================================
' www.inkubator-teknologi.com @2012
'============================================
$regfile = "m8535.dat"
$crystal = 16000000
Ddrb = &HFF
Ddrd = &HFF
Dim I As Byte
Do
For I = 0 To 7
Portd = Lookup(i , Digit)
Portb = Lookup(i , Angka)
Hubungan antara mikrokontroler dengan Seven Segment Display :
Waitms 2
Mikrokontroler 7 Segment Mikrokontroler 7 Segment
(J1) (J2) Next
PB.0 1 / seg a PD.0 1 / dig 1 Loop
PB.1 2 / seg b PD.1 2 / dig 2 End
PB.2 3 / seg c PD.2 3 / dig 3
PB.3 4 / seg d PD.4 4 / dig 4 Digit:
PB.4 5 / seg e PD.5 5 / dig 5 Data &HFE , &HFD , &HFB , &HF7 , &HEF , &HDF , &HBF , &H7F
PB.5 6 / seg f PD.5 6 / dig 6 Angka:
PB.6 7 / seg g PD.6 7 / dig 7
Data &HC0 , &HF9 , &HA4 , &HB0 , &H99 , &H92 , &H82 , &HF8

CV.Kreasi Cipta Teknika Page 8


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

PC.5 PD.5 6 / Baris 6


PC.6 PD.6 7 / Baris 7
 Compile kemudian download ke mikrokontroler. Bisa juga download langsung PC.7 PD.7
file Program3.hex yang ada di CD. +5V 9 +5V 9
 Hasil : tampil angka 01234567. GND 10 GND 10

 Buat program di BASCOM-AVR :


Praktikum 4 : Dot Matrik '======================================
'Program 3: Dot Matrik
 Koneksikan J3 (PORTC) pada Development System ke J2 (kolom) pada Dot
'Chip : ATmega8535
Matrik. J4 (PORTD) pada J1 (Baris)Gunakan kabel pelangi 10 pin.
'Clock : 16.000.000 Hz
'============================================
' www.inkubator-teknologi.com @2012
'============================================
$regfile = "m8535.dat"
$crystal = 16000000
Config PORTC = Output PORTC = Kolom
Config PORTD = Output PORTD = Baris
Dim I As Byte
Do
For I = 0 To 4
PORTC = Lookup( I , Kolom)
PORTD = Lookup( I , Baris)
 Hubungan antara mikrokontroler dengan Dot Matrik : Waitms 5
Mikrokontroler Dot Matrik Mikrokontroler Dot Matrik Next
(J2) (J1) Loop
PC.0 1 / kol 1 PD.0 1 / Baris 1
Kolom:
PC.1 2 / kol 2 PD.1 2 / Baris 2
Data &HFE,&HFD,&HFB,&HF7, &HEF
PC.2 3 / kol 3 PD.2 3 / Baris 3
PC.3 4 / kol 4 PD.4 4 / Baris 4 Baris:
PC.4 5 / kol 5 PD.5 5 / Baris 5 Data &H80,&HF6,&HE6,&HD6,&HB9

CV.Kreasi Cipta Teknika Page 9


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

PC.7 8 / Tombol 8 PA.7 8 / LED 8


 Compile kemudian download ke mikrokontroler. Bisa juga download langsung +5V 9 +5V 9
file Program4.hex yang ada di CD. GND 10 GND 10
 Hasil : Tampil Huruf R.

 Buat program di BASCOM-AVR :


'======================================
Praktikum 5 : Digital Input 'Program 5: Membaca 8 tombol output LED
'Chip : ATmega8535
 Koneksikan J1 (PORTA) pada Development System ke J1 pada Digital I/O. J3 'Clock : 16.000.000 Hz
(PORTC) ke J2. Gunakan kabel pelangi 10 pin. '============================================
' www.inkubator-teknologi.com @2012
'============================================
$regfile = "m8535.dat"
$crystal = 16000000
Config Portc = Input
Portc = &HFF
Config Porta = Output
Porta = &HFF
Do
If Pinc.0 = 0 Then
 Hubungan antara mikrokontroler dengan Digital I/O : Porta = &B11111110
Elseif Pinc.1 = 0 Then
Mikrokontroler Digital I/O Mikrokontroler Digital I/O Porta = &B11111101
PC.0 1 / Tombol 1 PA.0 1 / LED 1 Elseif Pinc.2 = 0 Then
PC.1 2 / Tombol 2 PA.1 2 / LED 2 Porta = &B11111011
PC.2 3 / Tombol 3 PA.2 3 / LED 3 Elseif Pinc.3 = 0 Then
PC.3 4 / Tombol 4 PA.3 4 / LED 4 Porta = &B11110111
PC.4 5 / Tombol 5 PA.4 5 / LED 5 Elseif Pinc.4 = 0 Then
PC.5 6 / Tombol 6 PA.5 6 / LED 6 Porta = &B11101111
PC.6 7 / Tombol 7 PA.6 7 / LED 7 Elseif Pinc.5 = 0 Then

CV.Kreasi Cipta Teknika Page 10


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

Porta = &B11011111 PD.3 4/-


Elseif Pinc.6 = 0 Then PD.4 5 / DB4
Porta = &B10111111 PD.5 6 / DB5
Elseif Pinc.7 = 0 Then PD.6 7 / DB6
PD.7 8 / DB7
Porta = &B01111111
+5V 9
End If
GND 10
Loop
End  Buat program di BASCOM-AVR :
 Compile kemudian download ke mikrokontroler. Bisa juga download langsung '======================================
file Program6.hex yang ada di CD. 'Program 6: Menampikan Text pada LCD
 Hasil : Tekan tombol 1 maka LED 1 akan nyala, dst. ' *INKUBATEK MITI*
' JOGJAKARTA 2012
Praktikum 6 : LCD 'Chip : ATmega8535
'Clock : 16.000.000 Hz
 Koneksikan J4 (PORTD) pada Development System ke J1 pada LCD. Gunakan '============================================
kabel pelangi 10 pin. Jumper J2 pada LCD pada posisi 2+3. ' www.inkubator-teknologi.com @2012
'============================================
$regfile = "m8535.dat"
$crystal = 16000000
Config Lcdpin = Pin , Rs = Portd.0 , E = Portd.2 , Db4 = Portd.4
Config Lcdpin = Pin , Db5 = PortD.5 , Db6 = PortD.6 , Db7 = PortD.7
Config Lcd = 16 * 2
Cursor Off
Cls
Lcd "*INKUBATEK MITI*"
 Hubungan antara mikrokontroler dengan LCD : Lowerline
Lcd "JOGJAKARTA 2012"
Mikrokontroler Modul LCD
PD.0 1 / RS End
GND 2 / RW
PD.2 3/E

CV.Kreasi Cipta Teknika Page 11


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

 Compile kemudian download ke mikrokontroler. Cara mendownload lihat di file  Buat program di BASCOM-AVR :
Instalasi USB Downloader.pdf '======================================
 Bisa juga download langsung file Program7.hex yang ada di CD. 'Program 7: Membaca Keypad 3x4 tampil di LCD
 Hasil : LED 1, 3, 5, 7 nyala. LED 2, 4, 6, 8 padam. 'Chip : ATmega8535
'Clock : 16.000.000 Hz
'============================================
Praktikum 7 : Keypad ' www.inkubator-teknologi.com @2012
'============================================
 Koneksikan J4 (PORTD) pada Development System ke J1 pada LCD. Gunakan $regfile = "m8535.dat"
kabel pelangi 10 pin. Jumper J2 pada LCD pada posisi 2+3 $crystal = 16000000
 Koneksikan J3 (PORTC) pada Development System ke J1 pada Keypad. Gunakan Ddrc = &B11110000
kabel pelangi 10 pin. Portc = &HFF
Config Lcdpin = Pin , Rs = Portd.0 , E = Portd.2 , Db4 = Portd.4
Config Lcdpin = Pin , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7
Config Lcd = 16 * 2
Cursor Off
Cls
Lcd "Tekan Keypad"
Do
 Hubungan antara mikrokontroler dengan Keypad dan LCD :
'kolom 1 aktif
Portc = &B11101111
Mikrokontroler Keypad Mikrokontroler LCD
If Pinc.0 = 0 Then
PC.0 1 / Row 1 PD.0 1 / RS
PC.1 2 / Row 2 GND 2 / RW Locate 2 , 1
PC.2 3 / Row 3 PD.2 3/E Lcd "Tombol 1"
PC.3 4 / Row 4 PD.3 4/- Elseif Pinc.1 = 0 Then
PC.4 5 / Col 1 PD.4 5 / DB4 Locate 2 , 1
PC.5 6 / Col 2 PD.5 6 / DB5 Lcd "Tombol 4"
PC.6 7 / Col 3 PD.6 7 / DB6 Elseif Pinc.2 = 0 Then
PC.7 PD.7 8 / DB7 Locate 2 , 1
+5V 9 +5V 9 Lcd "Tombol 7"
GND 10 GND 10
Elseif Pinc.3 = 0 Then

CV.Kreasi Cipta Teknika Page 12


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

Locate 2 , 1 Elseif Pinc.3 = 0 Then


Lcd "Tombol *" Locate 2 , 1
End If Lcd "Tombol #"
End If
'kolom 2 aktif Loop
Portc = &B11011111 End
If Pinc.0 = 0 Then
Locate 2 , 1  Compile kemudian download ke mikrokontroler. Bisa juga download langsung
Lcd "Tombol 2" file Program8.hex yang ada di CD.
Elseif Pinc.1 = 0 Then  Hasil : LED 1, 3, 5, 7 nyala. LED 2, 4, 6, 8 padam.
Locate 2 , 1
Lcd "Tombol 5" Praktikum 8 : Serial Komunikasi
Elseif Pinc.2 = 0 Then
 Koneksikan pin RX modul RS-232 ke PORTD.0. pin TX ke PORTD.1. Vcc dan Gnd
Locate 2 , 1
modul Rs-232 ke Vcc dan Gnd Development System.
Lcd "Tombol 8"
 Koneksikan J3 (PORTC) ke J1 Digital I/O.
Elseif Pinc.3 = 0 Then
 Koneksikan port serial RS-232 ke port serial komputer.
Locate 2 , 1
Lcd "Tombol 0"
End If

'kolom 3 aktif
Portc = &B10111111
If Pinc.0 = 0 Then
Locate 2 , 1
Lcd "Tombol 3"  Hubungan antara mikrokontroler dengan modul RS-232 :
Elseif Pinc.1 = 0 Then Minsis 16 Modul Serial
Locate 2 , 1 PD.0 / RXD RX
Lcd "Tombol 6" PD.1 / TXD TX
Elseif Pinc.2 = 0 Then +5V +5V
Locate 2 , 1 GND GND
Lcd "Tombol 9"

CV.Kreasi Cipta Teknika Page 13


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

Hubungan antara mikrokontroler dengan LED : Select Case Tombol


ATmega8535 Modul LED Case "1" : Portc = &B11111110
PC.0 1 / LED 1 Case "2" : Portc = &B11111101
PC.1 2 / LED 2 Case "3" : Portc = &B11111011
PC.2 3 / LED 3 Case "a" : Portc = &B11110111 End Select
PC.3 4 / LED 4
Loop
PC.4 5 / LED 5
PC.5 6 / LED 6 End
PC.6 7 / LED 7
PC.7 8 / LED 8  Compile kemudian download ke mikrokontrolerBisa juga download langsung file
+5V 9 /+5V Program9.hex yang ada di CD.
GND 10  Hasil : Untuk mengetahui hasil program diperlukan program komunikasi di
komputer seperti Hyperterminal. Atur pada baudrate 9600 bps, 1 bit stop, no
 Buat program di BASCOM-AVR : parity, flow control : non.
'======================================
'Program 8 : Mengirim Data Serial 2 Arah
'Chip : ATmega8535
'Clock : 16.000.000 Hz Praktikum 9 : Sensor Suhu LM35
'============================================
' www.inkubator-teknologi.com @2012  Koneksikan J4 pada Development System ke J1 pada LCD. Gunakan kabel
'============================================ pelangi 10 pin.
$regfile = "m8535.dat"  Koneksikan pin OUT modul LM35 ke PORTA.0. pin +5V dan GND ke pin Vcc dan
$crystal = 16000000 GND Development System.
$baud = 9600
Dim Tombol As Byte
Config Portc = Output
Portc = &HFF
Print "tekan sembarang tombol pada keyboard"
Do
Tombol = Waitkey()
Print "tombol yang anda tekan:"
Print Chr(tombol)

CV.Kreasi Cipta Teknika Page 14


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

 Hubungan antara mikrokontroler : Start Adc


Minsis 16 Modul LM35 Minsis 16 Modul LCD Do
PA.0 OUT PD.0 1 / RS V = Getadc(0)
- - GND 2 / RW V=V*5
- - PD.2 3/E T = V / 10
- - PD.3 4/-
Locate 1 , 6
- - PD.4 5 / DB4
Lcd T
- - PD.5 6 / DB5
- - PD.6 7 / DB6 Wait 1
- - PD.7 8 / DB7 Loop
+5V 9 +5V 9
End
GND 10 GND 10
 Compile kemudian download ke mikrokontroler. Bisa juga download langsung
 Buat program di BASCOM-AVR : file Program10.hex yang ada di CD.
'======================================  Hasil : pada LCD tampil nilai suhu.
'Program 9: Membaca sensor suhu LM35
'Chip : ATmega8535
'Clock : 16.000.000 Hz
'============================================
' www.inkubator-teknologi.com @2012
'============================================
$regfile = "m8535.dat"
$crystal = 16000000
Deflcdchar 0 , 12 , 18 , 18 , 12 , 32 , 32 , 32 , 32
Config Lcdpin = Pin , Rs = Portd.0 , E = Portd.2 , Db4 = Portd.4,
Config Lcdpin = Pin , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7
Config Lcd = 16 * 2
Cursor Off
Cls
Config Adc = Single , Prescaler = Auto , Reference = Avcc
Dim V As Word , T As Word
Lcd "Suhu: " ; Chr(0) ; "C"

CV.Kreasi Cipta Teknika Page 15


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

SCHEMATICS : VCC

R16
1. Development System R4 R3 R5 R6 R19 R7 R8
330 330 330 330 330 330 330 330
J12
VCC
C5 100 nF 1 2
D2 D3 D4 D5 D12 D6 D7 3 4
U18

10
D11 VCC 5 6
40 22 LED LED LED LED LED LED LED 7 8

VCC
39 PA0(ADC0) (SCL)PC0 23 J8 9 10
J6
38 PA1(ADC1) (SDA)PC1 24
1 2 37 PA2(ADC2) PC2 25 1 2 CON10A
3 4 36 PA3(ADC3) PC3 26 3 4
5 6 35 PA4(ADC4) PC4 27 VCC 5 6
7 8 34 PA5(ADC5) PC5 28 7 8
VCC 9 10 33 PA6(ADC6) (TOSC1)PC6 29 9 10
PA7(ADC7) (TOSC2)PC7 CON10A
CON10A
1 14
2 PB0(XCK/TO) (RXD)PD0 15
3 PB1(T1) (TXD)PD1 16
4 PB2(INT2/AIN0)(INT0)PD2 17
5 PB3(OC0/AIN1)(INT1)PD3 18
6 PB4(SS) (OC1B)PD4 19
J7
7 PB5(MOSI) (OCB1A)PD5 20 J9
1 2 8 PB6(MISO) (ICP1)PD6 21
3 4 PB7(SCK) (OC2)PD7 1 2
VCC 5 6 9 30 3 4
7 8 RST AVCC VCC 5 6
9 10 12 31 7 8
XTAL2 GND 9 10
CON10A Y1

GND
13 32 CON10A
XTAL1 AREFF
J15 11.0592MHz

11
C2 C3 ATMega8535
5 22pF 22pF
4 VCC VCC 1 2
3
2 J3 3 4
VCC VCC
1
SW1 R1 L1 10uF D14 J3 5 6
2 7 8
1 LED 1
CON5
2 SW1 SW2 SW3 SW4 SW5 SW6 SW7 SW8 9 10
RESET C1 C4
10nF
4K7 CON2 100nF CON10A
CON2

R1
220

3. Traffic Light Controller


2. Digital I/O

CV.Kreasi Cipta Teknika Page 16


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

D3
VCC 5. Dot Matrik
R1 330

VCC
J1
D2
LED R2 330
1 2
3 4 VCC VCC

3
R8 7 x 330
5 6 BC557
2
7 8 R1 7 x 330
D4
LED R3 330 Q1
9 10

1
CON10A R10 R11 R12 R6 R5 R4 D1 D2 D3 D4 D5

330 330 330

3
330 330 330 LED J1 R9
BC557
2
1 2 Q2 R2
3 4
5 6
D3 D2 D4 D3 D2 D4

1
7 8 D6 D7 D8 D9 D10
9 10
LED LED LED LED LED LED RESISTOR

3
R10
BARIS BC557
2
Q3 R3

J2 VCC

1
D3 R9 330 D11 D12 D13 D14 D15
1 2
3 4

3
R11
BC557
5 6 2
Q4 R4
7 8 D2
LED R8 330
9 10

1
D16 D17 D18 D19 D20
CON10A

3
D4 R12
LED R7 330 BC557
2
Q5 R5

1
D21 D22 D23 D24 D25
LED

3
R13
BC557
2
Q6 R6

4. 7 Segment

1
D26 D27 D28 D29 D30

3
R14
BC557
2
Q7 R7

1
J2 a
D31 D32 D33 D34 D35
b
1 2 c J2
3 4 d 1 2
5 6 e 3 4
7 8 f 5 6
9 10 g o o o o o o o o 7 8
9 10
CON10A h
KOLOM
R2 330
1

1
R3 330
2 Q2 2 Q1 2 Q5 2 Q6 2 Q7 2 Q8 2 Q9 2 Q10
VCC
BC557 BC557 BC557 BC557 BC557 BC557 BC557 BC557
3

3
J1
1 2
3 4
VCC 5 6
7 8
9 10
CON10A

CV.Kreasi Cipta Teknika Page 17


User Manual Trainer kit Mikrokontroler User Manual Trainer kit Mikrokontroler

6. Keypad 3x4 8. RS232 Converter


SW2 SW3 SW4

1 2 3
VCC
J1 SW5 SW6 SW7
1 2
CONNECTOR DB9 (MALE)

16
4 5 6
3 4 U3 MAX232
5 6 12 13 1
SW8 SW9 SW10

VCC
7 8 PORTD.0 R1OUT R1IN
9 10 8 9 6
7 8 9 11 R2IN R2OUT 14 2
CON10A PORTD.1 T1IN T1OUT
10 7 7
SW11 SW12 SW13 C5 T2IN T2OUT 3
* 0 # 1 8
1uF C+ 2 4
3 V+ 9
4 C1- C6 5
C4 C2+ 6 1uF

GND
1uF 5 V- P2
C2- C7
1uF

15
7. LCD 2x16

LCD 2X16

9. Sensor Suhu LM35

10
11
12
13
14
15
16
VCC VCC
1
2
3
4
5
6
7
8
9
VCC
VCC VCC
1

2 J1 U1 LM35
1
Trimport 2
J2 1 2 1 2
3 4 VS+ VOUT 3
1 5 6 R1 HEADER 3

GND
2 7 8 47
3

3 VCC 9 10
CON10A
CON3

3
C1
1uF C2
1uF

CV.Kreasi Cipta Teknika Page 18

You might also like