3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Web Controlled Valentine

Web Controlled Valentine
With this mix of software and hardware, you can light up a heart-adorned night light from anywhere with internet access. So whether you remember at work, in a cafe, at home, or on your (web enabled) cell phone, you can tell your valentine that you're still remembering.

(that, or you can annoy your sweetheart by rapidly pulsing the light throughout the day, until she manually turns it off)

UPDATE 4/16/07: NO MORE DELAY!
I finally wrote my own serial communications program, with the new code, the delay is gone.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Gathering Materials

Gathering Materials
«
  • Arduino-NG.jpg
  • relay comp1.jpg
  • relay comp 2.jpg
There are several ways of controlling an outlet from a PC, but since I had one lying around anyway, I based the project on an Arduino NG i/o board. ($32 from Sparkfun) All other parts were either scavenged, picked up locally at Radio Shack or bought at a grocery store; therefore, there are some messy hacks involved.

Don't let the use of the Arduino dissuade you from attempting this, or a similar problem. The Arduino is extremely straightforward and inexpensive.

-=MATERIALS=-
-Hardware-
Arduino NG - USB Prototyping Board
9vdc 350ma power adapter
USB male A-male B cable
computer power cord (or other suitable grounded cord)
three prong outlet, cover, and box
PC Relay - 12vdc coil rating rs part #275-248
Reed Relay - 5vdc coil rating rs part #275-232
diode (i used rs part #276-1620, but I had it lying around)
Heart-adorned night light
-Software-
Arduino IDE from http://www.arduino.cc
Xampp from http://www.apachefriends.org/en/xampp-windows.html
ComSender - my serial communications program, php code, and Arduino code. (attached)
« Previous StepDownload PDFView All StepsNext Step »
17 comments
Jul 22, 2010. 12:33 PMkaby says:
can you tell me what part of the xampp server your using cause i can only get ftp and apache working
Jul 5, 2010. 8:21 PMkaby says:
I really wanna do this project but I got 2 questions...... What is the php code and what code do I have to upload to my arduino......thanx
Jul 5, 2010. 10:14 PMkaby says:
Wow......thank u so much........you cleared up everything so fast, keep up the good work!!!!
Dec 7, 2009. 7:40 AMrk24 says:
can you post a method that give us to control more leds? or more outputs?

please...I've tried but.... didn't work form me....


works fine with 1 output..


great instructable....

please make the same idea with 8 or more outputs!!!!! T_T
May 11, 2009. 6:09 AMandrewsweet4 says:
That's a great Instructable!!! I understand all the hardware construction parts but do you know if I could do it with a basic stamp 2 module? because I have one lying around....
Apr 27, 2009. 9:42 PMMiffy20 says:
This is amazing and I really want to give this a try but I'm having trouble finding some of the supplies you used at a good price. Are there any alternatives?
Feb 14, 2008. 2:28 AMdolulob says:
Hi, Funny thing... I kinda made the same thing... But its a USB powered white PLexyglas cube, with LEDs inside. The cube is constantly fading colors Then the 2 ppl have a program running on their PC, when either one is thinking about the other the fading stops and the cube turns red (you can change the color in the settings) I use ICQ to send the message through the internet, that way I dont have to bother about a server or anything... I will eventually post an Instructable here, when I can find some time. Mike
Mar 28, 2007. 4:44 PMaloishis89 says:
This is really cool. I have been wanting to mess around with controlling electronics over the internet. is there anywhere i should look that can give me the basics? I sorta understand what is happening, but i cant find a site that explains it out.
Feb 20, 2007. 8:06 AMphotozz says:
If you want to save the price of the USB board, you could just use the LPT port to drive the reed relay.

http://www.instructables.com/id/EE62QUOM31EUOJJVA4/

If your looking to make a portable ethernet connected setup, I would check around for Nano ITX boards.

http://www.idotpc.com/TheStore/pc/viewCategories.asp?idCategory=2

I have a few of the EPIA boards laying around. you can power them from a regular 12V wall supply, and they have built in Ethernet. Many still have pin headers for LPT connections.
Feb 16, 2007. 1:44 PMnoahw says:
This is some awesome Valentine's Day technology. Now that you have a computer controlled power outlet you can make all kinds of remotely operated gifts and machines. Nice idea and instructable!
Feb 16, 2007. 7:41 PMerfonz says:
You could make sure your christmas lights were off, space heater wasn't running while your out, but most importantly... annoy/freak the bejeezes out of anybody!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
23
Followers
12
Author:gschoppe
I'm a self proclaimed renaissance man. My goal in life is to have a conversational/practical knowledge of every subject known to man. I do graphics design in my spare time, along with make-ing.