Lexus GS450H VCU Support Thread

Topics concerning the Toyota and Lexus inverter drop in boards
User avatar
AdrianB
Posts: 63
Joined: Sun Jan 24, 2021 10:34 pm
Location: Wales. UK.
Has thanked: 20 times
Been thanked: 20 times

Re: Lexus GS450H VCU Support Thread

Post by AdrianB »

I’ve been through both sets of Damien’s setup videos and I don’t think I’d have a problem with the programming of either. Adding components to the circuit boards isn’t anything I’ve done before though. Is there more of that to do on the Zombieverter VCU?
celeron55 wrote: Tue May 31, 2022 8:19 pm I would choose based on which processor you like programming. But if you won't be programming at all, then Zombie as it's more configurable without programming.
User avatar
celeron55
Posts: 776
Joined: Thu Jul 04, 2019 3:04 pm
Location: Finland
Has thanked: 28 times
Been thanked: 110 times
Contact:

Re: Lexus GS450H VCU Support Thread

Post by celeron55 »

The gs450h vcu firmware is really barebones and buggy so you kind of want to rewrite half of it for a road worthy vehicle in my opinion. Not the same for Zombie.
User avatar
catphish
Posts: 955
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 94 times
Been thanked: 179 times

Re: Lexus GS450H VCU Support Thread

Post by catphish »

celeron55 wrote: Sat Jun 04, 2022 10:30 am The gs450h vcu firmware is really barebones and buggy so you kind of want to rewrite half of it for a road worthy vehicle in my opinion. Not the same for Zombie.
There are quite a few firmwares for the GS450H now. It would be nice if we could do some testing, come to an accord and merge them! I'm happy with mine, however it needs a working vehicle to do more testing and finish the gear ratio change functionality.

Ultimately though, it doesn't really make sense to maintain both forever, so if Zombieverter does the same and more, the work should probably focus there.
User avatar
ggeter
Posts: 133
Joined: Wed Nov 18, 2020 1:56 pm
Location: Houston, TX
Has thanked: 4 times
Been thanked: 15 times

Re: Lexus GS450H VCU Support Thread

Post by ggeter »

celeron55 wrote: Sat Jun 04, 2022 10:30 am The gs450h vcu firmware is really barebones and buggy so you kind of want to rewrite half of it for a road worthy vehicle in my opinion. Not the same for Zombie.
I've had zero problems with the user version of the firmware. What are you experiencing?
Houston, Texas, USA
EV Newbie
1979 MG Midget + GS450h = "Mexus?"
IT Consultant
User avatar
catphish
Posts: 955
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 94 times
Been thanked: 179 times

Re: Lexus GS450H VCU Support Thread

Post by catphish »

ggeter wrote: Sat Jun 04, 2022 5:00 pm I've had zero problems with the user version of the firmware. What are you experiencing?
It' definitely primitive, but I wouldn't say buggy either. The only bug I found while rewriting it was this buffer overflow vulnerability: https://github.com/damienmaguire/Lexus- ... 7.ino#L341

Otherwise as far as I can tell, it's simple and reliable. I added a web interface and lots of code comments, but can't complain much about the original.
User avatar
ggeter
Posts: 133
Joined: Wed Nov 18, 2020 1:56 pm
Location: Houston, TX
Has thanked: 4 times
Been thanked: 15 times

Re: Lexus GS450H VCU Support Thread

Post by ggeter »

catphish wrote: Sat Jun 04, 2022 5:08 pm
ggeter wrote: Sat Jun 04, 2022 5:00 pm I've had zero problems with the user version of the firmware. What are you experiencing?
It' definitely primitive, but I wouldn't say buggy either. The only bug I found while rewriting it was this buffer overflow vulnerability: https://github.com/damienmaguire/Lexus- ... 7.ino#L341

Otherwise as far as I can tell, it's simple and reliable. I added a web interface and lots of code comments, but can't complain much about the original.
I'll admit the only problem that I had was setting the the max torque too low. When the max torque is less than a thousand, the motor will hitch and start and not accelerate very well at all. I had to set the max torque to maximum 3200 and everything has worked out fine since.
Houston, Texas, USA
EV Newbie
1979 MG Midget + GS450h = "Mexus?"
IT Consultant
User avatar
celeron55
Posts: 776
Joined: Thu Jul 04, 2019 3:04 pm
Location: Finland
Has thanked: 28 times
Been thanked: 110 times
Contact:

