How Can a Sensor Detect Green LED States?

  • Thread starter Thread starter dsimp
  • Start date Start date
  • Tags Tags
    Led States
Click For Summary

Discussion Overview

The discussion revolves around the challenge of detecting the operational states of a green LED (ON, OFF, or BLINKING) using sensors. Participants explore various sensor options, including phototransistors and photodiodes, and consider environmental factors that may affect detection, such as ambient lighting and distance from the LED.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests using a phototransistor or photodiode but expresses uncertainty about distinguishing between the LED states.
  • Another participant emphasizes the importance of understanding the application environment, including distance and ambient lighting, and suggests determining the wavelength sensitivity required for detection.
  • A suggestion is made to use a logic probe circuit after the phototransistor detecting circuit to aid in detection.
  • One participant notes that detection should occur within a short distance (10cm) and mentions variable indoor lighting as a potential challenge.
  • Another participant argues that connecting directly to the LED would be an ideal solution for detection.
  • Concerns are raised about the difficulty of distinguishing LED light from ambient light unless the detector is very close and shielded from other light sources.
  • A proposal is made to use a photodiode to baseline ambient light levels and detect changes, potentially involving two sensors to differentiate between the LED and ambient light.

Areas of Agreement / Disagreement

Participants express various viewpoints on the best approach to detect the LED states, with no consensus reached on a single solution. There are differing opinions on the effectiveness of different sensor types and the impact of ambient lighting.

Contextual Notes

Participants mention several assumptions, such as the need for proximity to the LED and the influence of ambient light, but these factors remain unresolved in terms of their impact on detection efficacy.

dsimp
Messages
2
Reaction score
0
I'm doing a project where I need a sensor to monitor a standard green LED and determine if it is ON, OFF, or BLINKING. I have been considering using a phototransistor or photodiode, but I am not sure how I would use one of these to tell the difference in the LED being on or blinking.

Does anyone have any experience with something similar to this?
 
Engineering news on Phys.org
What is the environment of the application (distance from the sensor, ambient lighting, sensor output requirements, etc.)

A good place to start if it needs to be optical is to determine the wavelength the sensor is required to detect (green in this case) - 500-~580nm.

this is especially important if ambient lighting is a factor - you want the sensor to be mostly sensitive to the light that you are trying to detect.

With a photo transistor, you should be able to read this just like a normal transistor which makes the rest pretty straightforward.

The photodiode approach will give an analog voltage (you can use a comparator to get digital if needed). With the circuitry you set-up for the photodiode, the blink rate of the LED can become your largest challenge. If you use a large capacitor, it might not discharge in time to detect the flashing.
 
That sounds like a logic probe.

Have a look at this circuit:
http://ecelab.com/circuit-logic-probe.htm
http://ecelab.com/circuit-logic-probe.jpg
This would go after your photo-transistor detecting circuit.

or search Google for logic probe circuits.
 
Last edited by a moderator:
Thanks for the responses. I will look into those solutions. The detection would only need to occur from a short distance (within 10cm). The lighting is a little bit of a wild card, but it will be used indoors with variable lighting.
 
If you can connect to the LED directly, the approach as recommended by vk6kro is ideal.
 
Your detector would probably have to be very close to the LED and ideally mounted so that ambient light could not reach the detector.

Otherwise, it is going to be very difficult to tell if light is coming from the LED or from room lighting.

As MDJensen says, if you can access the wires going to the LED, that would be a lot better. You need several volts to drive a circuit like the logic probe above and it is going to be difficult to get that much signal from a light detector.
 
If ambient lighting is a concern, you could always use the Photodiode and baseline out the ambient level and look for a change in the reading - maybe you end up using two sensors - one to look at the led, and one to read the ambient lighting.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
Replies
29
Views
5K
Replies
32
Views
11K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 99 ·
4
Replies
99
Views
9K