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.

DIY Music Relative RGB Strip light

Status
Not open for further replies.

Smarttronics

Newbie
Newbie level 2
Joined
Jul 10, 2020
Messages
2
Helped
0
Reputation
0
Reaction score
3
Trophy points
3
Activity points
99
IMG_20200714_155514.jpg


Story

Video
In this project I will be showing you How To Make DIY Music Relative Led Strip Light Using Arduino Nano

Let's get started!
You Will Need Some Componenets For Make This Project
👉Parts list (): -👈
👇
Arduino UNO - https://amzn.to/3fljESD
Arduino Nano - **broken link removed**
RGB strip LED :- https://amzn.to/3gXEAPZ
Sound Sensor :- https://amzn.to/38VsO5K
Jumper Cable - **broken link removed**
Componenets :-
All Componenets

All Componenets

The WS2812 however is a WS2811 placed inside a 5050 LED package.
The 5050 LED is a very common 3 LED (Red, Green, Blue) package, in one 5mm x 5mm case.
A WS2812 is the same package but with an additional WS2811 LED driver IC on board.
In the illustration below you’ll see the difference:
On the left a 5050 RGB LED, on the right a WS2812 which combines a 5050 RGB LED with a WS2811 controller.
Note how the layout of the “silver” tracks are almost identical in both images, yet the black (IC) block and the tiny wires are different (right).
5050LED_vs_WS2812-400x188.jpg


5050 RGB LED (left) and WS2812 (right)



ANALOG LED STRIPS
These are NOT the kind of LED strips we use in this project!
In the illustration below we see first (top) a strip of single color LED’s – typically white, but can be purchased in different colors. The one below that is a multicolor strip (RGB pins are a give away) which allows us to set the color for the entire strip.
On each of these strips you’ll see (from left to right) first the LED as a white block, followed by an SMD resistor as a tiny back block.
The examples below require 12V to operate.
analog_led_strip-400x193.jpg


Analog LED strips – Single color (top), Multicolor (bottom)



DIGITAL RGB LED strips
The digital strips are the ones we will use in this project.
In particular: we will use the WS2812 in our project.
The cool part of a digital strip is that you address each LED individually, making very cool effects easy. Obviously the kind we’d like to use in our projects.
In the illustration below you can see the physical differences between the WS2801 and the WS2811/WS2812 strips.
Unlike the analog strips: Most Digital RGB strips operate on 5 Volts!
Note
:
  • Not all strips of the same “model”, look the same, but have typically a very similar layout.
  • strips can be sold as a white or a black strip (background strip).
  • Notice the arrows indicating Data direction.
  • WS2801 has 4 pins, where as the WS2811/WS2812 only has 3 pins.
  • There are digital strips that look like WS2801/WS2811/WS2812 strip, that are NOT based on any of these LED drivers.
  • Strips can be had in waterproof (in plastic “tube”) or for indoor use only.
digital_led_strips-368x280.jpg


Digital LED strip – WS2812 (top) and WS2801 (bottom)
WS2801 vs WS2812 pins
PIN
WS2801
WS2812
5V
Power (+5V)
Power (+5V)
CI
Clock signal Input
N/A
CO
Clock signal Output
N/A
DI
Data Input
Data Input
DO
Data Output
Data Output
GND
Ground or Common
Ground or Common



Making the Arduino WS2812 connection
Now that we have a WS2812 strip, time to hook it up to our Arduino (I used an Arduino UNO for this).



Power



Caution

A strip of LED’s will pull way too much power for your Arduino to handle, so always consider an additional 5V power supply.
Rule of thumb is : each RGB LED unit pulls about 60 mA (3x 20 mA, for Red, Green and Blue).
LED’s, even though they’re called power efficient, do need juice … and for each WS2812 we need up to 60 mA when the 3 LEDs inside are at maximum brightness at 5V.



