Use of transistors to turn on an LED

Click For Summary
SUMMARY

The discussion centers on using transistors to control two LEDs based on the output from a comparator op-amp. The user seeks to ensure that only one LED lights up at a time, depending on whether the comparator output is HIGH or LOW. The suggestion is to utilize Emitter-Follower and Common-Emitter configurations for NPN transistors to achieve this functionality. The user is advised to research these configurations to understand which serves as an inverting configuration and which acts as a buffer.

PREREQUISITES
  • Understanding of NPN transistor configurations
  • Knowledge of comparator op-amp functionality
  • Familiarity with LED circuit design
  • Basic electronics principles and terminology
NEXT STEPS
  • Research Emitter-Follower Transistor LED Drive configurations
  • Investigate Common-Emitter Transistor LED Drive configurations
  • Learn about comparator op-amps with hysteresis
  • Explore the current sourcing and sinking capabilities of comparators
USEFUL FOR

Electronics students, hobbyists designing LED circuits, and anyone interested in understanding transistor applications in LED control.

akaliuseheal
Messages
53
Reaction score
8

Homework Statement


Hello,
I have got input from comparator op amp which gives HIGH or LOW. Based upon that, one of two LEDs needs to light up. Two LEDs should't be ON at the same time.
Calculations are not needed, only the schematics.

Homework Equations


None

The Attempt at a Solution


I am not really familiar with the transistors, so I used logic gates.

Untitled.png

Input = 1
AND 1 | NOR 0

Input = 0
AND 0 | NOR 1The use of logic gates should be avoided here, thus the use of transistors comes to my mind.
 

Attachments

  • Untitled.png
    Untitled.png
    2 KB · Views: 697
Physics news on Phys.org
Hint -- Use Google Images and search for Emitter-Follower Transistor LED Drive and Common-Emitter Transistor LED Drive (two separate searches). Show us what you find, and tell us which one of those is an inverting configuration and which is a buffer configuration (for NPN transistors). :smile:
 
berkeman said:
Hint -- Use Google Images and search for Emitter-Follower Transistor LED Drive and Common-Emitter Transistor LED Drive (two separate searches). Show us what you find, and tell us which one of those is an inverting configuration and which is a buffer configuration (for NPN transistors). :smile:

Thanks for looking at the thread, I will be looking into that a bit later, Busy right now.

Original text may be a bit vague. So, to avoid confusion, one LED is always ON. If input is logic 1 , first LED is ON. If input is logic 0, second LED is ON.
 
akaliuseheal said:
I have got input from comparator op amp which gives HIGH or LOW. Based upon that, one of two LEDs needs to light up. Two LEDs should't be ON at the same time.
Calculations are not needed, only the schematics.
You have a comparator whose o/p can be taken to be logic HI or logic LO. Can it be somewhere in between HI and LO? You want this to drive a pair of LEDs, with one LED glowing to indicate the comparator o/p is HI and the other LED similarly indicating but on o/p LO. Is there a requirement for buffering, or is it okay to use a comparator that is able to drive the LEDs directly?
 
NascentOxygen said:
You have a comparator whose o/p can be taken to be logic HI or logic LO. Can it be somewhere in between HI and LO?
I am using comparator with hysteresis, I don't think it can be somewhere in between.
You want this to drive a pair of LEDs, with one LED glowing to indicate the comparator o/p is HI and the other LED similarly indicating but on o/p LO.
Yes
Is there a requirement for buffering, or is it okay for the comparator to drive the LEDs directly?
I think it would be okay.

I only had one electronics course so far and it was introductory. In this course we do some introductory circuit designing with a lot of variables ignored like system response or accuracy of measurements. This is the last part of the circuit.
 
Do you know the voltage levels of the comparator's output? What supply voltage/s do you have available?
 
NascentOxygen said:
Do you know the voltage levels of the comparator's output? What supply voltage/s do you have available?

Well, calculating the values of all the components used is the part two of the project, first I need to complete the schematics. I won't actually build this. Project is only done on the paper. Meaning, I can use any part that can be bought from some store or ordered online, every part in existence is available.
 
Have you been given enough hints to be able to finish this now? Just make sure to specify the gate driving the LEDs is of a type that has buffering.
 
NascentOxygen said:
Have you been given enough hints to be able to finish this now?
To be honest, by myself no. No reason for me to lie. Like I said, I know really basic stuff in electronics. But browsing the internet, I stumbled upon some thread stating that using a transistor is not needed and "overkill". Use of transistor here is not obligatory.

And this was provided
Capture.PNG
 

Attachments

  • Capture.PNG
    Capture.PNG
    26.3 KB · Views: 495
  • #10
Does that look like it will do what you want?
 
  • #11
NascentOxygen said:
Does that look like it will do what you want?
On the first glance it looked weird, but explanation is provided and there is a video in which it is seen working. I would have to show it to my professor so he could tell me if that solution is acceptable.
 
  • Like
Likes NascentOxygen
  • #12
How much current can your comparator output source and sink?
 
  • Like
Likes Tom.G and berkeman

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
15
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
34
Views
4K