Stephanie Yip

Smart Light
Internet of Things final project to remotely control a LED bulb
See on GitHub
Smart Light Set-up
Smart light set-up
Includes LED bulb in the lamp, electronics and 12V battery for the LED contained in the box, and a portable charger powering the Raspberry Pi.
Smart Light Electronics
Inside of the box containing the electronics
Includes the Raspberry Pi, 12V battery pack for the LED bulb, and photoresistor and transistor circuits on the breadboard.
Webpage that provides a user interface to control the LED bulb

Overview

For the final project in my Internet of Things course, my team decided to create a smart light system in order to remotely control a LED bulb. The idea behind the smart light was to conserve energy by automatically adjusting the brightness of the LED depending on the ambient light in the room.

Hardware

We interfaced the LED bulb, as well as a photoresistor and a transistor, with a Raspberry Pi. The photoresistor was used to determine the ambient brightness in the room in order to adjust the brightness of the LED accordingly. The transistor was used with the batteries to vary the brightness of the LED using the pulse width modulation (PWM) output from the Raspberry Pi.

Software

To control the LED, I wrote Python scripts to read the input from the photoresistor and to adjust the LED brightness by varying the PWM output.

In addition to using Python, I used PHP with the Apache server on the Raspberry Pi to retrieve the user's input from the webpage and run the appropriate Python script.

Back