eMail Light: LEDs show new email

 by indestructable
Contest WinnerFeatured
The idea behind the eMail Light project is to indicate the presence of emails that are currently on my email server with a flashing LED. I am often not right at my desk and I would like to know if I have email. Or I am near my desk, but my screen saver has kicked in while I’m working on something that doesn’t involve a constant mouse wiggle. By making a little black box with LEDs that can be controlled by USB through a mail monitoring program, I can be alerted to the presence of email on my server.
 
Remove these adsRemove these ads by Signing Up

Step 1: Mail Light Parts

The eMail Light hardware will be made from:
  • a USBmicro U421 USB interface
  • a ULN2803 driver
  • a bit of circuit board
  • 8 LEDs
  • 8 330 ohm resistors
  • a small plastic box
  • 8 LED mounting rings (optional)
  • wire-wrap wire for point-to-point circuit connections
  • a small 4-40 machine screw
  • an aluminum bar
  • solder, solder flux
Sources: http://www.circuitgizmos.com (first 5 parts), RadioShack (box), hardware store.

Various tools are appropriate and include (but are not limited to):
  • a screwdriver
  • a nutdriver (for the connection to the back of the monitor)
  • a soldering iron
  • a 4-40 tap (if you tap the bar - optionally use a nut)
  • a vise with a brake for bending
  • drill and bits for plastic box holes and hole in bar
  • flush cutter
You might notice in one of the pictures that I used a micro bar clamp. Not absolutely necessary, but convenient.
anstimp says: Feb 14, 2013. 10:58 AM
Can someone make this for me where it would check my webmail and alert me of new mail in a certain folder? How much $?
stoobers in reply to anstimpApr 18, 2013. 8:53 AM
wget the page. grep for the folder. wget the folder. grep for the email. wget the email. make computer go "bing".
abross says: Aug 2, 2010. 9:43 PM
When I try to run the maillights.exe, a window pops and says there is a runtime error. how do i fix this.
indestructable (author) in reply to abrossAug 3, 2010. 8:25 AM
Do you have the USBm.dll in the same directory as the maillights.exe?
abross in reply to indestructableAug 3, 2010. 2:21 PM
I got it working, but it isn't able to connect to my gmail account.
indestructable (author) in reply to abrossAug 3, 2010. 8:01 PM
Is gmail accessible with pop3?
abross in reply to indestructableAug 3, 2010. 9:40 PM
Yes, gmail says it is.
indestructable (author) in reply to abrossAug 4, 2010. 7:00 AM
Gmail says this:

Enabling POP

You can retrieve your Gmail messages with a client or device that supports POP, like Microsoft Outlook or Netscape Mail.

To enable POP in Gmail:

1. Sign in to Gmail.

2. Click Settings at the top of any Gmail page.

3. Click Forwarding and POP/IMAP.

4. Select Enable POP for all mail or Enable POP for mail that arrives from now on.

5. Choose what to do with your messages after they're accessed with your POP client or device.

6. Configure your POP client* and click Save Changes.

abross in reply to indestructableAug 5, 2010. 10:17 AM
I already made sure to enable it. When I click connect on the main email lights window, it says "connected" in the first text box, but it stays there instead of disappearing. And the text box with the number of messages doesn't display "0" like it does when it connects to my comcast account.
account3r2 in reply to abrossApr 14, 2012. 7:11 PM
I am having trouble connecting to Gmail, too, but also with a regular mail client as well (Thunderbird)...
Computothought says: Aug 1, 2010. 2:23 AM
I have my led's with (680ohm resisters) hooked directly to the parallel port.
Computothought says: Aug 1, 2010. 2:20 AM
The nte2013 can be substituted for the uln2803.
siliconghost says: Jul 12, 2010. 5:36 PM
Great minds think alike! Lol. I was going to enter this contest with a project of mine that does the same thing, although I'm using a basic stamp and a c# program that I wrote to poll from the system tray. Mine also uses two 7 segment displays to tell you exactly how many unread emails you have. Summer has been too busy and I haven't had time to document it so I missed the deadline. Oh well. Congrats on your entry being selected as a finalist! John
indestructable (author) in reply to siliconghostJul 12, 2010. 6:00 PM
Hey, thanks!

