String of LEDs in parallel w/correct resistors and a TIP31 Transistor.

Click For Summary

Discussion Overview

The discussion revolves around troubleshooting a circuit involving a string of LEDs controlled by a TIP31 transistor, which is connected to a computer's sound card. Participants explore issues related to the circuit's performance when connected to different computers, particularly focusing on the behavior of the LEDs and the sound card's output.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • One participant describes a successful setup with LEDs dancing to music on one computer but not functioning correctly on another, suggesting a potential issue with the sound card.
  • Another participant suggests that the transistor is being used as a switch and raises questions about the current requirements of the sound card and the input impedance of the LED circuit.
  • A different participant proposes that the issue may be related to DC offset and requests a schematic diagram for further analysis.
  • One participant warns about the risks of connecting the transistor's base directly to the sound card output and recommends proper biasing and using a series capacitor.
  • Another participant mentions the need to measure the current used by the LEDs and calculate the appropriate base resistor value based on the transistor's current gain.
  • The original poster indicates they are using 100 ohm resistors and a 5V power supply with 700mA, suggesting a potential need for different resistors due to the non-onboard sound card.
  • The original poster later reports success by switching to the onboard sound card, resolving the issue.

Areas of Agreement / Disagreement

Participants express various hypotheses regarding the cause of the issue, including potential differences in sound card outputs and the need for proper transistor biasing. The discussion does not reach a consensus on the exact cause of the problem before the original poster resolves it by changing sound cards.

Contextual Notes

Participants mention specific resistor values and power supply specifications, but there are unresolved questions about the input impedance of the LED circuit and the current requirements of the sound card. The discussion includes assumptions about the current gain of the transistor and the base current needed for operation.

Who May Find This Useful

Individuals interested in electronics, particularly those working with LED circuits and sound card interfaces, may find the troubleshooting insights and technical discussions beneficial.

Defkon
Messages
3
Reaction score
0
I have a string of leds hooked up together with the correct resistors in parallel, going out to a TIP31 transistor which then goes to the power cord and to a 3mm jack. This 3mm jack goes into my computer and my leds "dance" to the music, I assume is the change in voltage. Anyways, I have hooked this up to one of my computers and it works flawlessley, but when hooked up to my other computer, the LEDs light up very bright and do nothing else. I am not sure how to begin debugging or how to fix it.

If it makes any difference, I am using a sound card in the second PC. Any nudges in the right direction or solutions are appreciated.
 
Engineering news on Phys.org
It sounds like you are using the transistor as a switch. Think about how much current it would need to "turn on", and what the current requirements likely are of the sound cards. They may be intended to drive different things.

What do you think the input impedance is of your LED circuit? Have you thought of measuring it across different frequencies?

Good job tinkering, this was one of my first projects!
 
Last edited:
Sounds like a problem of DC offset to me. Can you show us the schematic diagram?
 
If you are connecting the base of the transistor directly to the computer sound card speaker output, then this could be risky.

It would be better to bias the transistor properly and then connect to the computer via a series capacitor. Maybe 10 uF would be a good starting value.

Measure the current your LEDs use. Divide this by the current gain of the transistor to get the base current.

If you don't know either of these, assume 2 mA for the base current. These transistors have a gain of up to 50, so this would allow up to 100 mA for the LEDs.

Then calculate the size of the base bias resistor.
It will be (supply voltage minus 0.6 volts) divided by the base current (in Amps).

So, for example, if the supply voltage was 12 volts and the base current was 2 mA, the base resistor would be (12 - 0.6) / 0.002 or 5700 ohms, so you would use a 5.6 K resistor from the +ve supply to the base.

You may have to increase this resistor value until the LEDs just light up with no sound and then light up to full brightness with loud sound.
 
Thank you for the responses, I have to travel for work the rest of the week, but I will start testing next weekend. I believe I need different resistors b/c this is not an onboard sound card. By the way I'm using 100 ohm resistors. and a 5v psu with 700ma.
 
Got it working, I just pulled the other card out and used the onboard sound. Thanks for your help!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 26 ·
Replies
26
Views
7K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
3
Views
2K
  • · Replies 27 ·
Replies
27
Views
6K