Myopia Prevention Machine

by Neo Chang in Craft > Art

251 Views, 0 Favorites, 0 Comments

Myopia Prevention Machine

IMG-3060.JPG

This is a machine is made for the kids, some of the parents might worry their children are to close to the screen, and they will be myopia. So when the kids are using the machine and to close to it, the machine's light will flash and have sound, so the kids will know they are to close, they need to go backward.

Prepare What You Need.

IMG_3036.jpeg

1. Ultrasonic sensor

2.Arduino speaker

3.LED (I use red)

4.wire

Wiring

IMG_3037.jpeg

1.Ultrasonic sensor

VCC to 5V

TRIG to D6

ECHO to D7

GND to GND

2.Arduino speaker

+ to D6

- to GND

3.LED

+ to D12

- to GND

Coding

防止近視裝置
防止近視裝置

Now we don't need to worry about your kids is being to close to the screen.