Friday, January 28, 2011

The mail notifier

In order to ease the work for the local postmen in Denmark where I live, the goverment decided that apartment complexes should install mailboxes on the ground level, so the postmen would not have to run up and down stairs many thousind times a day. This is a good deal for the postmen, however it also means that I have to check my mailbox daily if I want to be up to date with the mail I receive. The dilemma is this: I could go and check my mailbox daily, but if my mailbox is empty that would be a waste of time and just plan irritating. On the other hand if I only check my mail say every 3 days then I might miss something urgent that needs my attention.

So I decided to build a small system that could notify me whenever someone had dropped something in my mailbox. To ease the build I brought a cheep wireless doorbell for its wireless capabilities. The plan was simple. Mount the transmitter part on the inside of the mailbox and extend the pushbutton with some wires and a microswitch to detect when the lid is open. The “new mail” notification would then be handled by means of a blinking LED on the doorbell receiver unit placed in my apartment.
To remember if the mailbox lid had been opened I made a electronic flip-flop that was set when the lid is opened and reset when a small reset pushbutton was pressed.

This is the logic schematic for the little addon bord I made for the doorbell unit.

This is how it looked when testing out the circuit on my breadboard:

the LED shown here was just for testing, the one installed in the end is a 4 mm selfblinking one. The IC I am using is a quad NOR-gate TTL type. (74HCT02N)

I didn't bother to make sure that the same gate would always win the power on race, I just took the power on and off a couple of times to see which one of them that came first most of the time. After all I will only have this problem when the circuit is re-powered after a battery change, and then there is always the chance that it will power up the right way. If not it is just a matter of pressing the reset button.

After a bit of reverse engineering I found a suitable “set” signal to tab into on the doorbell main board. This signal is only high as long as the doorbell's pushbutton is pressed. Strangely enough the signal was only 3V and I had been expecting about 4.5V since the doorbell unit uses 3 AA batteries. It turned out that two of the batteries was dedicated for driving the electronics while the last one were to drive only the speaker. A bad design if you ask me, it must have drained the batteries very unevenly. On the bright side I could throw a battery away and still have working electronics. Since the IC I am using is TTL type the relatively low 3V supply should still be sufficient to drive my electronics properly.
Here is a picture of the electronics with my finished addon board attached:
 In the top left corner you can see the backside of the reset button and the LED.

With the receiver unit done I moved on to the transmitter part of the doorbell system. None of the electronics in the transmitter part had to be altered, it was just a matter of adding a microswitch contact in parallel with the one already on the board:
I glued a wooden spacer to the switch to make it fit in the mailbox:

When the lid is closed the switch is pressed so the function becomes inverted. In order to de-invert it, the switch is wired up as normally closed. This way I get a high signal when the lid is opened.

With everything reassembled it was time for testing, which I thought would be ever so easy. Hell no! For some reason it would not work reliably on distances more than just a few meters... The problem obviously had something to do with electrical noise, which is really a bitch to do any faultfinding on. I tried routing the wires from my addon board as far away from the antenna as possible but nothing worked. Finally I made a tiny hole in the receiver and fed the antenna through to the outside of the casing, which worked brilliantly. My guess is that either my addonboard must have acted like an antenna for a noise source on the receiver board or that the addonboard itself have made some kind on noise. However I dont see how the simple components of my own board could ever make any kind if HF noise. Anyways now I know exactly when I have to empty my mailbox, no more running emptyhanded!


  1. I really like your implementation.
    I was going to make one for my parents house, but with a sensor that could see if there is something inside or not. It never crossed my mind that a simple switch that knows when the lid has been opened will do the trick!

  2. A cam with ir leds would have been cooler. You could have put it up on the web. =)

  3. Great idea! Just a thought, from the picture it looks like your mailbox is all metal. That could have contributed to the poor range.

  4. Hmm... When i get a Newspaper, the Switch was Open long time. So the Battery get fast down.

    I think the switch with timer was better. Like a 555 Timer

    But this was a Great Idea...

  5. I thought about the problem with the newspapers suck in the lid holding it open... but i don't receive any newspapers and i have a "Free newspapers and adds no thanks" sign registered with the postal service. So far i haven't had problems with anything stuck in the lid.

    Hopefully I never will ;O)

  6. Hey good job. I really like projects with a practical application. Cheers!

  7. I love this but my first thought is the postman opening my box only to find wires and sensors. He may immediately think it's a bomb rigged to blow. Did you give your local guy a heads up?

  8. Nice project. You may find some like-minded individuals in your local hackerspace at (if you haven't already).

  9. Hey, great job. It WOULD be a smart idea to label your device something like "wireless mail notifier buddy" or some other bland friendly name so that the postman wouldn't be put off.

    Also, how useful is a gadget like this? Think it might catch on? I want one already.

  10. I like your simple solution - I did it another way using an arduino (overkill for sure)

    I used a LDR (Light Dependent Resistor) as a sensor to avoid using a mechanical switch.

  11. hello mime,very usefull application
    can you please give me scheme for ic connection to bell unit
    thank you very much

  12. What are resistors values?

  13. Hey, great job.
    Where are you from? (DK like me or ?)
    I use a SCR to do reset and led.


  14. I like it your blog and knowledgeable blog. Tv bracket installation we have the most up to date testers and our vans our always fully stock with CAT5 and CAT6 parts.

  15. Thanks for sharing the information. It is very useful for my future. keep sharing. Can you play more games at :

    happy wheels | friv4school | happy wheels

  16. The blog or and best that is extremely useful to keep I can share the ideas. Age Of War 2
    Big Farm | Slitherio | Tank Trouble
    Of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    Happy Wheels | Goodgeme Empire |

  17. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

    Discover our website bounty of free online games now!
    Our website has the biggest collection of free online games. Totally new games are added every day!

    age of war 2| gold Miner 2| unfair Mario 2 | cubefield 2 |tanki Online 2

  18. Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.

    subway surf , baixar subway surf, subway surf download , download subway surf

  19. Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.
    dream league soccer download , dream league soccer apk , download dream league soccer , dream league soccer

  20. Thanks I have read your article, it is very interesting and exciting
    download go launcher, go launcher apk, go launcher , go launcher androi,

  21. You need to have time to take care of the active. It in fact was a amusement account it. Look advanced to far added agreeable from you.

    baixar banana kong , banana kong , download banana kong , banana kong download , banana kong

  22. Life becomes more interesting and wonderful when you share your memorable moments with friends and family through unique photographs. You can create your own unique style impressed with image editing software. And after hours of work stress you can also
    dr driving, dr driving baixar ,download dr driving, dr driving

  23. Life becomes more interesting and wonderful when you share your memorable moments with friends and family through unique photographs. You can create your own unique style impressed with image editing software. And after hours of work stress you can also

    tank trouble, tank trouble 2, tank trouble games, tank trouble