Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - 3 state with two color led on one mcu port

(you are viewing a thread; or go back to list of threads)

3 state with two color led on one mcu port (by Kamen Pecov)
Hello.
I want to indicate 3 state with one two color led with one mcu port
sample like that:
when pres button 60 LED2(green) must be ON, all other is OFF, when temperature reach 60 LED2 must be OFF and LED3-ON.
Тhe same should be done for all others.
Does someone can tel me how must be creating that wit LDMicro
Thanks
Thu May 30 2013, 04:07:59, download attachment 2leds.PDF
(no subject) (by Ziggy)
Try:....

Select the pin which You wish to work with and make it output.

Connect two LEDS in series connect a 330 ohm resistor on free ends of LEDs.

Now You have

Resistor1 -> LED1anode
LED1cathode -> LED2anode
LED2cathode ->Resistor2

Now connect

free end of Resistor1 to +5V
free end of Resistor2 to 0V

both LEDs should light up

Now connect

Output pin -> junction of LED1an LED2

When output goes low LED1 will light up
When output goes high LED2 will light up

Good luck
Fri May 31 2013, 17:57:33
(no subject) (by David R)
You can not do it because ldmicro does not Tri State the outputs.
Mon Jun 3 2013, 21:55:51
(no subject) (by Ziggy)
You could achieve three distinct visual signalling levels by toggling output pin at some higher rate to fool the eye into seeing a third colour ( result of addition of LED1 and LED2 colours).
Tue Jun 4 2013, 00:36:55
(no subject) (by David R)
Yes I think so it might be a bit dim give it a try
Tue Jun 4 2013, 03:49:37
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):