PIC Project: LED Running Light

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.

Harga projek LED Running Light adalah RM100 tidak termasuk bantuan teknikal. Di bawah adalah cara projek ini berfungsi.

PIC Source Code

43 Replies to “PIC Project: LED Running Light”

  1. 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

  2. program pada libraryPeripheral.h dan LibraryHardware.h
    adakah Library tersebut perlu dimodifikasi ataupun gunakan yang sedia ada??

  3. 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!

  4. Oh sorry..didnt realise got the potentiometer there

    Okay..sure..I will learn it..but I cant really make a simple ADC circuit la :(

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.