Automatic Light Switch- for Better Home Efficiency





Introduction: Automatic Light Switch- for Better Home Efficiency

This switches the lights on when you enter the room and turns them off when you exit. It is made using a nxt mindstorms kit. The video shows the lights switching on and off when I enter and exit. It can tell when someone walks in because it has an ultrasonic sensor. The program is the last file.

Step 1: Building the Mechanism

It is basically just a reciprocating mechanism. It is very simple and it is taped to the wall. Also the way that the bar keeps from falling is a piece of backwards tape, taped over by a piece of frontwards tape.

The ultrasonic sensor is mounted to the nxt brick.

If enough people show interest in this project I will probably make a lego digital designer file (that's kind of like cadd but for legos)



    • Epilog Challenge 9

      Epilog Challenge 9
    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest

    We have a be nice policy.
    Please be positive and constructive.




    Good project, but might be improved if instead of turning off when you leave or if someone else walks in, just have it turn on when it detects movement, and then after so long of no movement, turn off.

    Its a nice project here. But, just asking, does the ultrasonic sensor has any harmful effect on us..?

    I don't think so. Ultrasonic sensors just uses sound waves that are at a frequency higher than the human ear can detect.

    Thanks for the reply and answering my question!

    If your going for efficiency wouldn't a simple relay work just as well.

    The idea is good. But the NXT has to be turned on all the time aswell... what uses more energy?

    I 'm not sure what uses more energy, but it was more of a "proof of concept" project.  There was also a logistics problem, if someone else walked in the room, then the lights would shut off.  It could be fixed by having two sensors, so you could tell if someone was leaving or coming in.  Also with a variable that stored how many people were in the room it would prevent the lights from shutting off on the people in the room when one person leaves.  So then the lights would only go out if everyone has left the room and the variable is equal to zero.

    Thanks for the comment