The ZombieVerter VCU Project

User avatar
Bassmobile
Posts: 94
Joined: Sat Apr 25, 2020 5:51 am
Location: USA
Has thanked: 7 times

Re: The ZombieVerter VCU Project

Post by Bassmobile »

EV_Builder wrote: Sun Nov 28, 2021 3:18 pm Personally i like more compile time changes and building with make 2 versions of the hex/bin.
But i guess its a taste thing... the reason is that compile time variations means no IF statements in the code when we have a variation point.
(higher performance).
Also for the developer it makes it clearer (syntax highlighting) on which variation he is working.
Selecting targets via make configs seems like it doesn't necessarily have an advantage as far as being less complex. Anyone able to point to a good example of this methodology?

There is a good discussion on the PlatformIO community forum that goes into working with multiple targets in some detail.

It seems like if it was properly implemented, you would externalize all of the platform specifics and call those in via a single IF statement.
Koppi
Posts: 18
Joined: Thu Sep 02, 2021 6:10 pm

Re: The ZombieVerter VCU Project

Post by Koppi »





Hello,

I am very glad that the motor turns !!!

forwards everything is OK
only in reverse the engine turns to a constant speed and stays there until I switch to forward again

what could be the problem ?
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

Hey nice job! Regarding your problem I would say we need to know: which version of the software and upload your config.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
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 »

PaulHeystee wrote: Sat Nov 27, 2021 5:18 pm Yeah, I was looking for the BOM also, ideally the excel sheet needed for JLCPCB.
As previously mentioned and discussed in video, the design files are currently available on the 10 Euros/month or higher Patreon tiers only.
I'm going to need a hacksaw
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

Jack; is the latest working LIM version online / committed to github?
Also i was wondering do we have PWM already working on the VCU?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
PaulHeystee
Posts: 89
Joined: Mon Apr 12, 2021 10:26 am
Location: Nederland
Has thanked: 1 time
Been thanked: 4 times

Re: The ZombieVerter VCU Project

Post by PaulHeystee »

Just wanted to share my finding on the VW Polo pedal.
I managed to take some measurements and found out which pin does what.
Attachments
PoloPedal.jpg
et0
Posts: 127
Joined: Sun Oct 13, 2019 8:06 pm
Location: Scotland
Has thanked: 14 times
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by et0 »

Dunno if this is relevant, re wifi issues.
BD2E8111-3DA3-4576-B147-D9336E18B715.jpeg
https://olimex.wordpress.com/2021/12/10 ... p-devices/
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 »

Brilliant thanks.
I'm going to need a hacksaw
blasaab
Posts: 8
Joined: Sat Nov 20, 2021 6:17 am

Re: The ZombieVerter VCU Project

Post by blasaab »

Now my board arrived just waiting for components.
If there is someone in Sweden or Nordic region i have pcb over.
Attachments
DSC_0594.JPG
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

blasaab wrote: Mon Dec 27, 2021 1:47 pm Now my board arrived just waiting for components.
If there is someone in Sweden or Nordic region i have pcb over.
Did you correct the small errors?
I think Damien ships a V2?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
blasaab
Posts: 8
Joined: Sat Nov 20, 2021 6:17 am

Re: The ZombieVerter VCU Project

Post by blasaab »

EV_Builder wrote: Mon Dec 27, 2021 2:35 pm
blasaab wrote: Mon Dec 27, 2021 1:47 pm Now my board arrived just waiting for components.
If there is someone in Sweden or Nordic region i have pcb over.
Did you correct the small errors?
I think Damien ships a V2?
What i know there is only v2 for Lexus controller
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

In the support thread the information is spread out. Other FET partnumbers and some wires/jump leads are needed if I'm right.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
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 »

There has not as yet been a V2 for the Zombie VCU. The initial beta boards of which 10 were made and sold at cost to encourage uptake and participation in the project had two pcb layout errors. These were fixed and all release boards are as per schematics.
I'm going to need a hacksaw
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

Ahh ok good to know then.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: The ZombieVerter VCU Project

Post by alexbeatle »

P.S.Mangelsdorf wrote: Thu Dec 17, 2020 5:37 pm This looks exciting!

I've got a dumb/uniformed question:

Would it be possible/practical/make sense for some drive units to still create a new logic board for inside the unit, but all it does is connect to an external VCU either over CAN or otherwise?

Would that end up as the same as the current boards, but just controlled over CAN?

I'm thinking about the Tesla drive units, since we know Elon's board doesn't like to listen to CAN unless you ask nicely.

Like I said, very dumb and uninformed question.
Hello.
Is there a way to interface current ZombieVerter VCU with the openinverter Tesla SDU boards?
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

alexbeatle wrote: Thu Feb 17, 2022 9:07 pm Hello.
Is there a way to interface current ZombieVerter VCU with the openinverter Tesla SDU boards?
Yes; by CANbus.