The U421 will easily drive a character-based LCD display and that was my first choice.  But the LCD can't be read from across the room.
drresearch says: Jun 13, 2010. 7:05 AM
Great idea, I would also like to do something similar, however I use the Linux operating system, would this project work with Linux? And would it be possible to find the equipment in a shop rather than on the internet?
app0 in reply to drresearchJun 24, 2010. 6:50 AM
real basic can make windows, Linux and OSX binaries
indestructable (author) in reply to drresearchJun 13, 2010. 9:00 AM
The software is compiled for Win, but all of the hardware will work with Linux (and OSX). There are examples for Linux in the Circuitgizmos.com blog, and some Linux turn-on-an-LED examples from USBmicro.com. Build one device and it can move from Win to OSX to Linux. But the application software would have to be made for Linux. For Linux it might be some command-line and shell-script work.
drresearch in reply to indestructableJun 13, 2010. 3:46 PM
Great. I am not so expert in electronics but the circuit seems rather easy. If I could only have the parts I might just make it (if the total cost is not too high). I will first want to find the examples you mentioned above before, anyhow. By the way, how much was the total cost? And is it only possible to find the equipment on the internet (never bought anything on the internet yet!) ?
indestructable (author) in reply to drresearchJun 14, 2010. 7:12 AM
The circuits are pretty straight-forward. The U421 is on sale at circuitgizmos where you can also get LEDs, resistors, the PCB, and the ULN2803. $28.55 for that.

The slim case was found at RadioShack for a couple bucks. Other cases can be used. You can be pretty creative there.

Circuitgizmos accepts PayPal transfers, and accepts credit cards, too. Don't be worried about purchasing through CG.

Feel free to ask any questions about getting the hardware to work for you.
drresearch in reply to indestructableJun 14, 2010. 10:41 AM
okay, I might as well ask you, if I do decide to do something similar, what do you think is better for me, the U421 or the U451 relay board? One of the things I am planning to do with the board is control electrical devices with it. However, I heard that the U4x1 can be used also to send data to the computer, and this also sounds interesting. And the outputs, you said, can drive also transistors, and thus, relays instead of the ULN2803? Also how do I send data to the computer from an electronic circuit? I'd have to connect one of the U4x1 pins to 5V? And also, I couldn't find many examples for Linux on the circuitgizmos.com site or usbmicro.com, where are they hidden? :) Finally, I live outside of the US (most of the time in Asia), and CircuitGizmos gives HUGE prices for shipping there (5,000 USD), right now I am in Europe and the shipping price is around 14 USD, but I am leaving here in about 1 month, how much does the shipping take? Thanks a lot for your help till now anyway!
indestructable (author) in reply to drresearchJun 14, 2010. 11:00 AM
CircuitGizmos lists the countries that it will ship to. If yours is not listed you can get the U401, U421, U451 devices through Dontronics.com, too. Perhaps some of the other stuff, too. Or order while you are in a listed country.

The U451 has the ULN2803 built in PLUS two relays. It is very easy to just add LEDs and a series resistor between +5V and the outputs. The U541 could then give you two relays that switch higher (mains) voltages, six outputs that pull to ground (drive LEDs, more relays) and 8 lines that can be used as input/output.

The circuitgizmos.com site has an email address to ask about Linux examples.

