BathroomLight

 

Features Overview

For an SMU IEEE event, we wanted to give students a chance to explore the possibilities that microcontrollers provide. Guirmo Vasquez, a Linux & Research Computing Support Specialist at SMU, was kind enough to provide all students with an Arduino Uno, a large LED, relay, and ping sensor. Mr. Vasquez then taught two crash courses for SMU IEEE in how to code the Arduino to control the LED, relay, and ping.

To show students what one application with all the components could be, I used all the parts to automate my bathroom lights and be a nightlight. With being it the bathroom it is simple to keep track if someone is in the bathroom or not, by turning on the lights when walking in and then turning on timer to turn off the lights in 2 minutes after leaving bathroom (enough time to get back in bed), along with turning on an LED. I then helped a friend do the same to their bathroom.

 

1

MDF laser cut box to house ping sensor and UNO.

MDF laser cut box to house ping sensor and UNO.

IMG_0207.jpg
IMG_0156.jpg

Wired in parallel with the light switch

The Arduino turns on if the ping sensor reads a value less than the doorway and activates the relay. The Com port on the relay is connected in parallel to the 120VAC connected to the light switch, the Normally-Open port is connected in parallel to the positive lead of the lights with the output from the light switch, and nothing connected to the Normally-Closed. This allows the light to be on and override the relay. 

IMG_0059.jpg
IMG_0159.jpg

11