PCM Diagnostics & Tuning HP Tuners | Holley | Diablo
Sponsored by:
Sponsored by:

Feasible to create auto-lock from ODBII?

Thread Tools
 
Search this Thread
 
Old 10-30-2018, 05:41 PM
  #1  
TECH Enthusiast
Thread Starter
 
ewingr's Avatar
 
Join Date: Sep 2005
Posts: 618
Received 3 Likes on 2 Posts

Default Feasible to create auto-lock from ODBII?

I have an LS3 in a '61 Chevy. I would like to be able to have my doors lock at 10mph or something like that.

Anyone know if it's possible to rig something up from the odb port to send a negative signal that I could hook to the door lock? Would be good to send it to the unlock at ign off.

I've been looking to see if there is any aftermarket thing for this but haven't run across anything.

Old 10-30-2018, 06:22 PM
  #2  
TECH Junkie
iTrader: (4)
 
LLLosingit's Avatar
 
Join Date: Aug 2013
Location: Iowa
Posts: 3,837
Received 474 Likes on 354 Posts

Default

Most likely that would have been controlled by the BCM not the ECU but that doesn't mean you can't make something yourself to make it work.

Not that you're going to spend the money to make the switch but an aftermarket ecu would be able to make that possible. I run a Holley system that locks out reverse at speeds above 5mph.
Old 10-30-2018, 06:23 PM
  #3  
TECH Addict
iTrader: (2)
 
gofastwclass's Avatar
 
Join Date: Aug 2009
Location: KCMO
Posts: 2,950
Received 26 Likes on 24 Posts

Default

Roger, locking the doors once the car is in motion would come from the body control module not the PCM. Can something be put together using factory or aftermarket parts? Possibly, but at what cost (time and financial). I'm a simple guy so I ask why not just lock the doors if you want them locked?
Since your car is an automatic what would be simpler is setting a switch to activate a relay that locks the doors when you put the car in gear and unlocks them when you move back to park. Some aftermarket alarms will do this.
Old 10-30-2018, 06:39 PM
  #4  
TECH Senior Member
 
G Atsma's Avatar
 
Join Date: Jun 2016
Location: Central Cal.
Posts: 20,874
Received 3,021 Likes on 2,352 Posts
Default

Originally Posted by gofastwclass
Since your car is an automatic what would be simpler is setting a switch to activate a relay that locks the doors when you put the car in gear and unlocks them when you move back to park. Some aftermarket alarms will do this.
I think this would be your best plan of action. Simple but effective.
Old 11-01-2018, 02:00 AM
  #5  
TECH Enthusiast
 
PeteS160's Avatar
 
Join Date: Oct 2017
Posts: 567
Likes: 0
Received 157 Likes on 73 Posts
Default

Sure it can be done exactly like your describing but it's probably not worth the cost to have someone else design and build something for you for something that just does lock/unlock.

You'd need a micro controller
1 Mcp2551/2515 combo, 2 output resistors and 2 caps
1 linear voltage regulator/I/O caps to feed the micro controller and CAN chips as well as stabilize the voltage.
2 Npn transistor and gate resistor
2 Songle micro relays - These are good for 10 amps

Send the pid request 0x01 0x0D every 100-200ms to get vehicle speed then read the response and convert it to MPH.
A simple program something along the lines of.......
if (speed > 10 && LockPin == LOW) { digitalWrite(LockPin, HIGH);} // turn on lock relay if it's not on and speed is more then 10 mph
else if (speed > 10 && LockPin == HIGH) { digitalWrite(LockPin, LOW);}// if speed is more then 10 mph and lock relay is on turn the relay off
​​​
if (speed < 10 && UnlockPin == LOW) { digitalWrite(UnlockPin, HIGH);}// turn on the relay to unlock the doors when speed is less then 10 mph
else if (speed < 10 && UnlockPin == HIGH) { digitalWrite(UnlockPin, LOW);}// IF the unlock relay is on then turn it off

