arduino light sensor
The blue arduino nano will control the LED lights based on input from this little guy. It works like a sound sensor and it’s kind of cool, as it outputs a value on both the analog and digital output. Pin based on the surrounding sounds to power everything we need a 5 volt power source. I didn’t have that available so I’m, using this voltage stepped on module with a 12 volt power source instead now we’re gon na solder, a wire to the voltage in and ground pin on the Arduino if you’ve been working with Arduinos. Before you probably seen this a thousand times already, but if you haven’t, this is how we can power it with an external power source we’re using female to male header pins, to connect the sound detectors, ground and voltage input to make it a little less messy. We can join the Arduino and the sound module wires together and then add some shrinking to you before soldering it to the power source. Now we can shrink those tubes and we can shift our attention back to the Arduino to get the sound signals. We’Ll be using an analog pin which will read a value from 0 2023 from the analog output on the sound detector module. The last thing we need from the Arduino is a way to control our LED lights. We’Re gon na use some individually addressable LEDs, which can all be controlled from a single digital output. Pin the LEDs also need to connect to the 5 volt power with their positive and negative wires.
The 4 soul ring on these final 3 wires on the LEDs. We had shrinking tubes for protection against shorting and for extra durability. Now we can solder them to the LED strip, making sure none of the wires touch each other and that all are in the right position, move the shrinking tube into position and give it a good go with a heat gun. So put your head into code mode because it’s coding time as we only get one sound input, it’s easy to make a simple, but rather boring version of this program. There are many ways to make it more interesting by, for instance, detecting the intensity of a song. I won’t be going through the code in this video but I’ll post a link to it down below. If many of you want a complete walkthrough, please tell many comments and I’ll see what I can do it’s time to plug the power in and we can upload the code to the Arduino using a USB cable let’s, put some music on and give it a test Run Applause, Music, as you can see, it works pretty well already, when we’re done, we can use the same code, but we can tweak the settings for the amount of LEDs to be used to make everything fit inside our PVC pipe. We need to wrap it together and make sure that we can access the Arduino the power and that the sound detector has a free path to the surroundings.
Using a hacksaw, we can cut the PVC pipe down to the length or wonderful IKEA jar, then, with some pincers cut a little indent on the bottom, to make room for the LED strip, take a little pack of electronics and stuff it into the PVC pipe. Keep the inputs flush with the bottom hole, so we can easily insert a power or USB cable. Now we can carefully wrap the LED strip around the pipe. If you have enough, you will get a stronger and more even light. If you make sure that there is no space in between each round, we’ll cut a strip at the top and glue it nicely in place now we have a cylinder of light, that’s, so cool so guys. Initially, I thought the glass is made out of acrylic, but guys look at these guys, it’s not made of real glass guys. So guess what happened? Look at these guys, it’s, crazy, the glass cracked. What the fuck guys look at this! How cool is that? No but seriously the glass in the lid did break so we need to make a new surface out of acrylic. We can use a regular hole so the same size as the PVC tube to drill the hole, and then we can trace the outlines of the jar lid on the acrylic to get out the circle I use the scroll saw and quite a bit of patience to Not make it too uneven so once we have removed the protective film from the acrylic, we can glue it to the lid and the PVC pipe and then we can add the jar to the lid if I’m allowed to say that to give the sound detector some Space and give ourselves some room to put in the cables we can take some knobs and use it as small legs for it to stand on.
Anything can work as legs really just make sure it looks okay, so guys all that remains now is to plug. In a power before we put on the music and take a look at it, I just want to say that this can be configured to act in a million different ways, with a million different colors it’s all about the code. Really so again tell me if you want a little walkthrough on it. Thank you so much to all our subscribers and to our patrons for supporting our channel. You guys are awesome.
arduino light sensor Video
arduino light sensor news
Posted on Tuesday September 10, 2019Arduino starter kits beginners can trust Popular Science … Continue Reading »
Posted on Monday October 07, 2019Wi-Fi chip has (nearly) hidden Hall sensor Electronics Weekly … Continue Reading »
Posted on Wednesday September 11, 2019How to Build a Low-Frequency Theremin With the Evive DesignNews … Continue Reading »
arduino light sensor Social
🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today: http://bit.ly/2MnQ7fr
Originally posted 2017-06-29 13:38:58.