Make: Projects
Home Control via Web Chat
Switch stuff at home from anywhere, with this screen-to-photosensor hack.
If you have pets or children that you need to feed or check on via the internet, here’s a cheap and easy way to control motors, lights, and other devices at home from another computer online, like the one at work. You can set this system up in minutes and it requires no programming. All you need is a webcam, a flashlight, a standard computer running free software, and about $15 worth of analog electronics you can buy at RadioShack.
The system works through a Yahoo Messenger video chat connection between your home computer and any remote computer. But instead of showing people talking, the video stream conveys simple control information that you “encode” using a flashlight on a plain dark surface.
With my setup, for example, shining a light in the upper left corner of the image powers a dog food “allower” that uncovers a dog dish, and shining it in the lower right sounds a buzzer to signal dinnertime.
On the home computer, the video chat window runs full-screen, and cheap photosensors taped onto the screen’s surface detect the changes in brightness when the flashlight spot image hits their locations. Each sensor then switches its device at home via a transistor or relay. Voilà!
By using the screen itself as a port, you bypass having to unpack USB or some other protocol, and you can add additional actuators by simply taping sensors to different parts of the screen.
This setup also keeps your home computer more secure than remote desktop access software such as VNC, unless Yahoo Messenger has some super-secret way of controlling your whole computer, which is unlikely.
Steps
Step #1: Set it up.
Next


- Install Yahoo Messenger (http://messenger.yahoo.com) on both your home and remote computers. Make 2 accounts under 2 matching names, one ending in “home” and the other ending in “work” (you’ll need 2 email addresses for this; get free ones from Gmail or Hotmail or something).
- Separately log into each account from their respective machines, add them as friends for each other, and configure their Webcam preferences to “Allow everyone to view my webcam” and their Super Webcam preferences to “Start Super Webcam mode automatically.”
- For each device you want to control, solder or wire-wrap a long length of wire to each of the 2 leads of a photoresistor. Set up a power circuit for each device on a breadboard, following the schematic. All of the power supplies should be plugged into a surge protector, like a power strip with a circuit breaker.
- You may need to insert an additional transistor/relay for higher-powered devices.
Conclusion
This project first appeared in MAKE Volume 22, page 57.


