That gives you an idea how simple it is..you could add a timer to the above code to control how long the lock/unlock pulse from the relay lasted if it didn't turn on the relay long enough to activate the locks fully. Hell could even add a delay so that it'd wait X number of seconds before trying to activate the locks again so the locks aren't cycling on and off at parking lot speeds.

If your handy with a soldering iron and spent a couple of hours reading on basic programming for something like an Arduino and a few more hours writing your program and assembling the parts you could build this your self in a couple of nights for about 15 bucks worth of parts on a blank pcb. Hell you could just but an Arduino, a CAN shield and micro relay board for around $30-35 bucks but you'd still need to come up with a regulator to step the voltage down to something a micro controller can worth with and it'd be a bit larger.
Old 11-01-2018, 04:18 AM
  #6  
TECH Veteran
iTrader: (1)
 
gametech's Avatar
 
Join Date: Sep 2004
Location: Stockbridge GA
Posts: 4,068
Likes: 0
Received 432 Likes on 307 Posts

Default

Originally Posted by PeteS160
Sure it can be done exactly like your describing but it's probably not worth the cost to have someone else design and build something for you for something that just does lock/unlock.

You'd need a micro controller
1 Mcp2551/2515 combo, 2 output resistors and 2 caps
1 linear voltage regulator/I/O caps to feed the micro controller and CAN chips as well as stabilize the voltage.
2 Npn transistor and gate resistor
2 Songle micro relays - These are good for 10 amps

Send the pid request 0x01 0x0D every 100-200ms to get vehicle speed then read the response and convert it to MPH.
A simple program something along the lines of.......
if (speed > 10 && LockPin == LOW) { digitalWrite(LockPin, HIGH);} // turn on lock relay if it's not on and speed is more then 10 mph
else if (speed > 10 && LockPin == HIGH) { digitalWrite(LockPin, LOW);}// if speed is more then 10 mph and lock relay is on turn the relay off
​​​
if (speed < 10 && UnlockPin == LOW) { digitalWrite(UnlockPin, HIGH);}// turn on the relay to unlock the doors when speed is less then 10 mph
else if (speed < 10 && UnlockPin == HIGH) { digitalWrite(UnlockPin, LOW);}// IF the unlock relay is on then turn it off

That gives you an idea how simple it is..you could add a timer to the above code to control how long the lock/unlock pulse from the relay lasted if it didn't turn on the relay long enough to activate the locks fully. Hell could even add a delay so that it'd wait X number of seconds before trying to activate the locks again so the locks aren't cycling on and off at parking lot speeds.

If your handy with a soldering iron and spent a couple of hours reading on basic programming for something like an Arduino and a few more hours writing your program and assembling the parts you could build this your self in a couple of nights for about 15 bucks worth of parts on a blank pcb. Hell you could just but an Arduino, a CAN shield and micro relay board for around $30-35 bucks but you'd still need to come up with a regulator to step the voltage down to something a micro controller can worth with and it'd be a bit larger.
And just what is to stop him from hooking up a junkyard BCM to whatever late model style accessories he wants to use? He could do power locks, windows, etc., just like the later model vehicles. No need to know anything other than basic wiring and hardware skills. It would require tuning software, but I am guessing he should have that anyway.
Old 11-01-2018, 01:09 PM
  #7  
10 Second Club
iTrader: (3)
 
MontecarloDrag's Avatar
 
Join Date: Aug 2005
Posts: 889
Likes: 0
Received 4 Likes on 4 Posts

Default

You have 2 options, one is using a BCM, the second is an aftermarket alarm.
Most BCMs can be configured to lock the doors when you put the trans in drive or when it reaches certain speed and unlock them when the shifter is put in park.
Aftermarket alarms can only be programmed to lock when ignition is ON and unlock when switched OFF (at least most common models)




All times are GMT -5. The time now is 10:20 PM.