Go Down

Topic: Beginner needs help with music organ/spectrum. (Read 4533 times) previous topic - next topic

thsamog

Jan 28, 2016, 12:14 pm Last Edit: Jan 28, 2016, 12:24 pm by thsamog
Hello, me and my girlfriend are trying to build some awesome lightning into car and our house. In ebay there are alot of RGB music controllers but they don't look like they are doing create job. Im trying to get some tips and tricks or maybe some code parts how we should get started.

Project idea ?

Pretty customosiable with profiles
Atleast 2 profiles for start (Still color & Music)
Working with bluetooth (Android we maybe develope app for it later first some console to send codes)
3 RGB outputs atleast but also expendable easyly. (Low hz, Medium hz and high hz).


We allready have arduino starter kit (Actually 2 of these) what else do we need ? Google is not my friend in this project.

Amy help would be karma+ ! Thanks !


EDIT: Here are some useful stuff that might help this project:
https://www.sparkfun.com/products/10468 - Graphic Equalizer Display Filter
https://www.sparkfun.com/products/13116 - Spectrum Shield (EXPENSIVE)

Grumpy_Mike

I would use the WS2812b LED strips marketed by AdaFruit as Neopixels. They are a game changer when it comes to LED displays.

thsamog

Thanks but we'd like to use analog RGB strip. We have allready ordered them. Reason is that they are cheaper. We both are just very noob with Arduino boards.

CrossRoads

RGB strip as in not individually controllable LEDs, all LEDs in the strip are the same color based on PWM control of the R, G, and B pins, with 12V applied to the common pin?
How many groups of 3 LED segments are you planning to power? Each group needs about 20mA/color.
A N-channel MOSFET like AOI-510 or AOI-514 per pin may be all you need with a 180 ohm resistor between the Arduino PWM pin (3,5,6,9,10,or 11) and the MOSFET gate, and a 10K resistor from the gate to Gnd to hold the MOSFET off when the Arduino resets. Connect the power supply Gnd to the Arduino Gnd so there is a common reference point.
http://www.digikey.com/product-search/en?keywords=aoi514
Here's a video of 8 fading some single color strips up & down on a board I offer.
http://youtu.be/hAVf1D1L-7c
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Grumpy_Mike

Thanks but we'd like to use analog RGB strip. We have allready ordered them. Reason is that they are cheaper.
That dosn't sit very well with your previous statement.
Quote
Im trying to get some tips and tricks or maybe some code parts how we should get started.
They are cheaper because, as CrossRoads said, the whole strip has to be the same colour. This limits the display you can get.


thsamog

RGB strip as in not individually controllable LEDs, all LEDs in the strip are the same color based on PWM control of the R, G, and B pins, with 12V applied to the common pin?
How many groups of 3 LED segments are you planning to power? Each group needs about 20mA/color.
A N-channel MOSFET like AOI-510 or AOI-514 per pin may be all you need with a 180 ohm resistor between the Arduino PWM pin (3,5,6,9,10,or 11) and the MOSFET gate, and a 10K resistor from the gate to Gnd to hold the MOSFET off when the Arduino resets. Connect the power supply Gnd to the Arduino Gnd so there is a common reference point.
http://www.digikey.com/product-search/en?keywords=aoi514
Here's a video of 8 fading some single color strips up & down on a board I offer.
http://youtu.be/hAVf1D1L-7c
Yes i know that. And i'd like to have it thatway. For example one strip is 30hz - 60hz . Second one would be
 80hz - 160hz and so on. And if possible maybe like i have 6 strips 3 for left channel and 3 for right channel.


That dosn't sit very well with your previous statement.
They are cheaper because, as CrossRoads said, the whole strip has to be the same colour. This limits the display you can get.
Id like to get them just flashing to the music. And yes i know that limit maybe in future we make second arduino to something with digital leds.

Grumpy_Mike

What you need to get is a MSGEQ7 chip. This splits audio into 7 bands. You can then use this data to turn the LEDs on and off.

thsamog

I found this from google http://www.instructables.com/id/DIY-Arduino-LED-Color-Organ-20/

It seems best tutorial out there... Im sorry if im asking too much help but this resistors and transistors are pretty new for me. I have always followed only tutorials. I think i can handle the code myself (web developer), but id like to get some help with me.

So would this be stable and working project.

