Arduino IR Transmitter & Receiver w/ LEDs Flickering Issue

I have an Arduino Uno connected to two IR transmitters and respective receivers. Basically, when one of the receivers detects a beam break, I have a strand of LEDs display a pattern. This all works in principle, but the problem is that when the IR transmitters and receivers are connected to the Arduino, the LEDs flicker with random colors.

The specific parts I’m using:

Here’s a video of exactly what’s happening. At first, the IR transmitters and receivers are disconnected and everything is fine, then I connect the IR receivers and the flickering begins at around 8 seconds. http://www.youtube.com/watch?v=REAp5rODYUs. The flickering will continue even when I disconnect the IR receiver, albeit at a reduced rate.

Here’s my wiring diagram:

Arduino IR Transmitter & Receiver w or LEDs Flickering Issue

In the above diagram, the Arduino is powered via USB (I tried with a 12V power supply too), and the LED strand is powered from an external 12V power supply (I couldn’t find a diagram for an LED strand).

If it matters, I should mention that I’m using the IRremote library to control the IR transmitters (http://www.righto.com/2010/03/detecting-ir-beam-break-with-arduino-ir.html) and the strandtest example from the Adafruit WS2801 LED library (https://github.com/adafruit/Adafruit-WS2801-Library) to test everything right now.

The strange thing is that I also have another strand of similar LEDs (http://www.adafruit.com/products/322) and they do not experience the flickering regardless of if the IR transmitters and receivers are connected or not. So the only thing I can think of is to use an external power supply for the IR so as it avoid connecting them to the Arduino. Is that a valid solution? If so, how do I got about determining what power supply I would need (in terms of voltage and amperage output)?

 

For more detail: Arduino IR Transmitter & Receiver w/ LEDs Flickering Issue


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top