r/ArduinoProjects • • Jan 21 '21

Music reactive Leds + infinity mirror

226 Upvotes

18 comments sorted by

12

u/Ducking_Funts Jan 22 '21

Super awesome! Did you document how you did it?

13

u/RayGun182 Jan 22 '21

Thank you! Actually i didn't have time to document it yet, but here's the basics:

I used the box of a painting to realize it, the "infinity mirror" effect is given by two way mirror sheet placed in both internal sides of the box. It could me much better with actual glass on a side but it was too expensive . The Audio analysis is made by a really cool board i found on ebay (MSGEQ7), this board takes an audio input and returns the amplitudes in 7 different bandwidhts, i read this values every 40millis, map it from 0-1024 to 0-10 and light up the leds (thought it was hard coding but this part is like 10 line long). The leds are splitted in 3 different stripes: the central one which is the audio analyzer, the frame one and the white dot on the bottom. I programmed some frame animation, their order is randomized and so is their color. Also the duration is randomized in a range 10-20s and they only change in certain conditions (ex. average bass read>50%) this gives a really dinamic effect to the leds!. The longest process was the soldering, i'm not really used to it so it was a bit hard to make everything work on a soldering breadboard.
I also added a bluethoot module and made a simple app to control it remotely, you can set brightness, color mode, activate strobo effect, basically i made it for parties so as soon as we can have them again i'll be ready :D

If you are interested in further details just ask!

7

u/gadam28 Jan 22 '21

How do you just make a simple app? That doesn't sound easy to me lol

8

u/RayGun182 Jan 22 '21

Mit app inventor, this Is a really well designed software to create apps for bluetooth modules etc. , You don't even Need to code, Just Place Logic boxes togheter ( i found tutorial on Youtube and done It in an afternoon).

3

u/gadam28 Jan 22 '21

woah that's cool

3

u/possiblymyrealname Jan 22 '21

Great work! That looks awesome!!

I’ve been working on something similar, but I like the way you did the frame and am interested in how you got the Bluetooth to work. I’m hoping to adapt what you did to my project, though I don’t have any experience with Bluetooth.

1

u/RayGun182 Jan 25 '21

Thanks!! Sorry for the delay. The module i used Is hc05( Just working on Android but there Is an iOS version), you need to set a serial comunication with the Arduino using 2 Digital pins. Then all you Need to do Is connect the phone with the module and that's It! to send data from phone to Arduino i created an app using Mit app inventor( there are easy tutorial on YouTube). The coding side on Arduino Is not hard, you Just have to check whenever data Is available from you serial pins and read the data.

4

u/[deleted] Jan 22 '21

[removed] — view removed comment

4

u/RayGun182 Jan 22 '21

Sure! Just give me some day ti write down a paper of this :) i don't have a lot of free time because of exams. The music Is bad guy from Billie Eilish

4

u/Murky_Pea4756 Jan 22 '21

This is so awesome, nice equalizer effect ! There was something like this available in the late 70's from RadioJack: 4 Christmas bulbs behind diffraction plastic. https://www.youtube.com/watch?v=BzKq-GKyJPs&ab_channel=LuckyLeo

sometimes it would actually separate tones with the lights.

1

u/RayGun182 Jan 22 '21

This is really cool! also with Pink Floyd it gives a really chillin mood! :D

2

u/gadam28 Jan 22 '21

How are you doing the sound sensing?

1

u/RayGun182 Jan 22 '21

The audio signal is fed to a MSGEQ7 board which splits the spectrum in 7 bandwidhts between 63-20K Hz

2

u/UncleSkuby Jan 22 '21

That's awesome!

0

u/[deleted] Jan 21 '21

[deleted]

1

u/RayGun182 Jan 22 '21

Thanks! :)