LED Running Light mempunyai 24 LED, 1 push button dan 1 variable resistor. LED Running Light boleh diprogram dengan pelbagai jenis nyalaan, apa saja projek-projek berkaitan seperti LED blinking, Knight Rider ataupun Traffic Light.
Skematiknya adalah seperti berikut.
PCB komponen layout nya adalah seperti berikut.
Senarai komponen projek LED Running Light seperti berikut.No | Component | Label | Unit |
---|---|---|---|
1 | 008 PCB PIC LED Running Light (98mm X 74mm) | PCB | 1 |
2 | Capacitor Ceramic 0.1uF | C3 | 1 |
3 | Capacitor Electrolytic 10uF | C1-C2 | 2 |
4 | DC Jack Female | DC Jack Female | 1 |
5 | Diode 1N4001 | D1 | 1 |
6 | IC PIC16F1939 DIP | PIC16F1939 | 1 |
7 | IC Socket 40pin | PIC16F1939 | 1 |
8 | LED Green 5mm | LED17-LED24 | 8 |
9 | LED Red 5mm | LED1-LED8 | 8 |
10 | LED Yellow 5mm | LED9-LED16 | 8 |
11 | PCB Stand (screw nut) | PCB Stand | 4 |
12 | Push Button 4 pin 6x6x1 | PB1 | 1 |
13 | Resistor 0.25W 1K | R25 | 1 |
14 | Resistor 0.25W 330 | R1-R24 | 24 |
15 | Right Angle Pin Header (Male) | ICSP | 1 |
16 | Slide Switch | S1 | 1 |
17 | Terminal Block 2 Way | PWR | 1 |
18 | Variable Resistor (Preset) 1K | R26 | 1 |
19 | Voltage Regulator 5V TO220 | 7805 | 1 |
Harga projek LED Running Light adalah RM100 tidak termasuk bantuan teknikal. Di bawah adalah cara projek ini berfungsi.
PIC Source Code
Sertai Telegram Group bagi dapatkan source code
43 responses to “PIC Project: LED Running Light”
menarik jgk projek ni.PIC tu kne program sndiri ke?hya dgn tekan push button nyalaan led tu dah berubah…
sweetgurlz, ya betul. Program boleh simpan byk jenis nyalaan LED, programkan push button untuk menukarnya.
owh, terkenang zaman belajar dulu.
aku pernah buat running light ni masa Tahun 1.
seronok. tapi aku kurang mahir part nak solder kaki hehe
dah lama tinggalkan benda ni..last masa PMR dulu, subjek KH..hehe
Fuhh, elektronik aku pening kit…kalo elektrikal ok la juga…
dalam programming….saya nak tanya…apa beza void main() dengan void main(void)….kadang2 , cth lain,,
void intterupt( kalau ada tulis something dalam bracket ni)…apa maksud dia…boleh tak contoh dan terangkan maksud dia?thanks
biasanya wat pcb design guna software apa?
Design PCB guna software Protel DXP
hanya bertanya, bolehkah pic 18F877A ditukar dgn pic 18F4550 utk same application?
Application yg sama, boleh guna PIC16F877A atau PIC18F4550, tapi ada perbezaan configuration.
in this circuit we need to use ADC configuration ? where is the part that need it ?
Thank you
ADC configuration is ADCON0, ADCON1, ANSEL and ANSELH.
why we use ADC in here?
You see the video, the ADC use to vary the speed Blink LED.
what is the analog input then ?
You see the schematic, ADC comes from variable resistor. Why not you research for your own. This code I give for free.
Oh sorry..didnt realise got the potentiometer there
Okay..sure..I will learn it..but I cant really make a simple ADC circuit la 🙁
boleh bagi code dalam hex tak..nnti email pada nabilahomar@yahoo.com
nabilah, x boleh. Saya dah bagi C code, boleh taip dan belajar sendiri. Kalau bagi hex code, memang x berguna langsung.
boleh bagi example tak mcm mn nak tukar kepada code hexa
Compile guna software MPLab.
When I compiled the source code, I got the following error:
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.83
Copyright (C) 2011 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
LibraryADC.h: read_a2d()
11: if(channel<=7) ANSEL=ANSEL|(0b00000001<<channel);
^ (192) undefined identifier "ANSEL"
12: else ANSELH=ANSELH|(0b00000001<<(channel-8));
^ (192) undefined identifier "ANSELH"
run-led.c: pic_init()
844: ANSEL=0b00000000;
^ (192) undefined identifier "ANSEL"
845: ANSELH=0b00000000;
^ (192) undefined identifier "ANSELH"
(908) exit status = 1
Should I define them directly? Thank you, Shahrul. Your projects rock!
salam, nak tnye programmming untuk project ni. boleh email kat saya tak? TQ.=)
progrmng nie pakai power supply yang brpa VOLT dan PIC yang jenis mana??
Zamira, power supply 9V-12V, PIC16F887.
program pada libraryPeripheral.h dan LibraryHardware.h
adakah Library tersebut perlu dimodifikasi ataupun gunakan yang sedia ada??
salam…saya suka dgn projek PIC nie…blh tak letak program utk PIC sekali…bb saya br belajar buat program PIC..ataupn email ke email sy untuk dijadikan contoh n tambah pengetahuan saya
w/salam, junaidah. Program ini kena bayar.
Brapa harga untuk program ini?
Arif, e-mail saya kat Tentang Saya.
salam bro..bleh mintak coding tak?? nk blaja la…nk ubah sikit2 nanti…anta kt emel saya
w/salam, Hafiz. Sy x boleh bg coding.
Hi
Could you send me the code for above project PIC Project: LED Running Light
lsumith@gmail.com
thanks
Lasantha
This is not for free, please find on google.
assalamualaikum, boleh tak kalau saya nak kan semua maklumat tentang LED ni?
terima kasih
waalaikumussalam, aca. Saya tiada semua maklumat tentang LED. Boleh search google.
hex fail ?
pnjangnye coding.. npe x shifting bit je
alip, saja buat customize nyalaan LED. Lagi pun susunan 1 baris LED x ikut 1 port PIC, tp ikut susunan senang routing PCB.
macam mana cara nya kalau saya nak beli pengaturcaraan untk projek led running light ni?
fatin nazua, boleh hubungi saya kat http://shahrulnizam.com/about/
hello my friend please help me
i have tried the above code but its not working for me showing so many errors
please give me the hex file for pic16f877a
if you want i can pay small amount to you.
thank you
Can contact me at http://shahrulnizam.com/about/