1
\$\begingroup\$

I've not much idea about electronics, but I managed to do some little projects in the past. Now I'd like to place some RGB LEDs in my desktop PC windowed case. For that, I bought a 5050 SMD strip with 300 RGB LED's (5 meters). Now I want to control it with an Arduino Uno.

I followed these two tutorials:

RGB LED Strip Controlled by an Arduino
*notice there is a misplaced resistor on red color

Adafruit Tutorial - RGB LED Strips

I'm using IRFZ44N MOSFETs, as shown in the first tutorial. The LED strip is being powered with 12V from an ATX PSU (not the one in my computer). I want to power (and send serial data to) the Arduino board by using an USB cable connected to the computer.

Everything is working, but my problem is that I get noise into my speakers (monitor built-in) when:

  1. PSU is powering the LEDs.
  2. PWM values are varying (color fading).
  3. The USB cable is connecting the Arduino and the computer.
  4. Audio cable is connecting the monitor and the computer (or my project's GND).
  5. Speakers (monitor) are on.

I saw very few similar cases on internet. They speak about capacitors and inductors, but I can't get what and where should I be adding to my project.

Update: It tried by powering my LEDs with a wall AC adapter at 9V and 12V and the noise disappeared. But I still need to know how to remove the noise when using a computer ATX PSU like this:

ATX PSU

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Try some experiments such as temporarily using a different 12v power supply unconnected to the computer, vs running the arduino from a laptop on batteries or with a sketch which performs similar operations without needing the USB connected. If you can increase the PWM frequency that may make existing filters more effective, too. \$\endgroup\$ Aug 28, 2014 at 18:49
  • \$\begingroup\$ @ChrisStratton The PSU powering the LEDs is not my computer's PSU. If I power the Arduino with an external power supply, the problem disappears, but this is not what I want. I'm pretty sure I'd encounter the same problem if I power the Arduino from my computer's PSU by using the Vin pin. I will be sending serial data to the Arduino, so the USB is the cleanest solution. Thank you. \$\endgroup\$ Aug 28, 2014 at 21:07

3 Answers 3

1
\$\begingroup\$

Please use an opto-isolated device to trigger or replace the FETs and share your results.

This will isolate the (ATX1 + FET + LED) circuit from the (ATX2 + Arduino + speakers) circuit.

Edit:
The power supplies are SMPS operating at different frequencies. You have tied their grounds together and are grounding signals from one through the other. The speakers' V- (ATX1 + ATX2) is fluctuating at a different frequency than its V+ (ATX2 only) so, you hear noise. You may have overlooked that the monitor is grounded through it's own power cable and ATX2 (via the video cable).

\$\endgroup\$
1
\$\begingroup\$

It sounds like your audio cables are carrying the PWM frequency to the monitor/speakers. This could be confirmed if you speed up or slow down the pwm frequency in the arduino and see if the "tone" you hear coming from the speakers gets lower or higher in pitch.

You mention that the audio cable carries your projects GND? I don't quite understand what you mean but if you mean your project shares a common ground with your audio signal that could definitely be the disturbance.

Start by trying to power the arduino through different USB ports. If that doesn't fix it, try and power the Arduino with something else like a phone charger so that your LED project is completely isolated from the computer.

\$\endgroup\$
1
  • \$\begingroup\$ Yes, I can confirm the pitch changes by changing the frecuency. You understood me: I think the audio GND and the USB GND are interconnected somewhere in the motherboard or the PSU. It keeps buzzing when I make my audio jack GND touch the Arduino GND skipping the computer. I tried with two different computers and sound cards. If I power the Arduino with an external power supply, the problem disappears, but this is not what I want. \$\endgroup\$ Aug 28, 2014 at 21:01
1
\$\begingroup\$

you can use a Audio isolator that will solve the issue on your speakers. you can get them quite cheap as breakoutboards

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.