Mailbox sensor

Last winter my father asked me if I could make a mailbox sensor for him. That winter was long and cold with lots of snow and he found it frustrating to make his way to the mailbox only to find it empty and had to make a new trip later in the day.

So this is my Christmas project for my father (hopefully he wonā€™t see this post)

I started out ordering a cheap set of transmitter/receiver http://www.robotshop.ca/on-shine-low-cost-tx-rx-1.html it has a range of 90m but the mailbox is only about 10m from his house so it should be ok. The plan was to only send a high signal when the mailbox lid was opened but it turned out that due to noise I had to send a more reliable signal. So this is what I came up with.

Transmitter;
To have a steady pulsetrain to look for I added a 555 timer, two resistors and a capacitor to get a steady square pulse. When the lid is opened the micro switch closes the circuit and it starts transmitting the signal. This way it only draws current when the lid is open so the 9V battery will probably work for years. The circuit board is mounted underneath the mailbox but still exposed to whether so I gave it a coat of black plasti dip to make it more resistant.

PB191424.jpg

The micro switch is mounted at the lid.

PB191427.jpg

Receiver;
Inside the receiver box we have the receiver hooked up to a PICAXE 08M, a piezo buzzer for audio alarm and a LED for visual indication if one misses the alarm. The whole circuit draws less than 3mA when waiting for the signal and a bit less pulsing the LED afterwards.

The PICAXE program is short but functional:
symbol LED = 4Ā Ā 
symbol SignalPIN = 1Ā 
symbol Periode = 10
symbol Threshold = 8
symbol Frekvens = w0Ā 

high LED
tune 0, 4,($06,$06,$08)
pause 500
low LED
Ā 
main:
Ā Ā Ā  count SignalPIN,Periode,Frekvens
Ā Ā Ā Ā if Frekvens > Threshold then goto Post
Ā Ā Ā  goto main
Ā 
Post:
Ā Ā Ā  high LED
Ā Ā Ā  tune 0, 4,($05,$03,$05,$03,$05,$03,$05,$03,$05,$03)
Ā 
Blink:
Ā Ā Ā  low LED
Ā Ā Ā Ā nap 6
Ā Ā Ā  high LED
Ā Ā Ā Ā nap 2
Ā Ā Ā  goto Blink

Ā 

Well, thatā€™s my Christmas present for my dad at least. I admit itā€™s not a great project and I see that you could order something premade that is probably better for $49,- but what is the fun in that?

https://www.youtube.com/watch?v=TmzIWTOm6qU

You beat me to itā€¦

In my last ā€œsuppliesā€ order from Spark Fun, I added a pair of the cheapie ($5) TX/RX units to do the exact same thing. Great minds think alike, I guess. Nice clean work as always, Mr. Andersen.

Ā 

Thank you Chris. Please make

Thank you Chris. Please make a post of your version as well.
Small world :slight_smile:

**Neat ! **

Simple and neat job ! :slight_smile:

How about a small solar panel on the transmitter part, perhaps with a tiny charging circuit ? :wink:

As the transmitting circuit

As the transmitting circuit is only drawing 30mA for 4-5 seconds a day I donā€™t think I need a solar panel.
If itā€™s a 9V 300mAh battery that is turned on for 5 seconds each day it should last for 19 years :slight_smile:

You made it! :smiley: Nice one!!I

You made it! :smiley: Nice one!!

I remember you where planning this :slight_smile: I know it is going to be one merry christmas *<;-)

Simple and efficient, great

Simple and efficient, great idea ! :slight_smile:

I donā€™t know if you suffer

I donā€™t know if you suffer from mass-media-mailings in Andersen-land, but If you could make a setup thatĀ tossed the junkmailĀ in a trash bin, Iā€™d give you $49Ā for oneĀ ;)

**Next Christmas **

That have to wait until version 2.0 nextĀ Christmas :smiley:

I could probably get some sort of Nobel prize for that.Ā 

Hi, great project! Could you

Hi, great project! Could you also include schematics for transmitter and receiver. Iā€™m a beginner so the pictures arenā€™t enough for me. My plan is to use an arduino on the receiver side, but I donā€™t know how to build the transmitter.

Thank you.

I donā€™t have any

I donā€™t have any schematics, Iā€™m sorry.
But the receiver is similar to this http://www.sparkfun.com/products/10533 and for the transmitter you can probably use this http://www.sparkfun.com/products/10535 there are some great information on those pages.
Best of luck.