2 LEDs and one pin left


Closed Thread
Results 1 to 40 of 54

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

    My turn to say DOH!!!

    No matter how you connect two LEDs without extra hardware there will be feed back between the two.

    A couple transistors or sayzer's solution are in order for this one.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    How many DOHs are allowed in one day???

    DUH code
    Code:
    BLINK:  
         HIGH PORTG.4 
         PAUSE 250 
         LOW PORTG.4  
         PAUSE 250   
         TRISG.4 = 1 
         PAUSE 2000    
         GOTO BLINK
    And
    Name:  LEDs.jpg
Views: 2307
Size:  15.4 KB
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default well

    Then we have the problem with the idle current.... 2 resistors in serie between Vdd and Vss is going to drain the battery. I like the idea! but the idle current will be almost half of what the LED uses when it is turned on (sssuming 5V Vdd and 2V voltagedrop over the led)

    I dont have my lab stuff here.. does anyone think the idle current might be lower in the circuit i have attached.. or will smoke come out :-)

    Sure there are many ways to solve the problem by adding more things but I am still hoping this will work...

    or it will be DOOH and an other design.

    Thank you!
    Attached Images Attached Images  

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