To paraphrase:
From BCM thru a diode with line end towards door (ie, 1.8k & 620R to GND.
"Your" resistor from +12V to line-end/door-resistors.
So your resistor needs to be similar to the BCM's internal resistance, AND its +12V is only on when the BCM turns off. (Ah - we need a comparator to sense when the BCM is off...)
And your +12V should be whatever voltage the BCM uses internally (maybe 10.2V?), but that might not matter if the REF voltage can be set to a suitable value.
Have you ever heard of a PICAXE - specifically (say) the 08M2? They are like a self-contained microprocessor circuit but all on one chip.
The 08M2 has 8 pins and has timers, counters, analog to digital converters (ADCs), a DAC (digital to analog coverter), programming space for ~2,000 instructions, etc. About $3. Consumes 14uA (or was it 14nA?) in standby mode, blah blah blah. Programmable via a serial port (legacy PC stuff or via USB-serial converter).
Usually all PICAXE pins - EXCEPT the +V & 0V supply pins and one dedicated input - can be configured as inputs or outputs. Hence the 08M2 can have 5 inputs and 1 output, or 4 inputs & 2 outputs etc.
Minimum config is a 78L05 5V voltage regulator plus 2 programming resistors; then add whatever input and output circuitry is needed.
Programming tools are free and there are heaps of open source projects & programs (see
picaxeforum.co.uk).
The problem is the learning curve for programming etc, tho much can often be cut&paste with a few modifications. (Programs are often much the same - it's merely what they input and output that varies. Programs can often be thought of as a collection of building blocks (program segments or modules) that are put together in different orders to achieve a goal).
But I have been surprised how some have adopted the 08M2 (or bigger/more_complex equivalents) to substitute tricky or complex circuitry, and done so with apparent ease. (I've suggested it a few times on
mp3car.com and been impressed by its uptake. FYI - I've been meaning to use PICs etc for
20 30 years & finally bought a few maybe 5 years ago, but have yet to actually use one!)
I'm thinking that the PIC could be programmed along the lines of "
if I see 7V or 4V, then... but if I don't see that...".
If not the expected 7V or 4V, then maybe '
your' external resistor of say 10k
** supplies the
door voltage (which will then be much smaller than with the BCM - eg, 0.7V & 0.4V).
Sir PIC Esq then works like:
- if 7V or 4V or in between the BCM is on and hence the doors are closed, or one is open etc.
- if 0.7V or 0.4V or between, then the BCM is off (not that I care) and hence doors are closed or one open etc.
The "in between" voltages will be similar to that A, B, C, D input comparator circuit if all combined to one input, tho you could combine 2 into 1 input (hence 2 PIC inputs for 4 doors), or use one PIC input per door. (Tho the latter might require 4 ADCs and I think the 08M2 only has 3, but hey, they're mere details.)
** The 10k or whatever resistor is reasonably larger than the BCM's resistance so it does not effect the BCM/door voltages - and hence no diode/s needed (unless the BCM is so sensitive that that low current could wreck its inputs when it is powered off).
Sir PIC also has the
error routines like
if 12V or 10.2V then something is wrong and same too for 0V (tho in practice 0V should always be programmed as "less than z Volts" where Z is lower than what we work with (eg, 0.4V) but high enough to allow for noise and wiring resistance etc - eg, Zero Volts is
less than 0.2V.
Incidentally, the voltages I mention above are our
real world voltages - ie, the actual door voltages.
These will be lower for the PIC because the PIC only handles voltages up to its own voltage supply (ie, 5V with a 7805 regulator, but can be down to ~2V) and we therefore scale down our voltages which will be up to 10.2V or 12V or 12.7V or maybe 14.4V etc.
Scaling down is a techy way of saying
a two resistor voltage divider. (IE, it's easy in reality.)
But anything is possible. Maybe Sir 08M2 turns on the door supply if it senses that the BCM is off. (Hence one output for that.)
Maybe it alerts you in case of a fault if the BCM etc does not do that (it should!).
Or add your hood switch; maybe a boot/trunk switch.
The beauty of uPCs and PICs etc is that once you have the interfacing (input & output circuitry) it is simply (LOL?) a matter of programming.
You reprogram changes to voltage set points etc - there is no trim-potting or component changes.
You might start by using 4 PIC inputs but then add stuff that requires more inputs or outputs. You might then combine the 4 inputs - move the other 3 inputs to the one and modify you program. (That assumes each input (door) has its own series resistor, but a design should probably have that for various electrical reasons but especially so that a capacitor can be added to filter out any noise on each input [an RC filter is much easier than software solutions].)
And a PIC can operate with negligible current (uA) so it can be on all the time.
Does any or all of that make sense?
Or do you want to stick with the
analog solution for now?
I reckon we might be close to the analog/339 solution, but if it does get too complex...
But it's bed time. My alarm will show no mercy in less then 6 hours...
PS - there are various considerations for the 08M2 like choice of inputs - eg, might be able to have 5 inputs but there are only (maybe?) 3 ADCs), but they all have solutions (like maybe
digital inputs but they'd only be good for sensing if eg IGN was on or off, not if 7V or 4V... unless a zenor circuit was used...
...)
Details. Mere details. (Did I mention the learning curve...?
)