0

Gloves with RGB LED reacting on sound (Need help with a code
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Gloves with RGB LED reacting on sound (Need help with a code

by Tunes on Tue Jun 12, 2018 11:55 pm

Hello adafruit community! My name is Nikita and I am a head of big project about DJ with LED Show.
2 years ago we made Gloves with SMD LEDs, which react on sound.
My engineer made boards with a microphone and small processor.
Now we improve a technology and want to put RGB LED.
What we use:
1. Boards made by ourself.
2. RGB LEDS SK6812 3535
3. Processor mega328p
4. Simple round microphone (Like Adafruit sale)
All libraries Neopixel Adafruit work
The programm language C+, but arduino code works

Now we just test 3 LEDs
What we have:
1. The code which connect mic with leds. That is why LEDs react on sound.
2. The code, which change the color of LEDs.

The problem is: Color doesn’t change during LEDs blinking. Every time, when LEDs react on sound, the code of changing color starts from beginning. That is why we have one color and there are no color changing.

Please, help me to understand how to change color during reaction on sound.

Tunes
 
Posts: 2
Joined: Tue Jun 12, 2018 11:43 pm

Re: Gloves with RGB LED reacting on sound (Need help with a

by franklin97355 on Wed Jun 13, 2018 12:25 am

Post your code and a circuit drawing and perhaps we can have a look.

franklin97355
 
Posts: 18556
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Gloves with RGB LED reacting on sound (Need help with a

by Tunes on Wed Jun 13, 2018 8:16 am

My engeneer says, that he didn't use code now. He just tried to make a code of color changing. It's simple.
About mic reaction - thw mic give a signal to board, that is why the LED make a blink or shine.
He doesn't know how to connect two moments: the mic signal and the color changing.
If you can give an simple example, we can try and say what we have as a result

Tunes
 
Posts: 2
Joined: Tue Jun 12, 2018 11:43 pm

Re: Gloves with RGB LED reacting on sound (Need help with a

by franklin97355 on Wed Jun 13, 2018 1:40 pm

Without code the pixels will not work. Take a look at this tutorial, it may help.

franklin97355
 
Posts: 18556
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.