Window Detecter

by Caesaryu10 in Workshop > Tools

312 Views, 2 Favorites, 0 Comments

Window Detecter

IMG_8252.JPG
IMG_8254.JPG
IMG_8250.JPG

Welcome to the site! This site will teach you how to make a detector for reminding you to close the window.

Checking the window is closed is always inconspicuous and trouble. Especially in the summer, people often forget to close their window that causes few problems, mosquitoes flying into your house, and the air conditioning’s energy is wasted. However, if you use the window detector, all the problems above could be solved.

How It Work:

This device is basically using an ultrasonic sensor to detect is the window closed, which if the window is not closed, the buzzer and the LEDs will be triggered.

Supplies

In order to make the detector, you would need to prepare the following materials:

1. Breadboard

2. Arduino Leonardo

3. Resistor 82ohm (3)

4. Cardboard

5. LEDs (any color is available) (3)

6. Buzzer (1)

7. Ultrasonic distance sensor (1)

8. Removable Mounting Putty

9. Wires (10-20)

10. Portable charger

11. Box cutter

12. Tape

Assembling the Components

Screen Shot 2019-06-01 at 6.59.20 PM.png

In this part, you would need to complete a few steps.

First step: Connect the basic outset

Connect the red wire from 5V to the hole that has a positive sign(+) on the breadboard. Connect the black wire from GND to the hole that has a negative sign(-) on the breadboard.

Second step: Connect the ultrasonic distance sensor

Put the ultrasonic sensor on the breadboard. Connect a red wire from VCC to the hole that has a positive sign(+). After, connect a black wire from GND to the hole that has a negative sign(-). Connect a wire(any color) from TRIG to ~6 on the Arduino board. Connect a wire(any color) from ECHO to 7 on the Arduino board.

Third step: Connect the LEDs

You would need to connect three LEDs, that any color is available, so you can choose the color you like. First, put the three LEDs on the breadboard, and connect the long leg of the LED to ~11, 12, and 13 separately by using wires(any color). After, adds a resistor under the short leg of the LED, which can reduce current flow, then connect the resistor to the hole that has a negative sign(-) by using a black wire.

Final step: Connect the buzzer

Connect the red wire of the buzzer to ~3 on the Arduino board, then connect the black wire of the buzzer to GND on the Arduino board.

Coding

Screen Shot 2019-06-01 at 9.33.39 PM.png

You would need to provide a code to make the detector to work. Further explanation would be written in the link, CLICK HERE to see more.

Boxing

IMG_8255.JPG

In this step, you would need to prepare cardboard and mounting putty

First, measure the length and the width of the cardboard, which the width should be 14cm, the length should be 18cm, and the height should be 5 cm. Cut down the outline, and start folding it. In order to make it easier to fold, uses a box cutter to cut the cardboard lightly, then fold the box. Use tape to wrap up the part that is not sticking together.

After making the box, you would need to open two holes for the ultrasonic sensor and the LEDs. First, try to put the Arduino inside the box, then make marks on the part you want to open the hole. Then, again using a box cutter to cut down the outline to make the device actually work. You would need to use some mounting putty to stick the Arduino board inside the box, also stick some at the back of the box, so you can stick it on the wall.

At last, use tape to decorate the box, so to make it looks better.

Final Work

Wanna see the final work CLICK HERE (VIDEO).

Thank you for visiting this site, see you next time!