Window Detecter

136

1

2

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

Step 1: Assembling the Components

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.

Step 2: Coding

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.

Step 3: Boxing

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.

Step 4: Final Work

Wanna see the final work CLICK HERE (VIDEO).

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

Share

    Recommendations

    • Classroom Science Contest

      Classroom Science Contest
    • 1 Hour Challenge

      1 Hour Challenge
    • Pets Challenge

      Pets Challenge

    2 Discussions

    0
    None
    tytower

    17 days ago

    It helps if you say the link goes to a video .
    You should post the ".ino" file here for ease of download of the whole code .

    0
    None
    Penolopy Bulnick

    18 days ago

    Very handy! I'm always worried I've left a window open and forgotten about it :)