Shipping to Europe is typically about two weeks.
drresearch in reply to indestructableJul 1, 2010. 3:27 PM
I think I will buy the u451. Now this question might sound a bit weird, but I want to clear a doubt, I sent an e-mail to robert@usbmicro.com to inquire about Linux and they sent me an application for output control in Linux, but before I make the purchase, do you have any idea if they are really honest?, I mean is that application probably REAL or could it be just something that shows "Couldn't find u4xx!" ? I am also running out of time and need to make the purchase tomorrow in case, so I'd have to decide a bit quickly. Sorry for bothering.
indestructable (author) in reply to drresearchJul 5, 2010. 2:55 PM
The source code is on line and available for the asking.
drresearch in reply to indestructableJul 5, 2010. 3:28 PM
Okay, so most probably that code in C on the usbmicro.com site is most probably the source of that application. Thanks for the answer. I ordered the U451 and I hope it will reach on time, I am leaving in about two weeks, so the arrival time is a bit tight.
Rakkety Tam says: Jun 12, 2010. 1:52 PM
I once built something similar to one of these using an arduino and a uber simple python script. Your setup is much more professional. Great job!
indestructable (author) in reply to Rakkety TamJun 13, 2010. 9:00 AM
Thanks!
Ninzerbean says: Jun 10, 2010. 3:16 AM
In step 4 you say "I removed the extra plastic with the same tool I use to flush-cut component leads on a soldered board." What is this tool? In step 8 how did you cut the board to size? Can you please add a supply list of everything you will need to do this 'ible. Great idea of course - we all spend too much time wiggling that mouse.
indestructable (author) in reply to NinzerbeanJun 10, 2010. 6:41 AM
The tool? That one over there. *points* See?

I use a flush-cut tool. I think the Make blog had posted a picture of the things and asked "what do you call this" and there were a lot of different names for it.

After using that tool, I used a knife to trim the bits of remaining plastic.

The board was cut to size by scoring the board and snapping along that score. I commonly use a metal straight edge to guide my cut, and an ordinary "box cutter" as the knife.

Step 1 does have the parts list:

USBmicro U421 USB interface
ULN2803 driver
circuit board
8 LEDs
8 330 ohm resistors

(Obtained from http://www.circuitgizmos.com)

8 LED mounting rings
a small plastic box
wire-wrap wire for point-to-point circuit connections

Not listed was the aluminum bar and screw from a hardware store.

I don't recall where I got the LED mounting rings, but the holes in the box could be drilled out the same size as the LEDs and the rings would not be needed. The box I believe I had picked up at RadioShack - they may or may not still carry them.
flush.jpg
Ninzerbean in reply to indestructableJun 10, 2010. 8:30 AM
I have those, thanks. I had no idea you could just score the plastic and snap it, again thanks.
indestructable (author) in reply to NinzerbeanJun 10, 2010. 10:24 AM
Thanks for your good suggestions. I changed the list of parts to be a bullet list and also listed suggested tools.
Blastboy says: Jun 8, 2010. 8:41 AM
Can you like edit it to blink if you have a new post in facebook or only check email? Anyway great instructables, you have my vote :)
indestructable (author) in reply to BlastboyJun 8, 2010. 9:18 AM
Thanks, Blastboy!

Well, Facebook posts. Interesting idea. I personally have a specific account for my Facebook stuff, so even the default free software would work for that. Just set up one of the accounts and associated LEDs for your facebook email account, if that is the case.

Otherwise the default software doesn't do anything too specific. But it is within the capability of programming (in REALbacic in this example, or VB, VC, Java, etc) to look for a specific "from" address to blink the lights.
zack247 says: Jun 6, 2010. 3:53 PM
-poke- how much did this cost to make?
indestructable (author) in reply to zack247Jun 6, 2010. 4:02 PM
$25 for the USBmicro U421 (on sale) at CircuitGizmos.com Under $10 for the rest of the parts. There can be variations on a theme. The software and U421 can drive transistors as easily as the ULN2803, the LEDs can be encased in anything. If you want a BIG light, a U451 relay board can be substituted for the U421 and drive a good old hot 100 watt light bulb.
indestructable (author) says: Jun 6, 2010. 3:20 PM
Enjoy this! I know every time I have email by the blinkenlights :-) I can see them from across the room. Funny, too, in the morning walking in and seeing all 4 flash in unison. Poke me if you have any questions.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!