Inspiration
What it does
We will be developing a voice activated light and sound system. The Lumi system will change to the desired color once hearing the user say “Lumi” followed by the color and play music from a device upon hearing “Lumi play music”. We will be using a mic sensor to change the colors and to turn on music. The system utilizes bluetooth. There will also be a motion sensor pad with two sensors. One section of it will be used to skip or replay a song and the other can cycle through varying brightnesses of light. Additional features include a “rainbow” color that will continually cycle through all of the colors and a party mode that will play music, turn to the rainbow color, and act as a strobe light.
How I built it
We ordered an LED light strip that allows you to change the RGB values to mix and create any color that you want. The light strip end has four wires attached to it, one that’s connect to the red value, one connected to the blue, and one connected to the green, and another that is supposed to be connected to power. We connected a different pin from the Arduino to each of the three wires that controls the color and then connected the power wire to the blank since it required 12V to light up. We also had to connect a MOSFET and a 1k Ohm resistor to each of the color wires and also connected the resistor to ground. For the ping sensor we made it on a different bread board and used HC-05 bluetooth modules to allow the ping sensor to send signals to the LED light strip. For the MATLAB portion, we prerecorded ourselves saying each color 10 times and then normalized the average of it. After this, you could record yourself saying a color and whichever one had the largest “innerproduct”, was the most similar to the recorded sound and would send a value corresponding to a color to Arduino. In order to connect the two, we had to open a serial port in MATLAB and Arduino could read this serial in a similar way that it reads bluetooth messages. At the end, we were able to do this with 5 colors and then a party mode, which flashed through all of the colors quickly on a loop.
Challenges I ran into
One big issue we ran into was getting MATLAB to connect to Arduino as the packages we had to install kept having errors and we would have to uninstall and reinstall the package several times before it started to work. It also took us a while to figure out how to establish a connection between MATLAB and Arduino, because we used the same port arduino was connected to for sending a signal from MATLAB to arduino and it took some time to figure out how to disconnect and reconnect each from that port. While doing the voice recognition on MATLAB it also took some time to figure out which color commands worked best together and didn’t sound ‘too similar’ to increase the accuracy of the voice recognition. Because of this we had to change the names of some of the colors such a light blue we changed from teal to cyan and we ended up removing yellow altogether.
Accomplishments that I'm proud of
What I learned
We learned more about how MATLAB and the voice recognition in general works and specifically more about the syntax of MATLAB. I also better understand how the ping sensor works.
What's next for Lumi
Next for this project we would probably try to see if we can find a different, accurate microphone to connect to the Arduino because currently we just use the one on our laptop. This way the system can be more user friendly for someone who doesn't know anything about MATLAB or Arduino.
Log in or sign up for Devpost to join the conversation.