Re: Lexus GS450H VCU Support Thread

Post by celeron55 »

I guess the "buggy" part is mostly me as a software engineer not trusting the code at all after reading it. But when bench testing, the motors occasionally kick very hard, in a way that seems like full torque is being applied for a split second, when I have the torque configured down to very little.

Of course in an actual vehicle application, full torque for a split second is probably almost undetectable and assuming it stays at that duration it's not unsafe either. But it does not give me the confidence I need for my project. For me, this does not matter, as I will in any case rewrite most of the code to heavily integrate with the rest of the vehicle. But it might to someone who isn't going to touch the code.
User avatar
catphish
Posts: 955
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 94 times
Been thanked: 179 times

Re: Lexus GS450H VCU Support Thread

Post by catphish »

celeron55 wrote: Sat Jun 04, 2022 7:52 pm I guess the "buggy" part is mostly me as a software engineer not trusting the code at all after reading it. But when bench testing, the motors occasionally kick very hard, in a way that seems like full torque is being applied for a split second, when I have the torque configured down to very little.
That's interesting, I had a couple of issues during my rewrite where I accidentally cast a signed int to unsigned, causing a -1 torque to become 0x7FFFFFFF torque (which is quite dramatic), but I'm not aware of any such errors in the original code. Ultimately, there really isn't much that can go wrong, all we do is send a pair of integers to the inverter to request an amount of torque.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Lexus GS450H VCU Support Thread

Post by Jack Bauer »

If there is a problem or bug in the code then please identify it and submit on github so it can be remedied. I'm not a software engineer by any measure and the assistance of someone who is would be invaluable in this and other projects.
I'm going to need a hacksaw
User avatar
catphish
Posts: 955
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 94 times
Been thanked: 179 times

Re: Lexus GS450H VCU Support Thread

Post by catphish »

Jack Bauer wrote: Sun Jun 05, 2022 9:48 am If there is a problem or bug in the code then please identify it and submit on github so it can be remedied. I'm not a software engineer by any measure and the assistance of someone who is would be invaluable in this and other projects.
Absolutely this! Unfortunately, my fork is too large for a pull request (it's basically a rewrite), but I'd seriously encourage people to do pull requests where at all possible for small fixes.
User avatar
PatrcioEV-ATX
Posts: 181
Joined: Sun Dec 13, 2020 5:25 pm
Location: Austin, TX, USA
Has thanked: 40 times
Been thanked: 53 times

Re: Lexus GS450H VCU Support Thread

Post by PatrcioEV-ATX »

celeron55 wrote: Sat Jun 04, 2022 7:52 pm I guess the "buggy" part is mostly me as a software engineer not trusting the code at all after reading it. But when bench testing, the motors occasionally kick very hard, in a way that seems like full torque is being applied for a split second, when I have the torque configured down to very little.

Of course in an actual vehicle application, full torque for a split second is probably almost undetectable and assuming it stays at that duration it's not unsafe either. But it does not give me the confidence I need for my project. For me, this does not matter, as I will in any case rewrite most of the code to heavily integrate with the rest of the vehicle. But it might to someone who isn't going to touch the code.
Check out Catphish's code on his github (it's in this thread somewhere). You can pick and choose what parts of it you want to use, but his code is super clean. I rewrote the User version along the same lines as his code. At this point, I think most of us are using our own particular code based on the User code.
1998 Ford ZX2 - DC EV conversion(sold) http://evalbum.com/2093
2012 Nissan Leaf (sold)
2016 Mercedes B250e (sold)
2023 Volvo C40

Current: 1964 Rambler Classic 660 w/ GS450h set up. 36kwh Tesla batteries from B250e.
https://www.instagram.com/rambler_660e/
User avatar
catphish
Posts: 955
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 94 times
Been thanked: 179 times

Re: Lexus GS450H VCU Support Thread

Post by catphish »

PatrcioEV-ATX wrote: Mon Jun 06, 2022 1:16 pm Check out Catphish's code on his github (it's in this thread somewhere). You can pick and choose what parts of it you want to use, but his code is super clean. I rewrote the User version along the same lines as his code. At this point, I think most of us are using our own particular code based on the User code.
Thanks! Here's the link again: https://github.com/catphish/gs450h
I can't claim that it's any better than any other version but it has some interesting features including web interface, and hopefully it's easy to read and understand.
User avatar
celeron55
Posts: 776
Joined: Thu Jul 04, 2019 3:04 pm
Location: Finland
Has thanked: 28 times
Been thanked: 110 times
Contact:

