The ZombieVerter VCU Project

Locked
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Jack Bauer wrote: Tue Jan 12, 2021 3:27 pm Think I have sent you an invite on github Matt. In other news the Grey Goose arrived home today so E46 and Nissan Leaf testing on the vcu is next:) The Goose also has the M3 pcs fitted so will see about finally waking that up and integrating into the vcu.
Ok, do this:
In the main folder you're in and having trouble with...

git add .
git commit -m 'Matt fix this stuff please'
git push origin master:test

and I'll try and unwind this ASAP. I imagine it won't be too bad. :)

The commands - add everything, commit it with a message, and push the local branch named master to an alternate branch on the remote.

-Matt
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Ok, I think that worked:)
I'm going to need a hacksaw
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Ok, so you're adding in a 200 ms task, and flipping SL2 from being Clear to set in the Low gear scenario?

https://github.com/damienmaguire/Stm32-vcu/pull/4

If that makes you happy, merge that. Then:

git checkout master
git reset --hard origin/master
git pull
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Thanks Matt I think we're back in business:) Got a little time today to start wiring up a test bench for gen3 prius inverter and transaxle. Going to see if we can make the gen3 system work like the gs450h for front wheel drive projects. And by we I mean Dilbert will do the hard work and then I'll take the credit and retire to Lanzarote a year earlier than planned:)
Attachments
2021-01-13 14.28.54.jpg
I'm going to need a hacksaw
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Here is my attempt at a pinout. If anyone has any more info please add onto it.
Attachments
OEM_PIN_CONNECTIONS.odt
(107.02 KiB) Downloaded 116 times
I'm going to need a hacksaw
Dilbert
Posts: 410
Joined: Mon Aug 12, 2019 7:21 pm
Location: Dublin, Ireland
Been thanked: 4 times

Re: The ZombieVerter VCU Project

Post by Dilbert »

I had a look this afternoon, I captured quite a bit of data last January from the vehicle.

I guess the question is do we make the GS450H module more generic and add the required support for the Gen3 inverter or copy what's been done for the Lexus one and create a new Gen3 module that would be most similar, apart from the remapping of the data.

HTM Data -> 100 bytes
MTH Data <- 120 bytes

MG2 Torque Bytes 26-27
MG1 Torque Bytes 76-77

I need to look at how the battery capacity is signaled to this inverter.
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Jack Bauer wrote: Wed Jan 13, 2021 2:34 pm Thanks Matt I think we're back in business:) Got a little time today to start wiring up a test bench for gen3 prius inverter and transaxle. Going to see if we can make the gen3 system work like the gs450h for front wheel drive projects. And by we I mean Dilbert will do the hard work and then I'll take the credit and retire to Lanzarote a year earlier than planned:)
LOL.

I'd imagine the serial protocol is similar, that's for sure. But wouldn't it still have to be opened to bypass the inductor?

As far as git, best practices would be to:

* Always ensure you're in sync with github. Before starting any new work, always do a
git pull
* Work on a branch

Code: Select all

git checkout -b prius_gen3_test
<do stuff>
git add <new or changed files>
git commit

First commit:
git push -u origin prius_gen3_test:prius_gen3_test
# This says - associate local branch prius_gen3_test with remote branch (on github) prius_gen3_test.

Additional commits:
git push
* Repeat add, commit, push stage until happy.

* Then open a Pull request, so others on github can look it over and comment.
https://github.com/damienmaguire/Stm32-vcu/compare/

Pick your branch (prius_gen3_test), add a description of the changes, and then post the PR URL here and we'll look it over. :)

-Matt
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Dilbert wrote: Wed Jan 13, 2021 4:00 pm I had a look this afternoon, I captured quite a bit of data last January from the vehicle.

I guess the question is do we make the GS450H module more generic and add the required support for the Gen3 inverter or copy what's been done for the Lexus one and create a new Gen3 module that would be most similar, apart from the remapping of the data.

HTM Data -> 100 bytes
MTH Data <- 120 bytes

MG2 Torque Bytes 26-27
MG1 Torque Bytes 76-77

I need to look at how the battery capacity is signaled to this inverter.
For testing, I'd copy verbatim as a new module, hack it up, then determine how much difference there is. Then have one module, like toyotoa_serial_gen3 with a parameter for which type of data to speak, if it's not significantly different. If huge differences, totally different modules, I'd say.

-Matt
Dilbert
Posts: 410
Joined: Mon Aug 12, 2019 7:21 pm
Location: Dublin, Ireland
Been thanked: 4 times

Re: The ZombieVerter VCU Project

Post by Dilbert »

Yea that's what i'll probably do. I guess the correct object-oriented way is to have a base class for toyota and then have these two variants inherit from it. I believe the main difference will be the mapping of the data in and out of the serial buffers.
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: The ZombieVerter VCU Project

Post by Bigpie »

Wait up, someones figured out how to control an un-modified gen3 inverter?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Dilbert
Posts: 410
Joined: Mon Aug 12, 2019 7:21 pm
Location: Dublin, Ireland
Been thanked: 4 times

Re: The ZombieVerter VCU Project

Post by Dilbert »

Bigpie wrote: Wed Jan 13, 2021 4:14 pm Wait up, someones figured out how to control an un-modified gen3 inverter?
I captured the data from an auris hybrid last year, so we are going to use this data to figure out what we need. I still have access to the vehicle also.
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Dilbert wrote: Wed Jan 13, 2021 4:18 pm
Bigpie wrote: Wed Jan 13, 2021 4:14 pm Wait up, someones figured out how to control an un-modified gen3 inverter?
I captured the data from an auris hybrid last year, so we are going to use this data to figure out what we need. I still have access to the vehicle also.
As I said though, aside from not needing a PCB, and only the VCU, it'll still require hardware mods / needing to be opened, right?