But if you could be more specific; for example if i'm right its not plug and play.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
alexbeatle
Posts: 141
Joined: Sun Jan 03, 2021 6:12 am
Has thanked: 40 times
Been thanked: 13 times

Re: The ZombieVerter VCU Project

Post by alexbeatle »

EV_Builder wrote: Thu Feb 17, 2022 9:14 pm
alexbeatle wrote: Thu Feb 17, 2022 9:07 pm Hello.
Is there a way to interface current ZombieVerter VCU with the openinverter Tesla SDU boards?
Yes; by CANbus.

But if you could be more specific; for example if i'm right its not plug and play.
I'm doing a conversion with a Tesla SDU with the V6 replacement board -- works great on the test bench. Adding SimpBMS and the Elcon charger + DC/DC.
To tie them all together and do the CCS (maybe CHAdeMO) charging too, I'm considering the super awesome ZombieVerter.

I don't see it currently "natively" supporting my hardware. I watched the wiki videos and see how the web interface covers a lot of ground.
So makes me wonder, would I need to fork the firmware for my case and dive into c++ or there's a way to setup custom CAN messaging via web interface to talk to my hardware.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

The latter, you will need mainly in the VCU work, to tie your combination together. The inverter firmware can be configured pretty much over the webGUI.

I advice to start with pulling the VCU software from GitHub and check if all your hardware is there.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

I am currently pushing larger changes onto the master branch.
Basically I had done tons of refactoring on separate branches and then found development continued at the master branch making my changes unmergeable. So now doing it again based on the recent code.

I will be making functional changes in the near future and I want to work off a clean base. Also I'm thinking it helps the future of ZombieVerter if clean code principles are applied.

Please someone review it and most of all, test it. I'm sure I'll break stuff but since I have no ZombieVerter deployed I can't test myself. I'm doing my best to only do structural changes, no functional ones yet.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

Alright, forward-ported the structural changes, so we are almost back at this stage: viewtopic.php?p=32602#p32602
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Kelju
Posts: 128
Joined: Sat Aug 22, 2020 6:54 pm
Location: Finland
Has thanked: 8 times
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by Kelju »

I am posting this update/question here as I realize that the support thread is probably not intended for custom code related questions.

So I am still working on the "Float refactor" branch and I am finally at the point to implement my BMS related changes.
Communication with the Think City battery modules requires a considerable amount of CAN messages.
Previously I got the SW responding to the newly introduced CAN messages by modification of the stm32_can.h, but now it does not work.
This is what previously worked, but now I am stuck at 20pcs user message no matter what I put here:

Code: Select all

#ifndef MAX_ITEMS_PER_MESSAGE
#define MAX_ITEMS_PER_MESSAGE    8
#endif
#ifndef MAX_MESSAGES
#define MAX_MESSAGES            10
#endif
#ifndef SENDBUFFER_LEN
#define SENDBUFFER_LEN          20
#endif
#ifndef MAX_USER_MESSAGES
#define MAX_USER_MESSAGES       30	 //Used to be: 10
#endif
Any idea what has changed?
As mentined, I managed to get more CAN messages by changing the "MAX_USER_MESSAGES" with a SW version prior to the Float refactor.
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

Not 100% sure but could it be you're running out of hardware resources for filters?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Kelju
Posts: 128
Joined: Sat Aug 22, 2020 6:54 pm
Location: Finland
Has thanked: 8 times
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by Kelju »

johu wrote: Tue May 10, 2022 11:59 am Not 100% sure but could it be you're running out of hardware resources for filters?
Luckily the reason turned out to be just my stupidity. ;)

I recall you mentioning at some point, that the amount of user CAN messages will be configured in the makefile in the future.
I did check the makefile, but for some reason I missed this:

Code: Select all

-fno-common -fno-builtin -pedantic -DSTM32F1 -DT_DEBUG=$(TERMINAL_DEBUG) -DMAX_USER_MESSAGES=30 \
As you can see, I have it set at 30 at the moment and now it works!
Kelju
Posts: 128
Joined: Sat Aug 22, 2020 6:54 pm
Location: Finland
Has thanked: 8 times
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by Kelju »

In case of the powertrain CAN, things are triggered to happen event based with this piece of code:

Code: Select all

static void CanCallback(uint32_t id, uint32_t data[2]) //This is where we go when a defined CAN message is received.
{
   switch (id)
   {
      case 0x521:
      ISA::handle521(data);//ISA CAN MESSAGE
      break;
How do I trigger things based on events (specific messages) on the vehicle CAN?
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

It's the same function because in main():

Code: Select all

   c.SetReceiveCallback(CanCallback);
   c2.SetReceiveCallback(CanCallback);
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Locked