Mask Reminder

by Ashton9 in Circuits > Arduino

151 Views, 0 Favorites, 0 Comments

Mask Reminder

IMG-1783.jpg

In this global pandemic, people are afraid of getting infected by the coronavirus. Therefore, masks are required for everyday life now. As the pandemic lasts for over a year, and the pandemic is not as serious as it occurred a year ago. Even though students still need to wear masks when going to school, but we will sometimes forget to bring masks to school. It would be troublesome because you either can't go inside the school or you need to borrow other's masks. So to solve this problem, I create this project to remind you to bring a mask when going to school. The Arduino will be put in the entryway, and there will be an ultrasonic sensor on the breadboard. When you are going out, it will detect you and make the LED start to light. The LED has 5 different colors because it will be too boring if I just do red, so I add some creativity. It could also be used in different situations. Not only reminding you to bring masks. Every time you go out and it starts to shine, you can think about what you forgot to bring.

Supplies

1 Arduino

1 Breadboard

9 LED Lights with different colors ( I use each 2 red, green, yellow, and green. And a white LED Light)

9 Brown resistors

Jumper Wires

1 Ultrasonic sensor

1 Shoebox (Or a piece of material like cardboard or polystyrene)

1 Utility knife

Put on the LED Lights

螢幕擷取畫面 (16).png

You can adjust the color and the amounts of the lights in the way you like, just have a gap between each light.

Put on the Resistor

螢幕擷取畫面 (18).png

Put the resistor on the same column as the right leg of the lights, and the other leg of the resistor goes to the negative. Do that for all the lights.

Put on the Wires

螢幕擷取畫面 (20).png
螢幕擷取畫面 (22).png
  1. Take two wires. Put the first one into positive and 5V. Put the second one into negative and GND
  2. Take a wire, put it into the same column as the right leg of the LED light, and the other leg goes to D13
  3. Repeat this step for all the lights, but change D13 to D12, D11, D10, and so on.

Put on the Ultrasonic Sensor

IMG-1774.jpg
螢幕擷取畫面 (24).png
  1. Put the Ultrasonic sensor on the board
  2. Take 4 wires.
  3. For the first one, put it in VCC and positive
  4. For the second one, put it in Trig and D4
  5. For the third one, put it in Echo and D3
  6. For the last one, put it in GND and negative

For a better understanding, you can just memorize the first one is positive, the second one and the third one go to D3 and D4, and the last one is negative.

Make a Box to Put the Arduino In

IMG-1796.jpg
IMG-1799.jpg
IMG-1797.jpg
IMG-1798.jpg
  1. Find a shoebox, cardboard, or a piece of material
  2. Cut a hole for the LED lights, a hole for the ultrasonic sensor, and a hole for the plug, by using a utility knife
  3. After that, put the Arduino in

Code

Downloads

Final Product

Mask Reminder