2021-06-04 05:41 AM
How to drive bicolor LEDs by one pin. I think turn off LEDs when setting GPIO input. But it is not. On pin high level. What is problem.
2021-06-04 05:59 AM
When you set GPIO as input youre effectively removing the conexion, what remains is both leds with their resistors perfectly polariced to start driving current.
If this design is already in place you could try to increase R1 and R2 untill they are big enough to avoid D1 and D2 to simultaneously drive current when you set GPIO input.
I expect this to be happening in this setup:
Try this instead:http://dangerousprototypes.com/blog/2011/10/24/driving-a-bicolor-led-from-a-single-output-pin/
2021-06-04 06:06 AM
i want to turn LEDs off. Then to make the GPIO input, it has to be HI-Z. But not D2 is light on.
2021-06-04 06:32 AM
I didnt understand you.
You mean when GPIO is input only D2 is on?
2021-06-04 06:35 AM
Same not complete working!!! only one is working.
2021-06-04 08:20 AM
For example One led over CR filter to gnd, second over RC to gnd. Then GPIO L no led , GPIO H Led 2 light and calculated PWM only 1 or both...
2021-06-06 11:24 PM
I did not understand anything , sorry.
You could try it in your native languaje and translate it with google?
2021-06-07 05:04 AM
2021-06-07 07:06 AM
Not working both with R1, R2 = 10K, and R1,R2 = 1K. When remove R1, GREEN is working and remove R2, RED is working.
2021-06-07 07:08 AM
MM..1:
Good idea thank you.