We are looking to control an RGB strip via sound and/or a playlist. Does anyone have something
they can share. We can already control a 50 RGB (addressable) via Blynk but want to be able
to take the lights and have them controlled via say…Christmas music (as an example).
This way you would turn the lights on then just play music (via phone if its easier) and have
the lights synced to the music. Is this possible? Has anyone done this yet? If so, can you share.
(no worries about energy consumption I already have my own local server setup and running)
P.S. My current RGB lights are just controlled with Blynk thru a esp8266 wemo (if that helps).
This can be done, but it’s a bit tricky. There are some options out there (but as @Gunner says, it’s not Blynk related, but very hard core hardware actually). It probably can be done on the ESP (or even better, the ESP32) because sound analysis is a CPU intensive task. If I remember correctly the most part of the sound analysis is done on offloaded hardware (dedicated chips) and the result is then fed into your MCU and you can do things with it.
ok so let me start simple. How about just two RGB LED’s (not 50). Has this been done? Any examples?
This can be done a Raspberry PI pretty easily, but that does not have a nice “BLYNK” interface. Blynk seems
to be a great application, but there I’ve not seen a lot of good examples yet (I’m still looking and learning) but
I thought maybe it would have already been done. Thanks!
You nailed it… Blynk is an IoT GUI interface… it does NOT have any built in ‘sound to RGB’ widgets or even anything to directly control NeoPixel type RGB LEDs (or even sound detection, although some form of interface to the phone’s microphone has already been requested).
For that you need to use audio hardware, make or find code, then learn how it works in order to make it work for your needs. Only then can you merge in Blynk’s interface in whatever method also works for you.
You can continue to search this forum and find a few NeoPixel type control projects, but nothing that I am aware of for a sound interface for them, whether it be 2 or 200 LEDS… for that you need to look to Google
Took me about 30 minutes to set this thing up, works like a charm! I’m running it on my local PC. The big issue here is how to get the music data to the ESP, but that is not Blynk related.
The PC version runs a Python script which works very well I must admit. Haven’t tried the RasPi version because I don’t have a sound input handy I think (I might find my old headphones with Mic later on to try that too).
I guess next time you could just post a link with LMGTFY and I’d probably take it he same way.
I’m sure everyone on here has asked a question or two and got the google response. Does that
really help? Nope. Posting a couple of examples and just going with the flow makes it more
like a helpful community, correct?
No, not correct … becasue then our Blynk forum becomes full of requests for unrelated stuff that can already be found on the bigger web… This forum is for learning about BLYNK not teaching programming, or how to use Google, etc.