Power Supply
You can use an external power supply for this purpose and even though my 1 meter strip theoretically needs 3.6 A at max brightness, my little 2A power supply managed to handle it – your milage may vary! (1 meter with 60 LEDs/meter = 60 * 60 mA = 3600 mA = 3.6 A max.)
A switching power supply is often ideal and pretty cheap – you might even have one or the other laying around from your old cellphone, just make sure it’s actually giving you 5 – 6V and not weird voltages like 12V or 16V or even more. Verification with a Voltage meter is recommended.
Arduino Connected to your Computer
Commonly, during testing, your Arduino is connected to your computer via a USB cable where the USB cable does not only program the microcontroller but will also provide power for the Arduino.
The DIN (data input) pin of the LED strip goes to Arduino PIN 6 with an optional 470Ω resistor in between.
+5V of the LED strip goes to the +5V of extra power supply.
GND of the LED strip goes to GND of the extra power supply and to the GND of the Arduino.
The USB of the Arduino is connected to your computer.
arduino_usb_and_extrenal_power_ws2812.jpg


Arduino & WS2812 – USB and External Power
Arduino Not connected to your computer
Once you’ve completed your prototyping, you could still keep using your Arduino for controlling the LED strip.
In that case you’d typically have the Arduino in a very different location, and thus not connected to your computer. In that case the extra power supply for the LEDs could be used to feed the Arduino as well.
The DIN (data input) pin of the LED strip goes to PIN 6 of the Arduino with an optional 470Ω resistor in between.
+5V of the LED strip goes to the +5V of extra power supply and the +5V on your Arduino (or Vin).
GND of the LED strip goes to GND of the extra power supply and to the GND of the Arduino.
I'm already Connected The Wire In Strip Light

I'm already Connected The Wire In Strip Light

Fix Arduino In Breadboard

Fix Arduino In Breadboard

Connect Strip Light with arduino
Schematic

Schematic

Connecting

Connecting

Connect Jumper Cable With sound Sensor

Connect Jumper Cable With sound Sensor

Connect Sound sensor With Arduino Nano

Connect Sound sensor With Arduino Nano

Upload Code In Arduino Nano

Upload Code In Arduino Nano

Upload The Code

Upload The Code

Done

Done

👍👍

👍👍



Schematics
Circuit
images_(7)_CNoXCSwGlV.jpeg
 
Is You Tube used only by people in India? Every You Tube video posted on Western electronic forums is from India.
Kumar of Smart Tronics sounds, looks like and says he is in India.
 
Hi,

Is You Tube used only by people in India? Every You Tube video posted on Western electronic forums is from India.
Kumar of Smart Tronics sounds, looks like and says he is in India.

Not much point saying that, plain silly, imo, and it sounds inappropriate. Thumbs down.
--- Updated ---

Hi,

Nice Arduino/RGB LED tutorial, clear and well laid-out. Thanks for sharing your work.
 
I speak and understand Western English. The voice in the video has an extreme Indian accent that I need translation to understand what is being said.
Many You Tube electronics videos are like that because the people in India making the videos get paid by You Tube each time somebody sees the ads.
 

Is You Tube used only by people in India? Every You Tube video posted on Western electronic forums is from India.
Kumar of Smart Tronics sounds, looks like and says he is in India.

Maybe all the western sounding people are posting on forums too cool for you to know about.

I speak and understand Western English. The voice in the video has an extreme Indian accent that I need translation to understand what is being said.
Many You Tube electronics videos are like that because the people in India making the videos get paid by You Tube each time somebody sees the ads.

Except for promotion for some website at the beginning, he hardly spoke in the video.
 

Thank you so much for making it as this is almost more than 80 dollars if we want to buy it from Philips. The are ripping us apart for this music lights. The tech is really simple why do they charge so much for this?. I have seen your video and you did it wonderfully I would also try t o make it as I was really up to buying that product from philips.
 

Music light circuits are called Color Organs and have been made inexpensively by hobbyists for years.
Manufacturers charge as much as gullible fools can pay.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top