Author Topic: Driving a dual Anode LED  (Read 1626 times)

0 Members and 1 Guest are viewing this topic.

Offline made2hackTopic starter

  • Frequent Contributor
  • **
  • Posts: 424
  • Country: 00
    • Made2Hack
Driving a dual Anode LED
« on: June 23, 2017, 02:03:21 pm »
Hello all,

So I have a dual color LED (Red + Green) that share a common GND. So it is essentially 2 anodes (1 for each colour) and the common GND.

I want to use the 2 pins from the TP4056 (Pin 6 STBY & 7 CHRG) to drive the dual anode LED. Right now, the charge board has 2 separate LEDs. When the system is charging, pin 7 (CHRG) is pulled to GND. A RED LED connected from VCC to Pin 7 through a resistor is turned on.

When charging is done, STBY is pulled low, CHRG goes High-Impedance and a Blue LED turns on (connected from VCC to Pin 6 through a Resistor).

How would I use my dual Anode LED with common GND since both status pins go low to GND?

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: Driving a dual Anode LED
« Reply #1 on: June 23, 2017, 03:26:58 pm »
Quote
How would I use my dual Anode LED with common GND since both status pins go low to GND?
I do not think you can unless :
a) you can change what Pin 6 & 7 do or
b) you need extra components to invert pins 6 & 7
« Last Edit: June 23, 2017, 03:37:01 pm by MosherIV »
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Driving a dual Anode LED
« Reply #2 on: June 23, 2017, 04:52:57 pm »
Google for 'common cathode pnp'
You can use PNP transistors to drive the anodes

https://www.reddit.com/r/electronics/comments/1b8mrr/pnp_transistors_for_common_cathode_rgb_leds/

The fact that the existing signal pulls to ground makes the PNP approach fairly attractive.

Or, buy the right LEDs...
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Driving a dual Anode LED
« Reply #3 on: June 23, 2017, 05:09:42 pm »
My first thought was that it can't be done without more components, my second thought is the 'maybe' below.

If the outputs are open collector you don't need the 1n914s, unfortunately its no-battery indication would now be both leds on instead of both off.
« Last Edit: June 23, 2017, 05:47:44 pm by StillTrying »
.  That took much longer than I thought it would.
 

Offline made2hackTopic starter

  • Frequent Contributor
  • **
  • Posts: 424
  • Country: 00
    • Made2Hack
Re: Driving a dual Anode LED
« Reply #4 on: June 23, 2017, 07:01:58 pm »
Google for 'common cathode pnp'

Ahh, I was using the search phrase 'driving leds from pnp' but that one makes sense.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf