# Car security solution - designing the right motion detector

My car gets broken into quite frequently. The car is right outside of our bedroom window. The break ins happen at night, and we never hear them! They must be very sneaky.

I would like to design (or find a plug and play solution) for a motion detector that I will place inside the car that is either battery powered or something that can plug into the car adapter. When it senses motion, I want it to send a signal to our bedroom window so that we can call the police.

Here's an amazing diagram of what I want to happen.

Can you please suggest a design or a plug and play solution that I can use to do this? I know there are many motion detectors, but I would specifically need something that will work at only a 1 meter range because it should be inside of the car sensing any movement INSIDE of the car, and ignoring everything outside.

I don't know if this is relevant, but the windows are tinted.

-
 Has Beverly Hills switched to Cyrillic?? – stevenvh Aug 8 '12 at 16:00 Have you considered just installing a car alarm in the car. They have motion detectors which detect people inside the car only. When an intruder is detected, an acoustic signal is sent to all of the houses in the neighbourhood, causing adults and children alike to wake up and look out of their windows at the offending car. – Rocketmagnet Aug 8 '12 at 17:14 @Rocket - "... alike to wake up", grumble something about unreliable electronic gadgets, turn around to go to sleep again. :-) – stevenvh Aug 8 '12 at 17:24 @stevenvh - That's why I recommend the South African solution. – Rocketmagnet Aug 8 '12 at 17:33 Curious to know if they enter the car and take it for a joy ride. If they do, how cool would would it be if you could rig the car to automatically lock when the thief is inside, and you can only open it from the outside? :D Haha that would give the thief a heart attack! – capcom Aug 8 '12 at 18:18

Ultrasonic sensors seem to be the sensors of choice for many car alarms. You can often buy electronics kits which use ultrasonic sensors to detect motion. The outputs are often simply in the form of a relay, so you can connect it to almost any other device you can think of. Google around for 'ultrasonic motion detector electronics kit'. There's a bunch to choose from.

Simply mount one of these inside the car, and wire it up to the 'deterrent' transducer on the outside.

Alternatively, you could simply wire it up to a wireless doorbell, and leave the chimer by your bed at night.

Also consider wiring it up to a couple of cheap little video cameras, so that you can grass up the little urchin to the police.

-
How about a PIR? – stevenvh Aug 8 '12 at 17:25
I like the wireless doorbell idea to. KISS, but not nearly as fun as making something on your own! – capcom Aug 8 '12 at 18:55
@stevenvh - You can't use a PIR in a car because PIRs can see through windows! You may notice that there are no PIR car alarms available. – Rocketmagnet Aug 8 '12 at 19:05
@Rocketmagnet thank you very much for this awesome solution – Артём Царионов Aug 8 '12 at 19:12
Dismantle the button, and connect the switch to the relay outputs of the ultrasonic sensor. – Rocketmagnet Aug 8 '12 at 19:15
show 1 more comment

Well, let's look at the problem you are trying to solve from a simple perspective. As I see it, you need two things to happen.

1. You detect the motion
2. You wirelessly notify yourself that motion has been detected

Simple enough. Now, it depends of course on what your requirements are. Things like:

• How big you want the device to be
• How much you want to spend on it
• What kind of experience you have with electronics

You didn't provide any of this information, so I'll tell you what I would do if I were in your situation.

## Detecting the Thief

Use an Ultrasonic Sensor

## A Microcontroller to Process the Data and Interface With Your Components

A typical recommendation would be to use the Arduino. All the components I listed above have lots of sample code available which should work flawlessly with the Arduino. You would likely need two in any of the scenarios, unless you are up to using the xBee shield to send the data directly over your WiFi connection. I have never tried it, but it is well documented and shouldn't be very hard to do.

Or you could go the cheaper route and use a standalone AVR or PIC microcontroller. Also not a bad solution, as you can keep things much more compact and portable. If you really want to use the Arduino code, you can install an Arduino bootloader on most AVRs, or you can just code them in C. The Arduino route is easier from a coding standpoint I suppose - but that's arguable.

## Power

Lastly, you'll need power. You have two options:

1. Use a battery pack. Go for rechargeable NiMh packs if you choose this route.

Hope this helped!

-
Can't use PIR in a car because there are too many windows. It'll just detect people walking outside. – Rocketmagnet Aug 8 '12 at 19:06
thank you so much for this in depth solution!! – Артём Царионов Aug 8 '12 at 19:10
@Rocketmagnet what is the reason i can use the xBEE and not PIR? – Артём Царионов Aug 8 '12 at 19:11
does the fact that there are tinted windows have any effect on the motion detector? – Артём Царионов Aug 8 '12 at 19:13
@Rocketmagnet Sure, but I think distance will be more accurate because it can't be disturbed by motion outside the car. If you point the HC-SR04 towards, say, the driver's seat, the one and only way it can be triggered is if someone obscures that part of the car. A motion sensor could be triggered by an animal outside, or pedestrians on the sidewalk if placed incorrectly. – capcom Aug 8 '12 at 21:31