15 February, 2012

TEXT LED



Salam jumpa..,

Ok tmen2 kali ni ane mo share sama kalian tentang job yg pernah ane dapet suruh buat tulisan pake led tapi dengan biaya murah..,(lain waktu akan ane share cara buat running text).
Yang ini trbilang ckup mudah meskipun sudah berbasis microcontroller.,tpi hnya sebagai switching, so cek aja langsung di sini…,

Pertama mesti siapin komponennya :

  • Led (terserah warna apa sesuai selera, disini ane pake merah)
  • Papan PCB matrik alias Pcb lobang
  • Transistor NPN 2N222
  • Microcontroller (ane pake ATtiny26)kbetulan sisa proyek.,pikir2 hemat ongkos hehe
  • Kabel secukupnya (bisa pake kabel pelangi)
  • tentunya solder & timah  

Dan untuk power supply 5V bisa dlihat di artikel ni http://qabulbee.blogspot.com/2012/02/power-suppy-5v-9v-dan-12v.html

 buat ja supply yg 5 volt.,tentunya untuk rangkaian TEXT LED diatas.


dan untuk contoh skema rangkaian sebagai berikut :




diatas adalah sampel untuk huruf I sedangkan huruf laen kreasi sendiri sesuaikan dengan tulisan yg mau dibuat..,

dan untuk program ane buat pake BASCOM, ni sampelnya :

 '###########################################
'#        
'# By qabulbee.blogspot.com
'#
'###########################################

$regfile = "Attiny26.dat"
$crystal = 12000000

Do

'lampu hidup semua
Porta = &HFF
Portb = &HFF
Waitms 400


'lampu mati semua
Porta = &B00000000
Portb = &B00000000
Waitms 500


'lampu satu persatu lampu hidup
Porta.0 = 1                                                 'I
Waitms 100

Porta.1 = 1                                                 'P
Waitms 100

Porta.2 = 1                                                 'M
Waitms 100

Porta.3 = 1                                                 'R
Waitms 100

Porta.4 = 1                                                 'spasi
Waitms 100

Porta.5 = 1                                                 'S 1
Waitms 100

Porta.6 = 1                                                 'U
Waitms 100

Porta.7 = 1                                                 'M
Waitms 100

Portb.0 = 1                                                 'S 2
Waitms 100

Portb.6 = 1                                                 'E
Waitms 100

Portb.1 = 1                                                 'L
Waitms 500


'lampu satu persatu lampu mati
Portb.1 = 0
Waitms 100

Portb.6 = 0
Waitms 100

Portb.0 = 0
Waitms 100

Porta.7 = 0
Waitms 100

Porta.6 = 0
Waitms 100

Porta.5 = 0
Waitms 100

Porta.4 = 0
Waitms 100

Porta.3 = 0
Waitms 100

Porta.2 = 0
Waitms 100

Porta.1 = 0
Waitms 100

Porta.0 = 0
Waitms 500


'lampu hidup acak
Portb.1 = 1
Waitms 100

Porta.0 = 1
Waitms 100

Portb.6 = 1
Waitms 100

Porta.1 = 1
Waitms 100

Portb.0 = 1
Waitms 100

Porta.2 = 1
Waitms 100

Porta.7 = 1
Waitms 100

Porta.3 = 1
Waitms 100

Porta.6 = 1
Waitms 100

Porta.4 = 1
Waitms 100

Porta.5 = 1
Waitms 500

'lampu 2 persatu lampu hidup
Porta.0 = 1                                                 'I
Porta.1 = 1                                                 'P
Waitms 100

Porta.2 = 1                                                 'M
Porta.3 = 1                                                 'R
Waitms 100

Porta.4 = 1                                                 'spasi
Porta.5 = 1                                                 'S 1
Waitms 100

Porta.6 = 1                                                 'U
Porta.7 = 1                                                 'M
Waitms 100

Portb.0 = 1                                                 'S 2
Portb.6 = 1                                                 'E
Waitms 100

Portb.1 = 1                                                 'L
Waitms 500


'lampu dua persatu lampu mati
Portb.1 = 0
Portb.6 = 0
Waitms 100

Portb.0 = 0
Porta.7 = 0
Waitms 100

Porta.6 = 0
Porta.5 = 0
Waitms 100

Porta.4 = 0
Porta.3 = 0
Waitms 100

Porta.2 = 0
Porta.1 = 0
Waitms 100

Porta.0 = 0
Waitms 500


'lampu hidup acak
Portb.1 = 1
Waitms 30

Porta.0 = 1
Waitms 30

Portb.6 = 1
Waitms 30

Porta.1 = 1
Waitms 30