Re: Lexus GS450H VCU Support Thread

Post by celeron55 »

I agree catphish's version looks very readable. I'll try it out once I have the time.
evMacGyver
Posts: 108
Joined: Tue Jun 15, 2021 5:44 pm
Location: Finland
Has thanked: 19 times
Been thanked: 5 times

Re: Lexus GS450H VCU Support Thread

Post by evMacGyver »

Just a small caution if anyone uses due_can library with this board..

I got long debugging session for some weird behavior, during that I found out due_can library does use enable pins and one is by default same as GS450h board uses for OUT1:
#define CAN0_EN 50 //these enable pins match most all recent EVTV boards (EVTVDue, CAN Due 2.0)

I did not check code more, at least on initialization it does set this pin HIGH. On my case it was HV+ contactor, not so good. As enable pins of CAN transcievers are not used on gs450h board, you may remove digitalWrite lines from library as I did. After doing this there was one mystery less for me, yippee!
User avatar
Gregski
Posts: 2255
Joined: Tue Sep 14, 2021 10:28 am
Location: Sacramento, California
Has thanked: 325 times
Been thanked: 436 times
Contact:

Re: Lexus GS450H VCU Support Thread

Post by Gregski »

for those of us who prefer to listen to the Beatles on vinyl and control our GS450hayches using the [ahem] Classic controller I just got word that the Cinch 40 Pin Header Connector Part# 5810140011 is back in stock at Digi-Key by popular demand

5810140011.jpg
"I don't need to understand how it works, I just need to understand how to make it work!" ~ EV Greg
ianhora
Posts: 6
Joined: Fri Aug 12, 2022 11:51 pm
Location: Australia
Been thanked: 1 time

Re: Lexus GS450H VCU Support Thread

Post by ianhora »

Hi Damien,

Just wondering if you realize that the pin numbers on the drawing of the Toyota 40-pin header are not the same as the numbers on the back of the header? On my header (on a 2010 Toyota Crown hybrid inverter, part number G9200-30070) pin 1 is where you have pin 32 and vice versa.
Please correct me if I'm wrong. It was doing my head in when buzzing out that internal loom!
I needed to buzz it out to check that the Crown inverter 40-pin header wiring was the same as that on the GS450h inverter.
As it happens, it is!
So with the internal looms and 40-pin header being identical, and the logic board part numbers of F1759-30010-01 being the same, can one assume that everything's going to work?

Also, pin 8 of the 32-pin connector on the GS450h inverter/converter internal connections drawing is missing its GND label.
ie. should read MG2 SINE GND.

Ian
dadiowe
Posts: 112
Joined: Fri Sep 17, 2021 6:11 pm
Has thanked: 41 times
Been thanked: 19 times

Re: Lexus GS450H VCU Support Thread

Post by dadiowe »

On my build the capacitors in the Lexus inverter are not discharging and even after 24 hours they are HOLDING HV VOLTAGE almost to the level of the battery pack i.e. 400 Volts. If I take a voltage reading, with the HV battery completly disconnected, at the terminals of the inverter I have just short of 395Volts.
As I understand it the inverter capacitors are supposed to discharge through the MG1 and MG2 connections to the GS450H Transmission.
Obviously not a great state of affairs!!!

I hope no one else has experienced this issue.
Any guidance regarding this would be really appreciated.
User avatar
Romale
Posts: 448
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 208 times
Been thanked: 45 times

Re: Lexus GS450H VCU Support Thread

Post by Romale »

dadiowe wrote: Tue Oct 25, 2022 10:56 am On my build the capacitors in the Lexus inverter are not discharging and even after 24 hours they are HOLDING HV VOLTAGE almost to the level of the battery pack i.e. 400 Volts.
there should be a ceramic resistor at 15 kohm or so current connected at + and - high voltage. its purpose is to smoothly discharge the capacitor after disconnecting the battery. it's probably missing or not connected to you.
mg1 and mg2 motors are not involved here
evil neodymium :twisted:
dadiowe
Posts: 112
Joined: Fri Sep 17, 2021 6:11 pm
Has thanked: 41 times
Been thanked: 19 times

Re: Lexus GS450H VCU Support Thread

Post by dadiowe »

Hi Romale,
Thanks for the reply.
Is this the sort of thing you mean?

