Led + resistor ?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    Maybe there is something in this pic's hardware to produce this behavior.
    Solderless breadboard?
    Move everything up/over a few holes and see what happens...

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hello Skimask,

    It's on the solderless breadboard that it's working as it should.

    It's on the pcb that i get this strange behavior.

    I'm beginning to suspect that the max1724 is not handling it very well.

    i'm going to simulate on the breadboard the final circuit ( including the max1724 ) and let's see what happens .

  3. #3


    Did you find this post helpful? Yes | No

    Default

    You need to check the data sheet for the specific PIC device you are using. Not all pins are direct drive. Some are only open collector and need pull-ups if you need a high output. Also, what level are you using to turn your LEDs on? The I/O pins will drive a higher current for a low(8.5 mA) than a high(-3 mA). So the best bet is to connect the LEDs to you positive rail to the anode and the I/O pin to the cathode.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thanks falingtrea, that is a good idea.

    In fact i was going to change my code to do that by i remembered that one of the ports i mentioned is one bi-color led ( green and red with comon anode ) and the green one doesn't light up.

    This was what i changed :

    PortA.7 and portB.4 added a 2K resistor in series.
    Remaining ( working ) ports...left as is ( meaning...without resistors )

    Result :

    Now all led light up normally !!!

    Still, i have to mention the hardware feature in these 2 ports that produce this behavior.

    I searched the 16F88's datasheet and i could not find anything that could link to this .

    .

Similar Threads

  1. Can I drive a 5v LED without a current resistor?
    By Fredrick in forum Schematics
    Replies: 31
    Last Post: - 11th September 2009, 14:42
  2. Calulating BJT base resistance for PIC led switching?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 20th November 2008, 08:41
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 13:27

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