Hi everyone! In this Instructable I will show you how to make a LED Mask. This Mask has an incorporated microphone that will make your mouth move as you speak.
What you are going to learn from this Instructable:
Select the right components for this project
Sketch a LED grid that fits in the mask
Compiling the code to the Arduino board
Make sure you watch the video because it´s more illustrative. Subscribe to my Youtube channel so you don´t miss out on new project and to help me grow!
Step 1: Gather All the Material
1 x Arduino Nano
1 x Microphone
1 x Li-Ion Battery
1 x Switch
1 x Custom Mask
Tools you will need:
You can check the pictures for more details.
Step 2: Test LED Strip Before Starting
Start by connecting the red wire to VCC Arduino, black wire to GND and green wire (data) to pin 6.
Then you need to go to the Aruino IDE app -> Sketch -> Include Library -> Manage Libraries (check picture 3)
The window in picture number 4 will show up. You need to write “neopixel” and install the “Adafruit NeoMatrix” and “Adafruit NeoPixel”. Now just run the LED Test script to test it. I had fun changing the color of the LEDs, as ou can see in picture 2.
Step 3: LED Strip Into LED Matrix
Now it´s time to solder the connections. I decided to install the matrix on a piece of tissue. The LED strip has a double side tape so I just uncovered the tape side and glued it to the tissue. Now that we fixed the matrix we can go to STEP TWO which is soldering! Remember, we want to solder as if it was never cut so 5V needs to be soldered to 5V, GND to GND and data to data. Use different colors to be easier to identify which is which.
After everything is perfectly soldered together you need to test the LED strip again just to make sure it´s safe to go on. You can test it by using the multimeter on the continuity mode (activates a bip sound when there is continuity) which indicates you the connections are OK if it bips but, if tey are NOT OK, it won´t bip.
The other option is running the LED Test code again. You will notice the zigzag for the first time!
Step 4: Circuit Schematics
Then, connect a red wire (+) to the 5V and a black wire (-) to the GND of the usb battery charging protection board (picture 2). Use a multimeter to make sure the connections are properly done. The reader should measure around 3.7/3.8 V. Also, try connecting a usb cable to the usb entry, a red led should light up, indicating that the battery is charging.
You should include a switch to the circuit, to ensure that the circuit is not always “on”. If it was always connected, the battery would overheat very fast and you will possibly have to change the battery. The switch goes connected to the 5V of the battery charging protection board and a two way wire, one connected to the VCC of the LED strip and the other to the Arduino Nano board Vin. You can find an example of a switch in picture 3.
Now pull a black wire from the usb battery charging protection board and connect it to both GND of the LED strip and the Arduino nano. Check picture 4 for an example of the Arduino nano.
Choose a new color (other than red or black) to connect the Arduino pin 6 and the digital terminal of the LED strip (“DATA“). It is a good idea to run the testing program that you can find at the end of this instructable, to make sure everything is working as planed and to be able to finish the rest of the connections.
The final step of the circuit is the microphone. There are 3 connections: OUT, GND and VCC (image 5). The VCC goes right into the Arduino 5V pin. GND goes into the Arduino GND. OUT is going to be connected to the A0 Arduino pin.
If you came this far, CONGRATULATIONS!!!! The hardest part of the project is completed!
Note 1: Try positioning the microphone next to your mouth. There is a potentiometer that you can screw or unscrew to help you regulate the sound recognition range.
Note 2: I did not solder the battery straight to the usb battery charging protection board, I used male/female connectors to make it easier to remove the battery if some unexpected problem happens.
Step 5: Arduino Software and Code
If you don´t have the Arduino software, download it here.
Now, you need to install the Adafruit Neopixel and Adafruit Neomatrix. To do so you have to go to sketch, include libraries, manage libraries and search for “neo”(picture 1 and 2).
Read more: LED Mask (with Arduino)