https://uk.farnell.com/ohmite/45f15ke/r ... dp/2448950

Thanks again
User avatar
Romale
Posts: 448
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 208 times
Been thanked: 45 times

Re: Lexus GS450H VCU Support Thread

Post by Romale »

dadiowe wrote: Tue Oct 25, 2022 1:10 pm Hi Romale,
Thanks for the reply.
Is this the sort of thing you mean?

https://uk.farnell.com/ohmite/45f15ke/r ... dp/2448950

Thanks again
hello. the link doesn't open for me. here is a photo for example, this is in the Nissan em61 inverter, but the same detail is in all high-voltage inverters of Toyota, Lexus, Tesla and others. one end of it is connected to the + and the other to the - high-voltage input in the inverter. when the main contactor is turned off, the voltage of the conductors will discharge to this resistor.
IMG_20221025_161226_1.jpg
evil neodymium :twisted:
xp677
Posts: 436
Joined: Sat Jul 27, 2019 10:53 am
Location: UK
Has thanked: 1 time
Been thanked: 13 times

Re: Lexus GS450H VCU Support Thread

Post by xp677 »

dadiowe wrote: Tue Oct 25, 2022 10:56 am On my build the capacitors in the Lexus inverter are not discharging and even after 24 hours they are HOLDING HV VOLTAGE almost to the level of the battery pack i.e. 400 Volts. If I take a voltage reading, with the HV battery completly disconnected, at the terminals of the inverter I have just short of 395Volts.
As I understand it the inverter capacitors are supposed to discharge through the MG1 and MG2 connections to the GS450H Transmission.
Obviously not a great state of affairs!!!

I hope no one else has experienced this issue.
Any guidance regarding this would be really appreciated.
No, it doesn't discharge through MG1 or MG2. There is no mechanism for that. There is instead a ceramic bleed resistor inside the converter housing.
dadiowe
Posts: 112
Joined: Fri Sep 17, 2021 6:11 pm
Has thanked: 41 times
Been thanked: 19 times

Re: Lexus GS450H VCU Support Thread

Post by dadiowe »

Romale wrote: Tue Oct 25, 2022 1:16 pm hello. the link doesn't open for me. here is a photo for example, this is in the Nissan em61 inverter, but the same detail is in all high-voltage inverters of Toyota, Lexus, Tesla and others. one end of it is connected to the + and the other to the - high-voltage input in the inverter. when the main contactor is turned off, the voltage of the conductors will discharge to this resistor.
IMG_20221025_161226_1.jpg
Thanks Romale that sorted my inverter discharge problem
Bookie
Posts: 1
Joined: Sun Nov 13, 2022 5:41 pm
Been thanked: 1 time

Re: Lexus GS450H VCU Support Thread

Post by Bookie »

Hey guys, first post here. Been lurking a while and wanted to share the pinout I'm using for the Molex replacement inverter connector, I didn't see this documented anywhere so apologies if this has been covered before. If it looks good I'll add it to the wiki.
GS450h Inverter Interface Connector Pinout .png
Dan--T
Posts: 55
Joined: Sat Jun 13, 2020 10:40 pm
Location: Northants UK

Re: Lexus GS450H VCU Support Thread

Post by Dan--T »

Hi all, apologies for probably too simple a question. I am a mechanical engineer way out of my comfort zone with all this talk of coding, and I do not have capabilities to write my own code.
I have the "classic" VCU (ver2). In a video about a year ago ( ) Damien mentioned that the SW developed for the zombieverter would be able to be back ported onto the gs450h VCU. And from memory that this would include some more user friendly config setup and features etc. For us non electrical/software engineers.

Does anybody know if this has already happened or is still planned to happen?

Thanks
Dan
User avatar
crasbe
Posts: 243
Joined: Mon Jul 08, 2019 5:18 pm
Location: Germany
Has thanked: 44 times
Been thanked: 107 times

Re: Lexus GS450H VCU Support Thread

Post by crasbe »

Dan--T wrote: Sun Nov 20, 2022 11:02 pmDoes anybody know if this has already happened or is still planned to happen?
Unfortunately I think that at the moment it's not very high on the priorities list. HOWEVER it shouldn't be impossible to adapt the ZombieVerter code to run on the old VCU because libopencm3 supports the SAM3X8E.

For the time being I'd recommend sticking with the serial configuration interface of the old VCU, it's not terrible to use, just not as fancy as the web interface.
Locked