Sunteți pe pagina 1din 6

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

Facebook LED blink on new notifications and messages


by Stonos on August 1, 2010

Table of Contents

License: Attribution Non-commercial Share Alike (by-nc-sa) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Intro: Facebook LED blink on new notifications and messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

step 1: How does it work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

step 2: Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

step 3: Download and configure the LED blinker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

step 4: Connect the LEDs to the parallel port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

step 5: Install the Greasemonkey script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

step 6: Some things to keep in mind... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

http://www.instructables.com/id/Facebook-LED-blink-on-new-notifications-and-messag-1/
License: Attribution Non-commercial Share Alike (by-nc-sa)

Intro: Facebook LED blink on new notifications and messages


In this instructable I will show you how to make a LED blink when you have a new notification or message on Facebook via the parallel port. Check out the following
video for a demonstration:

It is a quick and easy project to do, provided you have the required stuff.

Image Notes
1. LED for new notifications
2. LED for new messages

step 1: How does it work?


There are two parts that power this project.

The first part is a small program that turns on or off the LEDs that are on a parallel port using inpout32.dll . The program hosts a tiny server that its one and only purpose
is to understand HTTP requests.

The second part is a Greasemonkey script that detects when you have a new notification/message.
If you have a new notification or a message, the script will request a URL from the server the program described above hosts, and the program will understand the URL,
and will start blinking the requested LED.
After you read your new notification/message, the script will request the same URL as before, which tells the program to stop blinking the LED.

Simple eh?

step 2: Requirements
You will need:
- Windows (also works with x64 versions)
It should be possible to make this work on Linux, but not on a Mac, because as far as I know, Macs do not have a parallel port
- A parallel port
Most new computers don't have an integrated parallel port, so you'll have to buy a PCI-to-parallel card yourself. From what I read on the internet, not all cards will
work, and USB-to-parallel also won't work.
- Mozilla Firefox with the Greasemonkey extension installed or Google Chrome (Opera might work too)
- 2 LEDs
- Centronics Printer cable (optional; I use it as an extension cable)

http://www.instructables.com/id/Facebook-LED-blink-on-new-notifications-and-messag-1/
step 3: Download and configure the LED blinker
Download the LED Blinker from here , and unzip it somewhere.

Open Device Manager (you can do that by pressing WindowsKey+R and typing devmgmt.msc in the window that comes up), double click on Ports (COM & LPT) , and
then double click on your parallel port (it is usually listed as ECP Parallel Port or Printer Port or something similar).
On the new window that comes up, click on the Resources tab and note the first part of the I/O Range setting (check the attached screenshot). *

Once you have that, go to the folder where you unzipped the application, and open the address.txt file. Replace the contents of that file with the address you noted above
(again, check the attached screenshot), and save it.

Once that's done, double click on LEDBlinker.exe to open the application (note: On Windows Vista/7 you must run it as an administrator for the first time! ). You
won't see anything, but you can verify that the program is running by looking for it in the Task Manager. If you have a firewall, it might warn you that the program is trying
to listen on port 4012. You must allow it for the program to work (for more information check step 1).

Note: If you are getting an error when you run the application saying that it can't find mswinsck.ocx, then download it from here , and place it in the same folder as the
program. It should work then (again, if you're using Windows Vista/7 you'll have to run it as an administrator for the first time).

*: If there are more than one I/O Ranges, then try them all until you find the one that works. Make sure you terminate LEDBlinker.exe via the Task Manager every time
you change address.txt.

step 4: Connect the LEDs to the parallel port


If you are using a printer cable, check the third picture for reference, otherwise, check the second.

Connect the longer lead* of the first LED to bit 1 (check the pictures mentioned above), and the shorter to any of the ground (GND) pins (it doesn't matter which one you
choose). This will be the LED that will blink when you have a new notification.**

Connect the longer lead of the second LED to bit 6 , and the shorter to any of the ground pins. This will be the LED that will blink when you have a new message.

To check if the notification LED is working click here (stop blinking ).


To check if the message LED is working, click here (stop blinking ).
If the LEDs aren't working, make sure that the LEDs are correctly inserted (try moving them a little), and that the LED Blinker is configured correctly and running.