Portb.0 = 1
Waitms 30

Porta.2 = 1
Waitms 30

Porta.7 = 1
Waitms 30

Porta.3 = 1
Waitms 30

Porta.6 = 1
Waitms 30

Porta.4 = 1
Waitms 30

Porta.5 = 1
Waitms 500

'lampu mati semua
Porta = &B00000000
Portb = &B00000000
Waitms 500

' MODE LAMPU TAHAP DUA


'lampu hidup semua
Porta = &HFF
Portb = &HFF
Waitms 200


'lampu mati semua
Porta = &B00000000
Portb = &B00000000
Waitms 200


'lampu satu persatu lampu hidup
Porta.0 = 1                                                 'I
Waitms 10

Porta.1 = 1                                                 'P
Waitms 10

Porta.2 = 1                                                 'M
Waitms 10

Porta.3 = 1                                                 'R
Waitms 10

Porta.4 = 1                                                 'spasi
Waitms 10

Porta.5 = 1                                                 'S 1
Waitms 10

Porta.6 = 1                                                 'U
Waitms 10

Porta.7 = 1                                                 'M
Waitms 10

Portb.0 = 1                                                 'S 2
Waitms 10

Portb.6 = 1                                                 'E
Waitms 10

Portb.1 = 1                                                 'L
Waitms 200


'lampu satu persatu lampu mati
Portb.1 = 0
Waitms 10

Portb.6 = 0
Waitms 10

Portb.0 = 0
Waitms 10

Porta.7 = 0
Waitms 10

Porta.6 = 0
Waitms 10

Porta.5 = 0
Waitms 10

Porta.4 = 0
Waitms 10

Porta.3 = 0
Waitms 10

Porta.2 = 0
Waitms 10

Porta.1 = 0
Waitms 10

Porta.0 = 0
Waitms 200


'lampu hidup acak
Portb.1 = 1
Waitms 10

Porta.0 = 1
Waitms 10

Portb.6 = 1
Waitms 10

Porta.1 = 1
Waitms 10

Portb.0 = 1
Waitms 10

Porta.2 = 1
Waitms 10

Porta.7 = 1
Waitms 10

Porta.3 = 1
Waitms 10

Porta.6 = 1
Waitms 10

Porta.4 = 1
Waitms 10

Porta.5 = 1
Waitms 200

'lampu 2 persatu lampu hidup
Porta.0 = 1                                                 'I
Porta.1 = 1                                                 'P
Waitms 10

Porta.2 = 1                                                 'M
Porta.3 = 1                                                 'R
Waitms 10

Porta.4 = 1                                                 'spasi
Porta.5 = 1                                                 'S 1
Waitms 10

Porta.6 = 1                                                 'U
Porta.7 = 1                                                 'M
Waitms 10

Portb.0 = 1                                                 'S 2
Portb.6 = 1                                                 'E
Waitms 10

Portb.1 = 1                                                 'L
Waitms 200


'lampu dua persatu lampu mati
Portb.1 = 0
Portb.6 = 0
Waitms 10

Portb.0 = 0
Porta.7 = 0
Waitms 10

Porta.6 = 0
Porta.5 = 0
Waitms 10

Porta.4 = 0
Porta.3 = 0
Waitms 10

Porta.2 = 0
Porta.1 = 0
Waitms 10

Porta.0 = 0
Waitms 200


'lampu hidup acak
Portb.1 = 1
Waitms 50

Porta.0 = 1
Waitms 50

Portb.6 = 1
Waitms 50

Porta.1 = 1
Waitms 50

Portb.0 = 1
Waitms 50

Porta.2 = 1
Waitms 50

Porta.7 = 1
Waitms 50

Porta.3 = 1
Waitms 50

Porta.6 = 1
Waitms 50

Porta.4 = 1
Waitms 50

Porta.5 = 1
Waitms 300

'lampu mati semua
Porta = &B00000000
Portb = &B00000000
Waitms 300

' MODE LAMPU TAHAP TIGA

'lampu hidup semua
Porta = &HFF
Portb = &HFF
Waitms 100


'lampu mati semua
Porta = &B00000000
Portb = &B00000000
Waitms 100


'lampu satu persatu lampu hidup
Porta.0 = 1                                                 'I
Waitms 50

Porta.1 = 1                                                 'P
Waitms 50

Porta.2 = 1                                                 'M
Waitms 50

Porta.3 = 1                                                 'R
Waitms 50

Porta.4 = 1                                                 'spasi
Waitms 50

Porta.5 = 1                                                 'S 1
Waitms 50

Porta.6 = 1                                                 'U
Waitms 50

