Stupid diode question (car power door locks)

This should be plainly obvious - I mean, it's a diode, right? - but I've been buried in wiring diagrams and my brain has stopped working or something. Here's the relevant part of the circuit:

If I wire it like this, with the inline diode as shown, will it prevent the door key sensor from kicking the relay when the key's turned to 'unlock' and the red/green wire is grounded? Yet still allow the body controller to sense the ground when the alarm kicks the relay to unlock? This is needed because the stock body controller already has a built-in progressive unlock feature (if it senses two ground pulses from the lock sensor within X seconds, it unlocks all doors), and I need to keep the other channel in the alarm free for the trunk release function. It probably wouldn't hurt a thing without the diode, even if turning the mechanical lock cylinder with the key kicks the relay on and activates the lock motor since the motor & mechanical linkage are both going in the same direction, but I would like for it to still behave like stock when using the key (don't ask me why, it's just one of those things... (what OCD? I have no idea what you're talking about!)).

I can’t look at that diagram and be able to answer your question but I may just know if it will still work if you post the year/make/model and what alarm your installing. Cars are my thing, I was an ASE certified master tech by 21, my first professional automotive job was years ago at best buy, at 16 years old I was the alarm/remote start guy, the adults that worked there with me got stuck on the simple radio/speaker and GPS jobs (back when GPS was a huge trunk mounted unit that had to be hard wired in and have an external antenna outside the car to be able to pick up 3 satellites).

2000 Camry CE, Kentucky built, no factory theft deterrent or keyless entry.

The alarm (not using it as an alarm, just in keyless entry mode) is an Autopage RF-225A... it has a provision for doing the 2-stage/progressive unlock thing, but that uses up the 3rd channel, which I have to keep free to use for the trunk release. The factory integration relay (a dumb version of a body controller) already has the progressive unlock thing, triggered by the lock cylinder switch. The way I'm wiring it, one press of the unlock button on the remote will unlock the driver's door via the add-on relay, and a second press will trick it into thinking the lock cylinder's been turned again (by grounding the 'unlock' wire from the lock cylinder switch whenever the relay is activated) which then tells the integration relay to unlock all doors, just like if you did it by using the key. But, the only reason for the diode is to prevent the relay from being activated if the door is unlocked manually with the key.

p.s. I beat you to Master by nearly 2 years... LOL

Hm, I was thinking it was gonna be a ford the way it sounded. I have no clue about a Toyota… Good luck lol.

I had no idea you were a wrench too, that’s cool. I figured you were an EE or something similar.
The only reason it took me till 21 was cause of the 2 year working requirement for master. Being an installer at Best Buy didn’t count as on the job work history so my first job that counted towards that requirement was menineke which I started at 19. I passed A1, A3, A4 and A8 when I was 18, the different individual cert’d don’t require the on-the-job time achieving master tech does so over the next 2 yeas I passed the tranny tests while I got the time requirement taken care of. Speaking of ASE I have to recert for a few this summer.

All my certs expired in something like 2008, I gave it a good try (from '89-'07) and never could figure a way to make enough money to live on. Wrong part of the country, I guess. And I wasn't willing to do the commonly accepted things everybody else was doing to get my hours up. Could have made decent money if I'd had no morals. It's not like that in other places, it's possible to make good money without stealing. :(

My question really isn't anything to do with the car, or with the alarm. Just that if the ground comes from turning the key will the diode as I have it shown prevent the relay from activating, yet still let the ground signal through when the relay's activated by the remote?

'D18 Door key lock and unlock SW front LH' is the sensor/switch on the back of the outside door key cylinder, it grounds pin 3A at the I.R. when key is turned to lock, and grounds pin 4A when turned to unlock. The I.R. ignores the first ground pulse on pin 4A, the door is unlocked mechanically by the linkage from the lock cylinder. If it reads a second ground pulse on pin 4A within 3-5 seconds, it activates the factory unlock relay and unlocks all doors. All the locks are run by a single relay inside the I.R., they all go off at the same time when they're activated.

The 'lock' side of the key cylinder switch, when that's grounded (pin 3A) it locks all doors immediately, no matter what. So I can tie the alarm's lock output to that, and use the factory relay to lock the doors. The I.R. won't know if the ground pulse came from the lock cylinder switch, or from the alarm. It'll just lock all the doors, and it'll work exactly the same whether you use the key or the remote.

The relay in the middle is an add-on (I hope the part I've added is obvious), the 'unlock' side of the L/F door actuator has to be severed, otherwise with all door actuators wired in parallel there's no way to electrically unlock only the L/F door on its own.

I have the rest of it figured out...

Since the car doesn't have the factory theft deterrent, the trunk sensor wires are just sitting there unused (all Camrys used the same main harnesses regardless of trim level/options). So I'm using the original unused wires to control the aftermarket trunk release actuator.

I also modified the way the alarm box does the parking light output. Originally it was set up for a positive 12V output for the park lights, but that's no good since the factory park light relay is triggered by a ground from the light switch, and tapping into the output side of the factory relay is too much trouble. I moved the input for the alarm's internal park light relay from a +12v in/+12v out, to the ground, so the relay now grounds the park light output instead of giving +12v.

I don’t know what you are talking about nor the details of the circuit but from what I see - yes, the relay coil won’t be grounded by the key. The problem might appear when the relay coil will be grounded by something. Then it will also ground the red/green wire - almost like if you unlock it with the key.
Is it the right answer?

That's exactly how I want it to work (and yeah, the alarm should ground the green/red wire on 'unlock'). Like I said, it wouldn't cause a problem without the diode, nothing wrong with the add-on L/F lock relay being triggered when the outside key is turned to 'unlock'. Besides, that's how the factory stock setup works when you lock the door with the key, it mechanically locks the door, AND the factory relay trips all the door lock actuators. Without the diode, turning the key to 'unlock' would activate the relay and unlock the door with both the mechanical linkage and the electric lock actuator. Not a big deal, I'm just being extremely picky. I HATE poorly thought out aftermarket alarm installs! They nearly always cause more problems than they solve.

Simplified non-car/non-alarm version:

Switch #1 closed/switch #2 open = only bulb #1 turned on; switch #1 open/switch #2 closed = both bulbs turned on. Right?

Another reason many relay wiring instructions recommend using the diode is to isolate the power supply of the coil and prevent it from feeding back into a circuit that wasn’t designed for it. In your diagram, if the blue line diode wasn’t there, it could potentially allow B+ at 86 through the coil, out 85 and back up the RG line. In your diagram, there appears to be another diode at the top of the RG line which would prevent this back feed, but the people writing the installation instructions can’t rely on that being the case on all vehicles, so they include the diode for maximum compatibility. If the RG diode wasn’t there, then there could be a potential issue with false triggering of the relay or damage to the control circuit, especially if it’s only at 3.3V or 5V.

KuoH

The grey box at the top that's not fully shown is the 'integration relay', like a pseudo-body controller. All the inputs to it are ground signals, so until the various input pins are pulled low they already have battery voltage present (it's not using 5v 'logic level' signals like a true BCM).