L.e.d


Closed Thread
Results 1 to 40 of 40

Thread: L.e.d

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You could do that, but for a first project it would be a nightmare.

    Go to microchip.com and look at their sample program. They give free samples!

    I would point you to 16F877A for starters.
    Dave
    Always wear safety glasses while programming.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    The 16F877A is a nice start is rather friendly. I personally like the 18F series though. I find they are easier to configure. At least for selecting the ADC ports.

  3. #3
    Join Date
    Jul 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Picaxe

    Marty,

    I STRONGLY suggest you to go with Picaxe chips. Much easier to start with and most of what you will learn will be usefull if you later want to 'upgrade' to picbasic. I DID IT and enjoyed it.

    You will be able to do almost everything you can do with picbasic too, but it's not as fast because the program is interpreted instead of being compiled (no hex files). On top of that you will NOT need to pay for a compiler and you don't need a programmer (hardware) either. And you know what, a picaxe is just a microchip PIC with a bootloader and an interpreter!

    Look at their forums, they are very friendly with newbies.
    http://www.picaxeforum.co.uk/

    J-P

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Go to microchip.com and look at their sample program. They give free samples!

    thought I already mentioned that. lol

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by nomad View Post
    thought I already mentioned that. lol
    Yup, but when the high cost was mentioned I figured it needed said again.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Oct 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Hi, my electronic teacher has suggested me to connect 2 pic's together but i don't have a clue how to. Can someone help me please

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You can hook two PICs together with some sort of serial communication but again for a first project I would not recommend.

    The basic idea is to send a command from PIC#1 to PIC#2. When PIC#2 receives a command it will execute an operation. The manual tells how to get started with serial comms.

    Have you blinked a LED with one chip yet?
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Oct 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Wink

    Yes i want control over around 16 L.E.Ds but i cannot find a pic with 16 outputs so i thought connecting 2 pic together would be a better solution. Which command should i send from pic 1 to pic 2?
    Thanks

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Marty,

    For your first project I strongly recommend using just one chip. There are plent of PICs with 16 and more IOs.

    The 16F877A-I/P would be a good one to start with. At least I like it. 33 I/Os.
    http://www.microchip.com/stellent/id...cName=en010242
    But if you look here you can find others. Just make sure your programmer will support it. And get something in the "F" , 16Fxxxx. These are flash memory.
    http://www.microchip.com/ParamChartS...g=en&pageId=74

    If you still want to use two the send part would look something like this.
    Code:
    SEROUT PORTC.4,T2400,[9,3] '9 is the character the receiving
                                               PIC is waiting for, 3  is the command
    The receiving code
    Code:
    SERIN PORTC.4,T2400,[9],net  'when  9  is received  the  next  
                                       character  is  written  to  variable  "net"
    
    IF net = 3 THEN Do something
    Here is a simple example of how to control more LEDs than you have pins.
    http://www.mackrackit.com/mac/www/dave/LED/LEDs.html
    Dave
    Always wear safety glasses while programming.

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