Porta.7 = 1                                                 'M
Waitms 50

Portb.0 = 1                                                 'S 2
Waitms 50

Portb.6 = 1                                                 'E
Waitms 50

Portb.1 = 1                                                 'L
Waitms 100


'lampu satu persatu lampu mati
Portb.1 = 0
Waitms 50

Portb.6 = 0
Waitms 50

Portb.0 = 0
Waitms 50

Porta.7 = 0
Waitms 50

Porta.6 = 0
Waitms 50

Porta.5 = 0
Waitms 50

Porta.4 = 0
Waitms 50

Porta.3 = 0
Waitms 50

Porta.2 = 0
Waitms 50

Porta.1 = 0
Waitms 50

Porta.0 = 0
Waitms 100


'lampu hidup acak
Portb.1 = 1
Waitms 50

Porta.0 = 1
Waitms 50

Portb.6 = 1
Waitms 50

Porta.1 = 1
Waitms 50

Portb.0 = 1
Waitms 50

Porta.2 = 1
Waitms 50

Porta.7 = 1
Waitms 50

Porta.3 = 1
Waitms 50

Porta.6 = 1
Waitms 50

Porta.4 = 1
Waitms 50

Porta.5 = 1
Waitms 100

'lampu 2 persatu lampu hidup
Porta.0 = 1                                                 'I
Porta.1 = 1                                                 'P
Waitms 50

Porta.2 = 1                                                 'M
Porta.3 = 1                                                 'R
Waitms 50

Porta.4 = 1                                                 'spasi
Porta.5 = 1                                                 'S 1
Waitms 50

Porta.6 = 1                                                 'U
Porta.7 = 1                                                 'M
Waitms 50

Portb.0 = 1                                                 'S 2
Portb.6 = 1                                                 'E
Waitms 50

Portb.1 = 1                                                 'L
Waitms 100


'lampu dua persatu lampu mati
Portb.1 = 0
Portb.1 = 0
Waitms 50

Portb.0 = 0
Porta.7 = 0
Waitms 50

Porta.6 = 0
Porta.5 = 0
Waitms 50

Porta.4 = 0
Porta.3 = 0
Waitms 50

Porta.2 = 0
Porta.1 = 0
Waitms 50

Porta.0 = 0
Waitms 100


'lampu hidup acak
Portb.1 = 1
Waitms 10

Porta.0 = 1
Waitms 10

Portb.6 = 1
Waitms 10

Porta.1 = 1
Waitms 10

Portb.0 = 1
Waitms 10

Porta.2 = 1
Waitms 10

Porta.7 = 1
Waitms 10

Porta.3 = 1
Waitms 10

Porta.6 = 1
Waitms 10

Porta.4 = 1
Waitms 10

Porta.5 = 1
Waitms 100

'lampu mati semua
Porta = &B00000000
Portb = &B00000000
Waitms 100

Loop


trakhir ni contoh yang dah ane buat.,he he





Semoga bermanfaat, selamat mencoba..,n_n

06 January, 2012

POWER SUPPY 5V 9V dan 12V

oke brolek (bro elektronik) he..he

bagi yang hobi elektronika n mo coba2 buat rangkaian pasti lo butuh power supply sebagai sumber tegangan, kali ini kita akan  coba belajar membuatnya dari tegangan AC dengan kluaran DC dimana outputnya yaitu 5V,9V dan 12V. itung2 ktimbang pake batrei trus kan boros hrus beli mulu klu batrei dah abis pa lgi klu bukan btrei rechargable. hmat ongkos kan klu pake ni rangkaian.

siapin ni komponen :

* Trafo engkel 2A
* dioda bridge 2A atau bisa pake dioda 1N001/2 2A
* capacitor 470uF/16V or UP
* capacitor 100nF 
* IC regulator 7805,7809,7812
* resistor 220, 1K
* terminal
n slebihnya kreasi sendiri..,

ni rangkaiannya bro :


n ni skema PBCnya buat pake PCBWIZARD


nah klu dah jadi seperti ni :


dan biar mudah dalm penggunaan langsung aja ane pasang ke akrilik + projectboard


ini hasil akhir ane brolek

oke., selamat mencoba...,smoga sukses.

04 November, 2011

SENSOR SUHU LM35 dg Micro ATmega8535 + LCD display + Buzzer

wah..,dah lama gak posting nih. n skarang coba lagi utk ngblog stelah kian lama mati suri...he he he.,

ok bro kli ni gue dapet job buat pengukur suhu kolam pake sensor LM35 n gue pake micro ATmega8535
  
lom tu lo kudu siapin komponen pendukung bro, karna mustahil tanpa komponen soalnya ni dunia nyata bukan magic, ha ha ha  relaks bro just kidding.,n_n

komponen : (saran : lo mesti nyari di toko komponen elektronik, jngan d pasar buah. ya iya lah)
- microcontroller AVR ATmega8535
- Crystal 12 MHz
- kapasitor 33 pF
- PCB
- sensor suhu LM35 
- buzzer 
- LCD display (20x4 / 16x2 trgantung kbutuhan lo bro)
- pin male & female
- kabel (pelangi utk permudah hafal jalur)
- resistor variabel 50 ohm

tu ane kira utk kompenen utamanya bro, selebihnya kreasi pribadi, anak indonesia kan kreatif 
          ^^^^^hidup anak indonesia^^^^^

go action :

rangkai komponen tadi kyak gambar dbwah ni,



pastiin bro rangkaian lo gak salah..,OK

nah klu dah dirakit tu smua komponen lo mesti buat listing programnya, tersrah lo mo pake program apa, n kali ni gue pake BASCOM (Basic Compiler)

'######################################################'
'*** LISTING PROGRAM SENSOR SUHU LM35                    ***'
'*** NAMA               = qabulbee.blogspot.com                            ***'
'*** JUR & ANG      = TEKNIK ELEKTRO 2007               ***'
'*** UNIVERSITAS SRIWIJAYA                                                ***'
'######################################################'


$regfile = "M8535.dat"
$crystal = 12000000

Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0
Config Lcd = 16 * 2

Buzzer Alias Portb.0
Aman Alias Portc.7
Bahaya Alias Portc.6

Config Adc = Single , Prescaler = Auto , Reference = Internal
Dim Dataadc As Word , Datasuhu As Single
Const Vreff = 5.00
Start Adc

Cls
Cursor Off
Locate 1 , 1
Lcd "*qabulbee.blogger*"
Locate 2 , 14
Lcd Chr(223) ; "C"
Locate 2 , 1
Lcd "SUHU ="

Do

Dataadc = Getadc(5)
Datasuhu = Dataadc / 1024
Datasuhu = Datasuhu * Vreff
Datasuhu = Datasuhu * 100
Locate 2 , 8
Lcd "" ; Fusing(datasuhu , "#.##")

If Datasuhu > 30 Then
Aman = 0
Bahaya = 1
Buzzer = 1

Elseif Datasuhu < 30 Then
Aman = 1
Bahaya = 0
Buzzer = 0
End If

Waitms 100
  Loop
End

nah slesai deh ni listing programnnya, loh kog gak jlan alat gue, tenang bro lo kan blum masukin ni listing programnya ke micro ATmega8535. yg jelas jngan pake gancu bro

so pake downloader karena ni alat didesain tanpa downloader klu pengen skalian downloader lo bisa kembangin sendiri bro., OK

 ni Downloader yg ane pake pabrikan dari Micro+ TRAINING..,nah ni jga butih driver usbnya biar detect di PC.
 dah sbuah software lagi yaitu KHAZAMA AVR programmer yg bisa BroLek (bro elektro) lihat di khazama.com

nih tampilan softwarenya :



 tretet..,tretet..,tretet..,tretet download program selesai..,nah ni alat ane BROLEK.



























       

  



18 September, 2011

Robot LineFollower Sederhana




Sembari ngisi waktu luang, dari pada bengong kyak ayam kesurupan.,(ada gak kali ya), ane mo sharing lagi nih apa yg pernah ane buat n ajarkan sama anak2 X-SKUL dulu. Yaitu membuat robot line follower sederhana alias tanpa menggunakan microcontroller. Robot ini cukup simple n mudah dan ini juga sebagai dasar belajar membuat robot line follower sebelum menggunakan micro. Jika ini udah paham ane pastiin tmen2 paham cara kerja ni robot nantinya.
Yuk langsung aja ke KTP eeeh.., TKP :
Siapin ni komponen’’nya :
·         Resistor 1K                      = 2 buah
·         Resistor 3K                     = 2 buah
·         LDR  / photodioda               = 2 buah
·         Trimpot 50KΩ                     = 2 buah
·         Transistor 2N3906               = 2 buah
·         Transistor 2N3904                = 2 buah
·         Led  / infrared                       = 2 buah
·         Motor DC                            = 2 buah
·         Serta mobil mainan tank= 2 buah (untuk body robot atau bias buat sendiri).

Kemudian rangkailah sesuai skema rangkaian dibawah ini :


nih robot yg ane buat :




Demikian sharing hari ini, SELAMAT MENCOBA..,

mhon komentarnya demi kemajuan bersama..,