Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PC to control LED brightness

Status
Not open for further replies.

BS

Newbie level 4
Newbie level 4
Joined
Sep 6, 2004
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
72
Hi,

Anyone know how to use PC to control LED brightness? Example, the PC can control the LED brightness from 100% (most brightness) to 0% (off)!

If anyone know pls reply me!

Thanks!!
 

You can always use the PC's printer port to drive the LED. Use a current limiting resistor on each of the 8 data bits and sum the output to drive the LED. Then the brightness of the LED is set by the 8-bit word that you write out. At 00H, the LED is off, and at FFH, the LED is at full brightness.
 

Use the PC port to pulse the led.

Control the mark:space ratio to control the brightness

OR

Use the PC port with a D to A converter (but check that the converter can source/sink the required current first).
 

you can combine Microcontroller & DAC to control LED through LPT/COM port.
 
  • Like
Reactions: 0leee

    0leee

    Points: 2
    Helpful Answer Positive Rating
Hi BS,

Take a look at: h**p://www.electronics-lab.com/projects/pc/021/index.html

* -> t

"8 Channel software controlled fanbus with PWM"

Regards,
 

The best and most robust way would be to use a DAC, which can be assembled using an opamp and a handful of resistors, that will give you 256 levels of brightness. Also if you want to drive a higher load say 2 or more LEDs and the opamp cannot support it you can use a power transistor to supply the LED current.
I have attached the opamp DAC schematic.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top