Pages: [1]   Go Down
Author Topic: Detecting if spotlights are removed from 4wd.  (Read 430 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

G'day all;

I'm having problems with local hoodlums nicking the spotties of my 4wd.
Given no car alarm has a feature to monitor if my spotties are still electrically connected I thought I would build my own with an arduino in the center.

So the alarm part is simple, but I am a little stumped on the best way to check the spotties are still part of the circuit; as a simple continuity test would expose the arduino pins to the 12v battery power when the lights are turned on.

So I need to test if a circuit is closed, the circuit may or may not be carrying power, and of course the test can not interfere with the car electronics in any way.

cheers for any ideas,

-Wazza
« Last Edit: November 09, 2012, 11:49:03 am by Wazza » Logged

0
Offline Offline
Tesla Member
***
Karma: 114
Posts: 8902
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
as a simple continuity test would expose the arduino pins to the 12v battery power when the lights are turned on.

A small signal diode might protect an arduino output pin from being back fed from the 12v source.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Saskatchewan
Offline Offline
Sr. Member
****
Karma: 15
Posts: 345
When the going gets weird, the weird turn pro. - Hunter S. Thompson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd run a wire from an Arduino pin to the lights and back to the Arduino ground doing nothing more than making a complete circuit. Make it only look like it's part of the light's wiring. It will basically act like a closed switch which they will open when cutting the wires or unplugging the lights. That way you avoid your light's wiring entirely.

Just a thought.
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 149
Posts: 2790
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I was thinking about wiring a large value R [maybe 100K-220K] from the 12V battery to the lamp, so
bypassing the normal switch. This will run a tiny tiny current through the lamp constantly. Then monitor
the voltage across the lamp using an Arduino pin [digital or A/D works], using a 12:5 [or better 15:5]
voltage divider, eg 100K:33K.
« Last Edit: November 09, 2012, 04:35:12 pm by oric_dan(333) » Logged

UK
Offline Offline
Shannon Member
****
Karma: 183
Posts: 11148
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Zoomcat already suggested using a diode to prevent the Arduino being back-fed by the lamp when it was turned on. All you need is a digital input with a pullup resistor which is connected to the spotlamp +ve via a diode so that the lamp acts as a pull-down resistor. Presumably your Arduino is going to drive some sort of alarm output which suggests you may be wiring an output through a transistor. If you're up for that sort of thing, I expect you could actually eliminate the Arduino entirely and use your pull-down circuit to turn on a transistor directly.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1183
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

As Peter says, you dont actually need an Arduino here, something like below ( but with a power FET instead of a transistor)  would work

Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers all,

The arduino may seem like over-kill but the system also needs logic like:
-turn off after 30 seconds so as not to drain the battery or annoy the neighborhood after the spotties are long gone.
-keep alarm going for 30 seconds if spotttie is immediately plugged in.
And besides, once I wire in an arduino, I have a platform ready for other car related projects.

I appreciate the diagram heaps boffin1; I am starting to get an idea of how to approach the problem now. For some reason I hit a massive mental blank approaching this problem and this stream of ideas has cleared that, so again thanks smiley
Logged

Pages: [1]   Go Up
Jump to: