Instructables

Control Fluorescent Lights with a Laser Pointer and an Arduino

Picture of Control Fluorescent Lights with a Laser Pointer and an Arduino
IMG_0774.JPG
A few members of the Alpha One Labs Hackerspace do not like the harsh light given out by fluorescent fixtures.  They wanted a way to be able to easily control the individual fixtures, perhaps with a laser pointer?

I got right on it.  I dug out a pile of solid state relays and brought them to the Lab.  I bought an Arduino Duemilenova and demonstrated the use of the LED Blink example sketch to actually blink a halogen lamp.  I found some info on using LEDs as light sensors [1] and an Arduino sketch demonstrating the technique[2].

I found that the LEDs were not nearly sensitive enough - the laser had to point straight into the light emitting part, or the LED wouldn't register.  So I switched to phototransistors.  They are much more sensitive, and over a wider range of frequencies.  With the proper filter over the transistor I could make it more sensitive to red light, and from a much wider range of angles to the sensor.

DISCLAIMER AND WARNING:  This instructable deals with line (mains) voltage at 120 or 240 volts.  Use common sense if you build this circuit - if you have a doubt about something, ask someone who knows.  You are responsible for your (and others') safety, and compliance with local electrical codes.

 
Remove these adsRemove these ads by Signing Up
javila141 year ago
great! so you need to buy the ballasts?
WWC2 years ago
First time i ever saw wires soldiered on like that, even if they are bare wires they are typical just shoved into the headers. Glad it works for you.
moris_zen5 years ago
 Too bad there is no picture of the florecent lights . A video would be grat .
Very hard to get an impresion of what was done ...

rmd6502 (author)  moris_zen5 years ago
There are pictures, and an AVI - are they not showing up for you?
Ohh.. .. thanks - didn't see the Avi before .

I saw the Avi but in fact still dont know what I saw. A light wnet on and then it went off
Jodex rmd65025 years ago
Yes, we can see them.
any thoughts on being able to rapidly turn on and off the light without making the ballast mad? way to keep the light warm but off or dim?
Nice!  I would have made a shield or something instead of soldering the wires straight to the Arduino, but otherwise this is an awesome project!
 I have to tell you, I witnessed that soldering job done in literally 20 seconds.  As they say "Desperate times call for desperate measures"  We were fresh out of header pins and this was the best way at the time to get the wires connected (safely).  I bet you will see an update soon once we get some header pins in or possibly a shield.   Although I think a shield may be too much for this.  Good work on this project by the way!  And I can't wait to see the serial interface side of this project when it is done too.