Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 20th September 2003, 11:38 PM   (permalink)
Default signal from LED

how can i output a cmos signal depending on the state of an LED, like if it's on, it goes high, and off it goes low? could i tap the positive side of the LED and somehow plug that into a comparator? thanks for any pointers.
batman is offline  
Reply With Quote
Old 20th September 2003, 11:43 PM   (permalink)
Default

Use a transistor as a switch and use a pull-up or pull-down resistor on the input (depening wich side of the led gets switched)
Exo is offline  
Reply With Quote
Old 21st September 2003, 12:34 AM   (permalink)
Default

cool
how do i know which side is getting switched, and how to i get a pull up or pull down resistor to match? essentially, what does anything you said mean...
batman is offline  
Reply With Quote
Old 21st September 2003, 01:08 AM   (permalink)
Default

One side of the led is directly attached to the power supply. As an example, lets say the positive side of the led is directly attached to +.
This means the other side of the led is switched to GND (led on) or not switched at all (led off) or left "floating", wich is not an acceptable state for a cmos

The circuit below solves this. When the 'signal' is switched to GND the transistor will do nothing and its output (C) is pulled high trough R1
When 'signal' is left floating, the transistor input will be pulled high by R3 and the transistor will switch GND to the output

Now you have eighter V+ at the output when the led is on, or GND when it is off;

When the signal may be inverted (V+ when off, GND when on) remove the transistor and R1
Exo is offline  
Reply With Quote
Old 22nd September 2003, 05:00 AM   (permalink)
Default

If your logic is powered from the same source than your LED and the Vf LED voltage is < than 30% of V+ you can get your output direct from the LED, without the transistor & associated resistors shown in the above circuit.
Just sense the voltage in between the LED and its dropping resistor. When the LED is off this is at V+ When the LED is on this is V+ minus Vf. You can feed that straight into a C-mos input if the above condidions are met.

Vf depends on the LED type, I've seen it as low as 1.8V for low current LED's to 4V for high output LED's.
Klaus
Klaus is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 06:00 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.