Tuesday, September 22, 2015

Fire Engine Light

February 2013

I have a 1960's vintage Murray pedal fire engine that was given to me by my parents when I was a child. It's still in fairly good shape, and my grandson enjoys taking it for a drive whenever he is at our house. 





Original light assembly




















The red light has succumbed to the corrosion caused by batteries that should have been removed and the aging (deterioration) of the drive belts. The original light was a small incandescent bulb with a motor driven reflector that rotated around the bulb. I attempted to rebuild the original assembly by making drive belts from rubber bands along with cleaning and lubricating the motor. The belts didn't last and the motor drained two D-cell batteries in no time.




IR sensor can be seen at the lower left of the PCB




















I decided to update the assembly and use a PICAXE-14M2 microprocessor along with 8 red LEDs. I wanted to retain the original look without cutting, drilling, or changing the original pieces, so I manufactured new internals out of scraps laying around. The base was made from hard, thick plastic and the LED's were mounted in an old prescription bottle.

There wasn't a convenient place to mount a power switch without drilling into the original housing, so I opted for infrared control. I purchased an inexpensive universal TV remote for around $5 and programmed the PICAXE to use the channel numbers to select nine different flash sequences. Pressing any other button on the remote, turns the light OFF.

In order for the IR remote to be able to turn ON the light, the microprocessor needs to be put to sleep in order to not drain the batteries in short order. With a little experimentation I was able to create a routine that puts the PICAXE to sleep, but wakes it up often enough to check and see if an IR command has been issued and still proved many months of 'standby' battery operation.



PICAXE program code (.bas)

Wednesday, September 16, 2015

Wireless Garage Door Indicator

A couple of years ago after I had been asked too many times by my wife, "is the garage door closed"? I opted to create a wireless indicator of our garage door's status.

A limit switch and Xbee wireless modules were utilized.

Receiving module; inside the house
A smaller module (not pictured) was created for use in the garage to monitor the limit switch for an OPEN condition.

Two LEDs. Green for door OPEN, and Red for communication failure.

The finished product, showing the garage door closed