Make a Face Mask With Animations
As you can see in the video, I made a very simple LED light face mask that is not complicated. Of course, you can easily change these animations because we used a programmable LED strip in the mask. The design and animations of the face mask depend on your imagination. I just tried to show "how to do it?".
Let's Get the LEDs Ready for the Face Mask
I have an addressable LED. What that really means it's just that in a normal LED strip when you power it all the LEDs light up at the same time. But an addressable LED powers up based on what you input to it from a microcontroller and you can tell LED number one to light up in one color and LED number ten to light up in another color. Also I have is something copper tape. I'm gonna use that for the positive and the ground connections. Finally we're gonna need to mount all that onto this little piece of cardboard and later that will be inserted into the facemask. Because we need to be able to take out the LEDs otherwise we can't wash the facemask.
The components required for the face mask are as follows:
WS2812 5V LED Strip - http://bit.ly/2YoWKmh
Copper Tape - http://bit.ly/36cDb5h
Face Mask - http://bit.ly/3oktBDi
Wire Cable - http://bit.ly/3qRI3of
Plier - http://bit.ly/2Gbl6aq
Soldering Tool Kit - http://bit.ly/2D6YbuC
Solder Wire - http://bit.ly/36escZ0
- Place two strips of copper tape on the cardboard. One of the copper tape strips will be used to connect the positive legs of the LEDs and the other to connect the negative legs.
- Cut your LED strip from the connection points (make sure the number of LEDs according to your mask size).
- Place the LED strips you cut out on the cardboard. The most important point here is Din and Do points on the LED strip, the LED strip array should be placed as Din - Do, Din - Do. So if one end of the LED strip is Din, the other LED strip must be connected to the Do end for the signal to continue. Please see the video.
- After placing the LED strips, make the connections. The negative (GND) points of the LED strips must be common and the positive (5V) points must be common. Copper tape will make it easier for you to make these common connections.
- Finally, connect a jumper wire to each output to connect to the microcontroller.
Tiny Microcontroller ATtiny85
I will try to use an ATtiny85 board to control LED strips. Because I want the project to be minimal. In the prototype we will use sound sensor, ATtiny board, 9 volt battery and some wires.
The components required for the prototype are as follows:
ATtiny85- http://bit.ly/2YhUX2p
Sound Sensor - https://bit.ly/3fuZoP7
Battery Connector - http://bit.ly/2M8PZCC
Jumper Wire - http://bit.ly/2pBD9BQ
Soldering Tool Kit - http://bit.ly/2D6YbuC
The necessary input-output pins we will use from the microcontroller:
- In this section, we will do the soldering process again. We will need to solder 2 jumper wires to the 5V output of the microcontroller to use it in the sound sensor and LED strips.
- Solder 3 jumper wires to GND output to use on sound sensor, LED strip and 9V battery.
- Solder 1 jumper wire to VIN input to use in battery.
- Solder a jumper wire to P1 and P2 pins that will be used for the sound sensor and LED strips.
Now let's connect all the components:
- Connect the 5V input wire of the LED strip (red wire connected to the copper band) to the 5V wire on the microcontroller.
- Connect the GND input wire of the LED strip (black wire connected to the copper band) to the GND wire on the microcontroller.
- Connect the Din input wire of the LED strip (blue wire connected to the copper band) to the P1 wire on the microcontroller.
- Connect the 5V input of the sound sensor to the 5V output of the microcontroller.
- Connect the GND input of the sound sensor to the GND output of the microcontroller.
- Connect the IN of the sound sensor to the P2 output of the microcontroller.
- After uploading the source code, the battery VIN and GND connections will be made.
Let's Make the Prototype Smaller and No Wires
I also designed a PCB for this project. Because in the prototype we will use sound sensor, ATtiny85 board, 9 volt battery and some wires, but only one 3.7 volt li-po battery will be used with the PCB. I used Atmega329P microcontroller on the PCB, added 3 outputs for the LED strip. I added a tiny microphone to avoid using an external sound sensor. So you can think of the sound sensor as embedded.
If you use the prototype, an extension wire will appear for the battery, but if you use the PCB, you can keep everything in a mask.
Finally, one FTDI USB To TTL module is required to program the PCB.
I have prepared a different source code for Atmega328, you can find the source code here:
https://github.com/MertArduino/Making-a-Face-Mask-with-Animations
Some necessary components for PCB:
FTDI USB To TTL - http://bit.ly/2RL89st
Digital Microscope - http://bit.ly/3iKHpWO
Hot Air Tool - http://bit.ly/2QFd1z0
Soldering Tool Kit - http://bit.ly/2D6YbuC
Solder Wire - http://bit.ly/36escZ0
Tweezer - http://bit.ly/3og8suc
SMD LED - http://bit.ly/2MqP3JT
SMD Capacitor - http://bit.ly/39jqpDL
SMD Resistor - http://bit.ly/3pm5YeW
JST Connector - https://bit.ly/2yXfJeI
3.7v Lipo Battery - http://bit.ly/2ECTdL7
Programming the ATtiny85
To use ATtiny85, we will need to follow some steps just once.
Installation Instructions:
- First download the appropriate Arduino package at the Arduino.cc website: https://www.arduino.cc/en/Main/Software
- If using Arduino 1.6.6 or higher and windows - you will need to download and install the drivers manually. Download, unzip and run “Install Drivers” (on 32bit systems) or “DPInst64” (on 64bit systems). If you get stuck, try following the steps shown in this YouTube video. The driver files are located here: https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip
- Install or Unzip the Arduino application.
- Run the Arduino application.
- In the Arduino application go to the “File” menu and select “Preferences”
- In the box labeled “Additional Boards Manager URLs” enter: http://digistump.com/package_digistump_index.json and click OK
- Note: If you already have additional URLs entered in that box, then click the button on the right of the box and enter this URL on a new line.
- Go to the “Tools” menu and then the “Board” submenu - select “Boards Manager” and then from the type drop down select “Contributed”:
- Select the “Digistump AVR Boards” package and click the “Install” button.
- You'll see the download progress on the bottom bar of the “Boards Manager” window, when complete it will show “Installed” next to that item on the list.
- WINDOWS USERS: When complete the install with pop up a Driver Install Wizard window, please click “Next” on this Window to install the drivers for Digistump Boards (If you already have them installed, this installer will update them and install any that are missing)
- With the install complete, close the “Boards Manager” window and select the Digispark from the Tools→Boards menu. “Digispark (Default - 16.5mhz)” is the board that should be selected by all new users.
- The install is now complete!
Get the Source code for ATtiny85:
https://github.com/MertArduino/Making-a-Face-Mask-with-Animations
Using with the Arduino IDE:
- From the Tools menu select Board→Digispark (Default - 16.5Mhz)
- (The Tools→Programmer selection does not matter)
- Open your code
- You do not need to plug in your ATtiny85 before invoking upload
- Hit the upload button. The bottom status box will now ask you to plug in your ATtiny85 - at this point you need to plug it in - or unplug and replug it.
- You'll see the upload progress and then it will immediately run your code on the ATtiny85.
- If you unplug the ATtiny85 and plug it back in or attach it to another power source there will be a delay of 5 seconds before the code you programmed will run. This 5 second delay is the ATtiny85 checking to see if you are trying to program it.
Pin outs:
All pins can be used as Digital I/O
Pin 0 → I2C SDA, PWM (LED on Model B)
Pin 1 → PWM (LED on Model A)
Pin 2 → I2C SCK, Analog In
Pin 3 → Analog In (also used for USB+ when USB is in use)
Pin 4 → PWM, Analog (also used for USB- when USB is in use)
Pin 5 → Analog In
Programming the ATmega328
Get the Source code for Atmega328:
https://github.com/MertArduino/Making-a-Face-Mask-with-Animations
- Connect the FTDI USB To TTL module to the PCB.
- Then open the source code in Arduino IDE.
- Go to Board and select Arduino Pro or Pro Mini
- Go to Processor and select ATmega328P (3.3V, 8 MHz).
- Select Port and upload the code.
LED Face Mask Ready
We have completed the project, you can have a mask that reacts to the sound using the sound sensor, or you can make different light animations by not activating the sensor.
If you encounter a problem, you can reach me from the links below:
YouTube channel - https://bit.ly/MertArduino
Instagram - https://www.instagram.com/mertarduino/
https://github.com/MertArduino/Making-a-Face-Mask-with-Animations
Make a Face Mask With Animations
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(1)
- Likes(6)
-
Engineer Sep 29,2024
-
Bonbon Shroud Jan 10,2024
-
Engineer May 07,2023
-
Engineer Feb 02,2022
-
(DIY) C64iSTANBUL Jan 29,2021
-
MERT KILIC Jan 28,2021
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by MERT KILIC
-
3D Printed Theo Jansen Style Octopod Robot (Arduino Based) Hi everyone! In this project, I will show you an amazing eight-legged robot in the Octopod style! It...
-
Creative Modular LED Lighting with Magnetic Pogo Pins & Wi-Fi Control Hi everyone! Welcome to my latest project: a modular, plug-in LED lighting system that is as fun as ...
-
Build a simple 3D printed CNC plotter machine Hi friends, do you remember this Mini CNC Plotter machine that uses hobby stepper motors and a few 3...
-
Circuit Activity Board - Educational Electronics Circuit Activity Board – A Hands-On Project to Learn Basic ElectronicsIn this project, we're going t...
-
Build a Simple 3D Wall Lighting Hi friends, this project shows how to make and control 3D hexagonal LED lighting panels. The project...
-
Robot Sumo Board Robot-sumo, or pepe-sumo, is a sport in which two robots attempt to push each other out of a circle ...
-
ESP32 Mecanum Wheels Robot and Bluetooth Gamepad Controller In this project we will see how to make an ESP32 Mecanum Wheels Robot which is capable of moving in ...
-
DIY Motorized WiFi Roller Blind - ESP8266 & Blynk In this project we will see how to control a roller blind via a smartphone application. The reason w...
-
Pet Feeder Controlled Via WiFi - ESP8266 How It Works?As you can see, a 3D design was used for the pet feeder. ESP8266-based Wemos D1 Mini bo...
-
ESP8266 Two Wheel Robot (NodeMCU and Stepper Motor) Generally, robot cars are built on a chassis with 2 DC motor wheels and a bovine wheel. While surfin...
-
3D Printed Rotating Table Board with Arduino Nano and 28BYJ-48 Stepper Motor This project shows how to make a 3D printed Rotating Table using Arduino and a hobby stepper motor. ...
-
Hand Gesture Controller for Robotic Hand Gesture Controller for RoboticThe hand gesture controller makes it possible to control applicat...
-
How To Make DIY Remote Control Hoverboat at Home In this video, I showed you how to make your own hoverboat from materials available at home and chea...
-
How to Make DIY Arduino Gesture Control Robot at Home Parts Required for Receiver (Tank):1) Robot Tank Chassis - https://bit.ly/3j8y2Q52) Arduino Nano V3 ...
-
DIY Circuit Activty Board with Paperclips | MAKER | STEM You can be creative and design your own circuit and add different sensors (other LEDs...). The idea ...
-
ATtiny85 Wearable Activity Tracking Watch How to make the wearable activity tracking watch? This is a wearable gadget designed to vibrate when...
-
Decorative Skull LED Lighting - WLED - WS2812B - ESP8266 In this project, we will make a 3D printed decorative LED light inspired by the Calavera skull desig...
-
4-Legged Spider Robot With 3D Printed Parts (8 Servo Motors and an ESP32) In this project, I will show you how to make a simple 4-legged walking spider robot using 3D printed...
-
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
217 0 0 -
RGB LED Matrix input module for the Framework Laptop 16
406 0 2 -
-
📦 StackBox: Modular MDF Storage Solution 📦
250 0 2 -
-