Use of a PIC


Results 1 to 9 of 9

Thread: Use of a PIC

Threaded View

  1. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default

    Hi Edwardo,
    My question how do I drive all the leds on using a PIC and supply enough current to light them fully?
    You don't.... what you need to look into is called multiplexing and is basicly how all LED-signs work. From your alarm clock radio to the huge displays at Times Square. Let's take the alarm clock as an example. Basicly the LED's are arranged in groups, you then set the pattern for that particular group and then turn them on. After a short amount of time you turn that group of LED's on and turn on the next group. If this is done quick enough the human eye/brain will not be able to see that they are actually flashing. In order to keep the brightness of LED's up the current thru them is usually many times higher than the maximum continious current for the very short period they are actually on.

    With that being said 1200-1500 LEDs are a LOT of LEDs....Not that it can't be done with a PIC but I'm not sure it's a very good beginners project. Instead I sugest you get 1 LED to turn on and off at your command, then move up to 8 leds connected to portB (for example). When you have that working you can rig a 8*8 matrix and see if you can that going. From there the you could possibly move on and rig a 4*4 matrix of 8*8 matrixes to get 1024 LEDs.

    Another tricky thing to keep in mind is how to store/retrieve/output the pattern that you want to display.

    Here's a link showing how it's done (not with a PIC but anyway):
    http://www.fpga4fun.com/Opto5.html

    Welcome to the forum!

    /Henrik Olsson.
    Last edited by HenrikOlsson; - 14th March 2007 at 19:27. Reason: Added link.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  2. Replies: 67
    Last Post: - 8th December 2009, 03:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 22:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts