Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Mon Nov 22, 2021 9:24 pm
by Gregski
celeron55 wrote: ↑Mon Nov 22, 2021 5:40 am
This *is* absolutely fascinating. And thanks for the laughs. Having partially dipped into this myself before this is very relatable and useful.
thanks for the positive feedback, and please don't encourage me, ha ha
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Mon Nov 22, 2021 9:25 pm
by Gregski
Uppertown wrote: ↑Mon Nov 22, 2021 1:46 pmKeep up the good work! I wish people covered other topics as thoroughly.
Yeah, we would have curred Insomnia, that's for sure.
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Uppertown wrote: ↑Mon Nov 22, 2021 1:46 pmKeep up the good work! I wish people covered other topics as thoroughly.
Yeah, we would have curred Insomnia, that's for sure, and let's just put it this way you guys are getting the abridged Cliff Notes version the guys on DIY Electric Car Forum are getting the whole nine yards!
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Mon Nov 22, 2021 10:39 pm
by johu
Now there's one thing that puzzles me. I'm trying to read the numbers upside-down, or backwards or insert random commas. It doesn't compute... Is one sub-harness actually seven thousand US dollars?!
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Tue Nov 23, 2021 6:49 am
by Gregski
johu wrote: ↑Mon Nov 22, 2021 10:39 pm
Now there's one thing that puzzles me. I'm trying to read the numbers upside-down, or backwards or insert random commas. It doesn't compute... Is one sub-harness actually seven thousand US dollars?!
Yes $7,000 American dollars if you buy it brand new from one of our official Lexus dealers.
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Tue Nov 23, 2021 6:50 am
by Gregski
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Wed Nov 24, 2021 2:33 am
by Gregski
new video much less crappier than the last one (I promise)
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Thu Nov 25, 2021 3:35 pm
by Gregski
I am certain All Data the online car manual company will be refunding me my money for all the days I went to their website and it was down, ha ha
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Thu Nov 25, 2021 3:51 pm
by Gregski
Fun Fact: among the 3,754 different and I mean completely different plugs and connectors on this vehicle (the Lexus GS450h) apparently their designers ran out of steam and decided to use three identical ones, and I mean absolutely samesies for the following three components, which mind you live within a foot of each other
Power Steering ECU
Oil Pump Motor Controller
Front Stabilizer Control ECU
no I am not taking the time to post this because I chased down and pulled the wrong harness [ahem] three times
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Sun Nov 28, 2021 4:01 pm
by Gregski
so here's a mechanical video, where I actually turn a wrench, spin a spanner, and swing a hammer, (no electricity or wire harness talk I promise)
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Sun Dec 05, 2021 4:42 pm
by Gregski
well I just wasted a couple days wiring the four temp sensors on the gray A Connector only to find out these don't work do to the wrong resistors on the PCB?
so we totally do not need to run these 8 temp wires on Pins 1-8
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Sun Dec 05, 2021 4:45 pm
by Gregski
which means these two virtual gauges are a lie, lol (now technically they do work they just don't report what they say, instead as the code reads "Using water temp for now")
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Sun Dec 05, 2021 4:49 pm
by Gregski
but I'm pretty sure you much rather see things spinning
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Mon Dec 06, 2021 5:12 pm
by Gregski
slightly irked by this latest finding, I decided to unpin the unnecessary temp sensor wires from both resolver cables Sumitomo plugs for that clean slick look
Fun Level: -2
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Tue Dec 07, 2021 3:25 pm
by PatrcioEV-ATX
Since I completed my entire wire harness before I realized that none of those work, I've left it all. It's easier than undoing it and maybe someone will eventually work out the temp issues. I am considering removing PB1-3 however to use those as auxillary 5v inputs. Maybe for cruise control. I really don't think I'm going to bother with shifting gears and I pretty much ruined two of my four mosfets when trying to replace the incorrect ones on the board. The more I think about it, the entire transmission connector (SLs, PBs, etc) can probably be repurposed.
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Tue Dec 07, 2021 5:05 pm
by Gregski
PatrcioEV-ATX wrote: ↑Tue Dec 07, 2021 3:25 pm
Since I completed my entire wire harness before I realized that none of those work, I've left it all. It's easier than undoing it and maybe someone will eventually work out the temp issues. I am considering removing PB1-3 however to use those as auxillary 5v inputs. Maybe for cruise control. I really don't think I'm going to bother with shifting gears and I pretty much ruined two of my four mosfets when trying to replace the incorrect ones on the board. The more I think about it, the entire transmission connector (SLs, PBs, etc) can probably be repurposed.
I hear you, that was the very next thing I did I ditched all the Transmission Shift Solenoid wires on Pins 9- 14 saying good by to that gray transmission plug all together
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Wed Dec 08, 2021 10:10 am
by Gregski
So my not doing continued and I was not doing anything just fine until I came across the Oil Pump wiring/pin out, I know I can ditch the Oil Pump relay on pin 15 on the gray A Connector, but as one forum member suggested, can I repurpose Pin #6 on the black B Connector for the Oil Pump PWM ? Thoughts and comments appreciated
#define OilPumpPower 33
#define OilPumpPWM 2
A COMMENT FROM MY FUTURE SELF:
Pin #15 is not OIL PUMP Power by any means it is the MOST IMPORTANT Pin in the whole setup it is the "Pre-Charge" circuit
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Wed Dec 08, 2021 2:21 pm
by PatrcioEV-ATX
Gregski wrote: ↑Wed Dec 08, 2021 10:10 am
So my not doing continued and I was not doing anything just fine until I came across the Oil Pump wiring/pin out, I know I can ditch the Oil Pump relay on pin 15 on the gray A Connector, but as one forum member suggested, can I repurpose Pin #6 on the black B Connector for the Oil Pump PWM ? Thoughts and comments appreciated
VCU Wiring A Connector - Oil Pump.jpg
Well as far as I know, the Inverter relay is a digital output (on/off) where the Oil Pump Pwm is an analog output (0-5v) so unless you want your pump running at 100% that won't work. I don't know how to interpret what the different microchip pins are capable of, however. I don't know if anyone is running the pump over 50%. Is it possible to re#Define the Inverter relay pin to a different analog pin? Maybe.
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Gregski wrote: ↑Wed Dec 08, 2021 10:10 am
So my not doing continued and I was not doing anything just fine until I came across the Oil Pump wiring/pin out, I know I can ditch the Oil Pump relay on pin 15 on the gray A Connector, but as one forum member suggested, can I repurpose Pin #6 on the black B Connector for the Oil Pump PWM ? Thoughts and comments appreciated
VCU Wiring A Connector - Oil Pump.jpg
Well as far as I know, the Inverter relay is a digital output (on/off) where the Oil Pump Pwm is an analog output (0-5v) so unless you want your pump running at 100% that won't work. I don't know how to interpret what the different microchip pins are capable of, however. I don't know if anyone is running the pump over 50%. Is it possible to re#Define the Inverter relay pin to a different analog pin? Maybe.
it is my understanding that PWM is a fake analog signal so it would make sense that it runs on a digital line
here is how they are defined in the code (they look similar just on different numbers):
#define OilPumpPWM 2
#define InvPower 34
and here is how analog pins are defined:
int Throt1Pin = A0; //throttle pedal analog inputs
int Throt2Pin = A1;
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Thu Dec 09, 2021 4:06 pm
by Gregski
alright moving down the list, next is Pin #17 on the gray A Connector, in the code aka Sketch it is defined like so on pin 50 (can someone explain to me how it can be on pin 50 out of 40 total pins between the two 20 pin connectors? ha ha)
#define Out1 50
this one controls the HV battery Main Contactor, and by controls I mean turns it off at startup (I really don't get it yet as no where in the code it turns it back on)
digitalWrite(Out1,LOW); //turn off at startup
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Gregski wrote: ↑Wed Dec 08, 2021 10:10 am
So my not doing continued and I was not doing anything just fine until I came across the Oil Pump wiring/pin out, I know I can ditch the Oil Pump relay on pin 15 on the gray A Connector, but as one forum member suggested, can I repurpose Pin #6 on the black B Connector for the Oil Pump PWM ? Thoughts and comments appreciated
VCU Wiring A Connector - Oil Pump.jpg
Well as far as I know, the Inverter relay is a digital output (on/off) where the Oil Pump Pwm is an analog output (0-5v) so unless you want your pump running at 100% that won't work. I don't know how to interpret what the different microchip pins are capable of, however. I don't know if anyone is running the pump over 50%. Is it possible to re#Define the Inverter relay pin to a different analog pin? Maybe.
it is my understanding that PWM is a fake analog signal so it would make sense that it runs on a digital line
here is how they are defined in the code (they look similar just on different numbers):
#define OilPumpPWM 2
#define InvPower 34
and here is how analog pins are defined:
int Throt1Pin = A0; //throttle pedal analog inputs
int Throt2Pin = A1;
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Thu Dec 09, 2021 4:40 pm
by mayes8229
Gregski wrote: ↑Thu Dec 09, 2021 4:06 pm
alright moving down the list, next is Pin #17 on the gray A Connector, in the code aka Sketch it is defined like so on pin 50 (can someone explain to me how it can be on pin 50 out of 40 total pins between the two 20 pin connectors? ha ha)
#define Out1 50
this one controls the HV battery Main Contactor, and by controls I mean turns it off at startup (I really don't get it yet as no where in the code it turns it back on)
digitalWrite(Out1,LOW); //turn off at startup
VCU Wiring A Connector - Contactor Question.jpg
The pin numbers in firmware don't relate to the pin numbers on the connectors. They map the signals in firmware to the correct port pin on the microcontroller (there are way more than 50 pins on the MCU). Also it looks to me like pin #17 on that connector is "IN1" when I read the schematic.
Are you using a V1 or a V2 board?
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Thu Dec 09, 2021 4:49 pm
by Gregski
mayes8229 wrote: ↑Thu Dec 09, 2021 4:40 pm
The pin numbers in firmware don't relate to the pin numbers on the connectors. They map the signals in firmware to the correct port pin on the microcontroller (there are way more than 50 pins on the MCU). Also it looks to me like pin #17 on that connector is "IN1" when I read the schematic.
Are you using a V1 or a V2 board?
First thank you so much for your help, you are offering a lot of good information so let me respond to you and address your points one by one.
mayes8229 wrote: ↑Thu Dec 09, 2021 4:40 pmAre you using a V1 or a V2 board?
Honestly I am still a little bit confused by this, I think I bought V2, I got it from here Lexus GS450H VCU
When I say I am confused, it is because in one place it reads: "V2 controller for the Lexus GS450H inverter" and then you click the link and it reads: "Product Code: gs450h_v1_built" so which is it? ha ha and then on Damien's GitHub he actually has a V3 folder with a HARDWARE sub folder, what ever that is?
as listed
and actual (I understand there is a parts shortage, absolutely no complaints here)
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
mayes8229 wrote: ↑Thu Dec 09, 2021 4:40 pm
The pin numbers in firmware don't relate to the pin numbers on the connectors. They map the signals in firmware to the correct port pin on the microcontroller (there are way more than 50 pins on the MCU). Also it looks to me like pin #17 on that connector is "IN1" when I read the schematic.
Are you using a V1 or a V2 board?
First thank you so much for your help, you are offering a lot of good information so let me respond to you and address your points one by one.
mayes8229 wrote: ↑Thu Dec 09, 2021 4:40 pmAre you using a V1 or a V2 board?
Honestly I am still a little bit confused by this, I think I bought V2, I got it from here Lexus GS450H VCU
When I say I am confused, it is because in one place it reads: "V2 controller for the Lexus GS450H inverter" and then you click the link and it reads: "Product Code: gs450h_v1_built" so which is it? ha ha and then on Damien's GitHub he actually has a V3 folder with a HARDWARE sub folder, what ever that is?
as listed
2020-05-17 11.29.38-500x500.jpg
and actual (I understand there is a parts shortage, absolutely no complaints here)
IMG_5499.JPG
"it is my understanding that PWM is a fake analog signal so it would make sense that it runs on a digital line"
Yes, sorry... brain lapse. Analog pins are for reading analog signals. As to main positive contactor, you're running V3_User which doesn't have that section in it. I'm using that pin to turn on brake lights over a certain regen value and OilPumpPower pin for HV. You can trigger negative contactor and precharge relay with ignition on. Mine even goes a bit further and won't return torque until the HV void has run:
#define HV_Power 33 //OilPumpPower in other versions
int readyVal;
int HVpreset=10; //I'm still on a 60v power supply
short get_torque() {
//accelerator pedal mapping to torque values here
ThrotVal=analogRead(Throt1Pin);
if (ThrotVal<parameters.Min_throttleVal+10) ThrotVal=parameters.Min_throttleVal; //dead zone at start of throttle travel
if (readyVal==true) {
if(gear==DRIVE) ThrotVal = map(ThrotVal, parameters.Min_throttleVal, parameters.Max_throttleVal, 0, MaxTorque);
if(gear==REVERSE) ThrotVal = map(ThrotVal, parameters.Min_throttleVal, parameters.Max_throttleVal, 0, MaxReverse_Torque);
if(gear==NEUTRAL) ThrotVal = 0;//no torque in neutral
} else {
ThrotVal = 0; //actually this section is much different in my code, but this is specifically to account for the main contactor having closed before we can command torque so that there is no possibility of commanding torque when just the precharge circuit is providing voltage.
void setup()
pinMode(HV_Power, OUTPUT); //OilPumpPOwer in other versions. Main positive contactor ground for relay control after precharge
digitalWrite(HV_Power,LOW); //on oil pump 12v power supply
Like with everything else, there are many ways to do this - some simpler, some more complex. Most OEM systems turn the precharge relay off once the main contactor closes. We're somewhat limited with the number of in/outputs on this VCU. I currently have Sensor.Voltage going to a 2nd Arduino(Nano) on the CAN line and controlling all three contactors with that. I am only using the HV_On void to update readyVal (which I also sent over CAN to my Arduino(Mega)/Nextion for various purposes).
And I can't stress this enough: There are MUCH, MUCH more knowledgeable, more experienced people on here than me! Take anything I say with that in mind.
Re: 1971 GMCe Lexus GS450H BMW 530e Tesla Model S powered Electruck
Posted: Fri Dec 10, 2021 2:43 pm
by mayes8229
Gregski wrote: ↑Thu Dec 09, 2021 4:49 pm
Honestly I am still a little bit confused by this, I think I bought V2, I got it from here Lexus GS450H VCU
When I say I am confused, it is because in one place it reads: "V2 controller for the Lexus GS450H inverter" and then you click the link and it reads: "Product Code: gs450h_v1_built" so which is it? ha ha and then on Damien's GitHub he actually has a V3 folder with a HARDWARE sub folder, what ever that is?
as listed
2020-05-17 11.29.38-500x500.jpg
and actual (I understand there is a parts shortage, absolutely no complaints here)
IMG_5499.JPG
Your board has V2 in silkscreen, so there's your answer. Because it's a V2 there's a different power switch and a BJT rather than a FET, but that doesn't change the previous comment about not being able to PWM that signal.