Garage car detector without a microcontroller
At the end of this instructable you will be able to detect your car as it approaches the wall inside your garage, signalling you that the car is inside far enough so you can close the door.
Most car sensors will use a microprocessor to help calculate the distance of an approaching car when entering the garage. At our Wichita, KS makerspace MakeICT, we received a bag of components from JAMECO, which contain almost all the components needed to perform this instructable.
The main component and the challenge was to use a 555 timer as the driving “brains” of the project. So here we go:
The theory of implementation is very simple. Avoid using an Arduino or any other type of microcontroller. Instead use a 555 Timer in astable (oscillating) mode such that it generates a 37.9kHz. We use the switching output of the 555 timer to drive an infrared (IR) Led. When we do this the LED will turn on and off at a rate of 37.9K time per second.
Why? So we can detect it with a special IR detector that will only sense IR light that is modulated (switched) at a frequency of 37.9KHz. Upon detecting the IR light at that frequency the sensor will drive its output line high.
IR light reflects off objects just light visible light do. So in our application as the car approaches the sensor, the IR light emitted by the 555 will bounce off the car and into the sensor. Just like in a pool table, the angle the light hits the object will make the light reflect at the same but opposite side. With this in mind we need to position the IR led and the IR receiver at an angle such that the car is detected only when the car is getting close to the wall, under other circumstances, the IR light will bounce off the car and never reach the sensor as shown below
Step 2: The Schematic
The schematic is easy to understand.
The 555 timer:
The main part here is the 555 timer in astable configurations. The 3 resistors to the right of the 555 timer (330, 22 and 680) control the charge and discharge of the 0.022uF capacitor which in turns generate the square wave at the output of the 555.
The 470 ohm resistor next going to the IR LED limits the current out of the 555 timer so we do not destroy it when driving the IR led
The 10K resistor ensures that the 555 is not in reset.
The IR Receiver
The IR receiver used was an erverlight IRM-8420 but just about any IR received for remote control applications would work. Since the IRM-8420 is only a 5V device a 78L05 regulator was used to ensure we power it correctly.
The IR receiver drives a Red LED when it detects a IR signal modulated at the 37.9kHz frequency rejecting all other IR light. That ensures that the sun light will not trigger the sensor.
The power comes from a 9V square battery attached to the 5V regulator with some bypass capacitors. Those are all the ones I had handy but if you can add some more near the 555 timer and the IR receiver that would make it even better
In order to build a car detection circuit you will need the following components, since Jameco was so kind to provide our maker space with the parts, I figure I would use their part number off their website.
For more detail: Garage car detector without a microcontroller
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic – Simulation – PCB Layout – Gerber Viewer
JLCPCB Prototype: Only $2 for 10pcs 10×10cm, 24 hours Quick Turn, DHL Delivery in 3 days