How would i implemet this for 3 or 6 RGB strips ?
1. L Low Hz
2. R Low Hz
3. L Medium Hz
4. R Medium Hz
5. L High Hz
6. R High Hz

Or
1. L/R Low Hz
2. L/R Medium Hz
3. L/R High Hz

I cheked up MSGEQ7 datacheet and though about that
63hz-160hz would be like one strip.

If i understand right then something like when
63hz signal is coming it would be example red then for if both are coming it would be blue and when 160hz singnal is coming it would be green. And maybe it transfers somehow smooth.

and then 400-2500 would be second strip
and last strip would be 6250 and 16000

Also would i need two MSGEQ7 chips if i would like to make Left and right channels ?

Grumpy_Mike

First off most Instructables are crap and contain errors. My advice is never to try and learn anything from them. We seen to be an Instructables support unit at times and it is very annoying.

Yes you need two chips if you have two audio channels.

I would advise you to just start with one first and get the feel of it.

Helmuth

#9
Jan 31, 2016, 10:52 am Last Edit: Jan 31, 2016, 10:53 am by Helmuth
Quote
Yes you need two chips if you have two audio channels.

I would advise you to just start with one first and get the feel of it.
I agree, except he goes for the spectrum shield which has 2 MSGEQ7s already.

I´m playing with it at the moment:

OLED audio visualisation

LED audio visualisation



thsamog

First off most Instructables are crap and contain errors. My advice is never to try and learn anything from them. We seen to be an Instructables support unit at times and it is very annoying.

Yes you need two chips if you have two audio channels.

I would advise you to just start with one first and get the feel of it.
Okei, i understand its just i dont understand almost anything about resistors and etc.. I order the 2 MSGEQ7's tomorrow and start playing with just one.

I agree, except he goes for the spectrum shield which has 2 MSGEQ7s already.

I´m playing with it at the moment:

OLED audio visualisation

LED audio visualisation


Wow nice. I think i have to order also digital led stripe soon ! :)

Helmuth

#11
Jan 31, 2016, 05:28 pm Last Edit: Jan 31, 2016, 05:30 pm by Helmuth
Well, the MSGEQ7 alone will not work. Please read the datasheet first. Page 4: Typical Application.

Or have a look for MSGEQ7 breakout boards.

thsamog

#12
Feb 01, 2016, 10:03 am Last Edit: Feb 01, 2016, 10:11 am by thsamog
So for my part list i will need atleast.

2x MSGEQ7
18x FQB30N06L MOSFETS
2x 33pF Capacitor
2x 200k Ohm Resistor
2x Audio Jack 3.5mm
6x RGB Led Strips (Allready have)
1x Arduino (Allready have)

Later - 1x ATmega328 to get this more permanent.


This thing would get power from car battery i hope its okey thatway?

Do i need anything else ?


EDIT: No now i did something wrong.  Is this project possible with arduino uno ? If i'd like to have 6 channels, every channels has 3 colors (RGB) it does 18 inputs.

Grumpy_Mike

I don't see where all 18 FETs come into it.

You are best to draw the diagram of how you are going to wire things up and make your parts list from that. Please don't use Fritzing.

thsamog

#14
Feb 01, 2016, 06:23 pm Last Edit: Feb 01, 2016, 06:47 pm by thsamog
So i have learnde whole day circuits and arduino. I finished this

https://123d.circuits.io/circuits/1542618-car-rgb-color-organ-project

Is this okey ? Improvements ?

Now im stuck again. It seems that i need 18 PWM Pins. Uno has only 6. So i found shift pwm https://github.com/elcojacobs/ShiftPWM. Also i found a hack to use ANALOG ports as digital. So in total i would use all analog and all digital ports. I also need TX & RX port becose we are trying to make some IR remote or bluetooth remote(android).

Other thing i found was that there is PWM Drivers like this https://www.adafruit.com/products/2928
Maybe i should use something like that ?

I think i need 18 FETS becose led strips needs 12v. I'd like to get 6 strips and every strip has 3 colors. So 6x3 is 18.

All tips and improvements are welcome. I would just like te keep price down.

EDIT: Also what would be best way to make car battery stabilizer. And is it okey to run whole system with 12v ? My calculations show that i need 2.6A for leds. So i'm thinking off 12v 3A regulator. Maybe with fuse.

Go Up