Eye Protecter

by bigmastervienna666 in Circuits > Arduino

184 Views, 0 Favorites, 0 Comments

Eye Protecter

IMG_0138.jpg

Living in a world with phones, computers, and other 3C techniques, our eye sights have been getting worse. This machine can help your eyes recover after using a cell phone for too long.

And we all know that looking at trees and green plants can help our eyes recover. However, we have to look at it for more than 2 hours for our eyes to recover. But using the machine, you only need 30 mins a day, and you can have the same result.

There are machines that sell for 80,000, using Arduino, we can make the lite version just in our house.

Supplies

Arduino Mega x1 Link

Bread Board (Green *10) x1 Link

Green LED Light x 20 Link

Jumper Wire x 40 Link

Resistance x 30 LInk

Styrofoam x1 Bottle

Cardboard 1m x 1m

Step 1 : Finish the Led Lights

IMG_0141.jpg
IMG_0142.jpg
IMG_0143.jpg
螢幕快照 2020-05-27 下午11.48.46.png
螢幕快照 2020-05-28 上午12.01.49.png
螢幕快照 2020-05-28 上午12.03.09.png
螢幕快照 2020-05-28 上午12.03.32.png

First, we have put all the lights on the breadboard. The materials are shown in the picture above.

1. 5V - positive, GND - negative

2. digital 2-8 - led lights, digital 11 button

3. Put tape on the top of the led lights to prevent it from falling off

Step 2 : Code!!!!

螢幕快照 2020-05-28 上午12.23.41.png
螢幕快照 2020-05-28 上午12.23.56.png
螢幕快照 2020-05-28 上午12.24.07.png
螢幕快照 2020-05-28 上午12.24.15.png
螢幕快照 2020-05-28 上午12.25.51.png
螢幕快照 2020-05-28 上午12.26.02.png
螢幕快照 2020-05-28 上午12.26.13.png
螢幕快照 2020-05-28 上午12.26.21.png
螢幕快照 2020-05-28 上午12.26.31.png

When you are uploading your code to your Arduino board, you need to attach a USB cable to your computer, so it would function correctly.

Link to my code:

https://create.arduino.cc/editor/viennachen/0e57a3...

When you press the button, the music will start first, and then the lights will start to shine.

Code Part 1: When you press the button, the space button will be pressed, the music will start.

Code part 2: 100 milliseconds between each light

Code Part 3: Second part of the light, 100 milliseconds between the light on and off, 500 millisecond between each light.

Step 3: Design the Box

IMG_0146.jpg
IMG_0153.jpg
IMG_0148.jpg
IMG_0144.jpg
IMG_0152.jpg
IMG_0150.jpg
IMG_0147.jpg

Now you will create a box to hold all the light!

1. find a box and stick all the sides together ( Make a full closed box)

2. Cut one side of the box off

3. The cut offside will become a plat cardboard

4. Plot the points on the cardboard. The number on the dots should as same as the one on your Arduino board

5. Paint the other side of the board black

6. Turn the plots you draw into holes.

7. Place all the Led lights in the holes. The lights should the same as your lights on your breadboard.

8. Leave the board outside, and the lights facing inside

9. make holes in the front of your box