Tesla Large Drive Unit Cruise Control

Topics concerning the Tesla front and rear drive unit drop-in board
Post Reply
eGrandpa
Posts: 24
Joined: Tue Jun 21, 2022 11:38 pm
Location: Michigan, USA
Been thanked: 7 times
Contact:

Tesla Large Drive Unit Cruise Control

Post by eGrandpa »

I want to implement cruise Control with my large drive unit. It appears that if I apply voltage to pin 21 it will energize cruise. I assume if I deactivate pin 21 cruise shuts off. Will braking also deactivate and if so which pin? Of course, after the brake is released, I don't want cruise to reactivate. Also, is there a way to implement "resume"?
User avatar
johu
Site Admin
Posts: 5769
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1011 times
Contact:

Re: Tesla Large Drive Unit Cruise Control

Post by johu »

There are a number of cruise modes - all modes cancel cruise control when brake pedal is tapped.
- Button - when you pulse cruise_in cruise control engages
- Switch - when switched on engages cruise control, when switched off cancels
- CAN - takes desired cruise RPM via CAN message to "cruisespeed"

Resume and other functions can only be implemented externally via the CAN method. Done so in Touran, see stm32_car project
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
P.S.Mangelsdorf
Posts: 770
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 95 times
Been thanked: 94 times

Re: Tesla Large Drive Unit Cruise Control

Post by P.S.Mangelsdorf »

Under automation, there is a setting for Cruise Mode. That can be configured so that the Cruise switch is either constant or momentary. Here is the description from the parameter page:
0=button (set when button pressed, reset with brake pedal), 1=switch (set when switched on, reset when switched off or brake pedal)
https://openinverter.org/wiki/Parameters


Brake light input goes to Pin 2 on the LDU.
https://openinverter.org/wiki/File:LDU_ ... iagram.png

One thing I learned the hard way: some wiring harnesses/cars flash the brake lights when you activate the hazard lights. This effectively means you cannot have the hazards on while driving, because the LDU will see a pulsing brake on signal and the software is programmed to cut power when it sees brake signal. I'm sure there is a way to avoid this by wiring the LDU signal direct from the brake pedal in a way that the hazards won't apply power, but if you just tap into the brake light wiring (I just used the 3rd brake light wire since my old car doesn't have one), this is a problem to be aware of.
If at first you don't succeed, buy a bigger hammer.

1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed 2023 Hot Rod Drag Week
eGrandpa
Posts: 24
Joined: Tue Jun 21, 2022 11:38 pm
Location: Michigan, USA
Been thanked: 7 times
Contact:

Re: Tesla Large Drive Unit Cruise Control

Post by eGrandpa »

Thanks for the quick input. CAN is currently a large unknown for me. So, for now I believe my plan will be cruise button toggle on with break pedal switch for off. I'm very interested is using CAN for cruise, but will put that into next steps. Thanks again!
Post Reply