*: If the leads of your LED have the same length then find the flat side of your LED. Connect the lead of that side to any of the ground pins, and the other to the bit pin.

**: It is possible to change that, but you will have to make a tiny change to the Greasemonkey script.

Image Notes
1. Pin used for the notifications LED.
2. Pin used for the messages LED.
3. Data bits
4. Ground pins

Image Notes
1. Connect the longer lead of the notification LED to bit 1
2. Connect the shorter lead to any of the ground (GND) pins

http://www.instructables.com/id/Facebook-LED-blink-on-new-notifications-and-messag-1/
Image Notes
1. Ground pins
2. Pin used for the notifications LED
3. Pin used for the messages LED.
4. Data bits

http://www.instructables.com/id/Facebook-LED-blink-on-new-notifications-and-messag-1/
step 5: Install the Greasemonkey script
After you make sure the LEDs are working correctly, it's time to install the Greasemonkey script. The Greasemonkey script can be found here:
http://userscripts.org/scripts/show/82985
Click the above link, and then click the Install button and acknowledge the warning.
After you install the script, reload Facebook.

You're done! :)

step 6: Some things to keep in mind...


LEDBlinker.exe has to be open at all times, so it might be a good idea to have it run on startup when Windows boots.

Your browser also has to be open at all times, with a Facebook tab open.

The part that detects new messages has a limitation: You must already have a chat window open and minimized with the person that sends you the message; otherwise,
the new message will not be detected.

Related Instructables

Upload Flickr LED display for Arduino Tutorial


Facebook LED LED stand by photos directly Bundle
Lighting a Light imaging your to Facebook sousaphone by
blink on new dava_2 Dynamo .:Arduino
notifications Emitting Diode eyes with a Tart2000
(LED) with the C photo album by powered LED Experimentation
and messages webcam by
Stamp StaneStane bike lights by Kit:. (ARDX) by
(video) by Stonos orangesrhyme
Microcontroller kptBurek oomlout
by adashwit

Advertisements

Comments
9 comments Add Comment

DarkStar851 says: Aug 7, 2010. 4:41 PM REPLY


Don't suppose you have the source code for LEDBlinker.exe? I don't care which programming language it is, was looking to port it to Java and write a GMail
checker around it. (Browser free.)

webart says: Aug 6, 2010. 7:02 AM REPLY


hi guys I just wonder, can I use this and make it work same way ? http://www.dcs.dk/CNet/digitalcontent/ccs/6D1382DF-846B-4B5A-B64C-
85D337E875AF.jpg

Stonos says: Aug 6, 2010. 11:00 AM REPLY


Sorry, as far as I know, USB-to-parallel cables won't work :(

If your computer doesn't have a parallel port, then you'll have to get a PCI-to-parallel controller (unless you are on a laptop, so you're out of luck). I use
this one , but if you can't find that particular model in your country, then you can try this one , which should work, since it uses a chip similar to my card.

cooltech786 says: Aug 7, 2010. 2:57 PM REPLY


any chance this can be done with a serial port (unfortunately dont have a parallel port or any open PCI ports) - Thanks!

Stonos says: Aug 7, 2010. 4:27 PM REPLY


Unfortunately, I don't think it can be done with a serial port. Sorry :(

DarkStar851 says: Aug 7, 2010. 4:40 PM REPLY


Yeah, Serial ports are strictly rx/tx data transmission pins. No voltages suitable for LED fun. :(

godofal says: Aug 5, 2010. 1:05 PM REPLY


i don't know how many V comes out the paralel port, but in any case u want to add a resistor to those LED's

http://www.instructables.com/id/Facebook-LED-blink-on-new-notifications-and-messag-1/
Stonos says: Aug 5, 2010. 1:38 PM REPLY
About 3.3V in my case.

DarkStar851 says: Aug 7, 2010. 4:40 PM REPLY


3.3V is more than in the safe range of most standardized LEDs, no resistor is required.

http://www.instructables.com/id/Facebook-LED-blink-on-new-notifications-and-messag-1/

S-ar putea să vă placă și