-Matt
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Yeah we'll do a new module at least for now. I'll try not to mess it up too badly with my "unique" programming skills. The case won't need to be opened. Just remove one bolt cover on the side to access the hv bus. That assumes this even works at all. Also, please keep in mind even if it does work it will ONLY work with a corresponding gen3 transaxle. The replacement board lets you run any type of motor. for example I'm using a siemens induction motor and gen 3 inverter in the E39.
I'm going to need a hacksaw
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Jack Bauer wrote: Wed Jan 13, 2021 4:26 pm The case won't need to be opened. Just remove one bolt cover on the side to access the hv bus. That assumes this even works at all. Also, please keep in mind even if it does work it will ONLY work with a corresponding gen3 transaxle.
Oh, duh. Yeah. Matched hardware.

FWD Plug and Play: Gen3 transaxle + Inv
RWD Plug and Play: GS450 box + Inv

Anything else: Prius Gen 3 + Replacement PCB
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: The ZombieVerter VCU Project

Post by Jack Bauer »

That's it exactly:)
I'm going to need a hacksaw
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

I think I botched things up with the gear selection.

Assuming I read this right:
viewtopic.php?f=14&t=396&start=350#p21589

The resulting code should be closer to this?

Code: Select all

        if (Lexus_Gear == 1)
        {
            DigIo::SP_out.Clear();
            DigIo::SL1_out.Clear(); // Diagram implies this should be Set?
            DigIo::SL2_out.Clear();

            Param::SetInt(Param::GearFB,HIGH_Gear);// set high gear
        }

        if (Lexus_Gear == 0)
        {
            DigIo::SP_out.Clear();
            DigIo::SL1_out.Clear();
            DigIo::SL2_out.Set(); // This is currently Clear after the 200ms branch merge

            Param::SetInt(Param::GearFB,LOW_Gear);// set low gear
        }
So do we want it defaulting it to high at the moment (both cases having everything turned off), or did I botch it up?

-Matt
User avatar
sfk
Posts: 289
Joined: Mon Jan 14, 2019 8:29 pm
Location: Wellington, NZ
Has thanked: 2 times

Re: The ZombieVerter VCU Project

Post by sfk »

From what I understand Lo Gear requires Brake 2 (B2) to be active ie. applying clamping force, and B1 open
And Hi Gear requires B1 active and B2 open.

Looking at the state diagram it appears O represents "active" and X represents "open".

What's not obvious is whether the solenoids controlling the brakes need to be energised or de-energised to activate the brakes.

The slides were part of a Lexus presentation in Europe which can be viewed here - https://slideplayer.com/slide/14432904/
L110F+HYBRID+TRANSMISSION_2stageBrakes.jpg
L110F+HYBRID+TRANSMISSION_2stageOutput.jpg
-< Mazda Eunos JC Cosmo rotary -> EV conversion w/ Lexus GS450H gear >-
slow67
Posts: 151
Joined: Thu Jan 30, 2020 6:52 pm
Location: Texas
Been thanked: 1 time

Re: The ZombieVerter VCU Project

Post by slow67 »

In the side, “O” is energized and “X” is not energized
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

slow67 wrote: Wed Jan 13, 2021 10:02 pm In the side, “O” is energized and “X” is not energized
Oops, then it's all high gear all the time at the moment. But given we're not PWMing control of the line pressure, maybe this is for the best at the moment?
slow67
Posts: 151
Joined: Thu Jan 30, 2020 6:52 pm
Location: Texas
Been thanked: 1 time

Re: The ZombieVerter VCU Project

Post by slow67 »

mdrobnak wrote: Wed Jan 13, 2021 10:47 pm
slow67 wrote: Wed Jan 13, 2021 10:02 pm In the side, “O” is energized and “X” is not energized
Oops, then it's all high gear all the time at the moment. But given we're not PWMing control of the line pressure, maybe this is for the best at the moment?
With PWMing the electric oil pump, you should be able to leave the pressure control solenoid maxed out.
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Thanks guys yeah I've left both in high gear just on the public software as I have no mg1 rev limiter right now! Money shift:) Now I find this morning my linux partition has had a bad hair night (bit like me) so off to see if I can fix it...
I'm going to need a hacksaw
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Well, linux fixed. Broken graphics driver:)
I'm going to need a hacksaw
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: The ZombieVerter VCU Project

Post by Jack Bauer »

Well, didnt get to finish the gen3 bench wiring today. Hopefully tomorrow:)
I'm going to need a hacksaw
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by mdrobnak »

Ok, as long as we're doing what's intended, I'm fine with it. :)

What Linux OS are you using, Damien? Just trying to figure out what to do with the python fun I had with your repository.

From my perspective the next items for me to do are:
* Break out functions into different files, so diffs are easier to merge.
* Figure out how to get closer to the submodule format that's the right way to do things, but ensure I don't break Damien's dev environment. :)
* Run the code through cppcheck as updates happen.

Goal here is to keep the master branch in good order and do crazy stuff on branches.

-Matt
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: The ZombieVerter VCU Project

Post by Jack Bauer »

I'm on Ubuntu 20.something:)

Hopefully try and get some prius gen3 action and E46 / Leaf inverter testing over the weekend.
I'm going to need a hacksaw
Locked