Page 22 of 38

Re: The ZombieVerter VCU Project

Posted: Sat Mar 27, 2021 11:12 am
by Dilbert
I'm fairly sure they will.

I also collected the connectors from toyota garage yesterday. Main connector and resolver one are perfect.

I had crimp terminal in parts bin here which work perfect too, I just need to figure out where I got them...

Re: The ZombieVerter VCU Project

Posted: Sun Mar 28, 2021 7:51 pm
by EV_Builder
Jack Bauer wrote: Tue Mar 23, 2021 6:34 pm Yeah am looking at some of their stuff. Looks like they go up to 121 pins. 56 should be more than enough and if I can source the header,enclosure, pins and connector from one source it makes the kit a lot easier...
Dammn that looks like a good idea!
Did you order a couple already?

p.s. Porsche uses the same type of connector lock style...

Re: The ZombieVerter VCU Project

Posted: Mon Mar 29, 2021 10:10 am
by Jack Bauer
Yep on the way from aliexpress.

Re: The ZombieVerter VCU Project

Posted: Mon Mar 29, 2021 8:13 pm
by Dilbert
I down graded to the older Yaris control board and now the inverter comms work fine. I done a git stash on my software, so rolled back to what's on git hub. I'm struggling to get the VCU configured, sometimes i get an opmode of -1 sometimes i get a dir of 256. So i'll need to make some mods to try and get the potnom signal to change, it is currently stuck at -2.

Re: The ZombieVerter VCU Project

Posted: Mon Mar 29, 2021 9:41 pm
by johu
did you

Code: Select all

make clean
?

Re: The ZombieVerter VCU Project

Posted: Mon Mar 29, 2021 11:25 pm
by Dilbert
I can give that a try. I'm not overly familiar with the setup, also the demo software has the ecu start signal and one if the direction pins connected to the same I/o.

I did get something to work.

I've figured out the part numbers for the oem connectors and the crimps to buy from RS, so that's good

Re: The ZombieVerter VCU Project

Posted: Tue Mar 30, 2021 12:32 pm
by EV_Builder
Jack Bauer wrote: Tue Mar 23, 2021 6:34 pm Yeah am looking at some of their stuff. Looks like they go up to 121 pins. 56 should be more than enough and if I can source the header,enclosure, pins and connector from one source it makes the kit a lot easier...
I have not seen the IO list yet of the ZombieVerter VCU Project, but as you know i'm interested so let me know when i can send money for one to start playing with it (i'm in need of PWM outputs and inputs). If i have an board i can start making software too.

One way to go with the IO is to route multiple paths to a jumper place which then decides which configuration reaches the external pin header.
In that way you can easily balance the IO config in each side without needing more pins on the connectors.
Also if an output or input is broken one could move the jumper and re-assign IO's.

Another idea often seen is that some IO's are routed to an unsoldered pin header with a VDD and GND. This then leaves the possibility to make or add your self a extra top board with extra io conditioning.

Perhaps these idea's make the project even more versatile. :D

Re: The ZombieVerter VCU Project

Posted: Tue Mar 30, 2021 2:12 pm
by Jack Bauer
Yeah that all sounds good. There is no IO map currently. I've attached some drawings for the enclosure the company sent me but I cant get them to open. Any takers?

Re: The ZombieVerter VCU Project

Posted: Tue Mar 30, 2021 2:25 pm
by Jack Bauer
@dilbert , when e46 is selected the two inputs work like this : IN1 activates forward direction AND is an ignition on/off signal. IN2 is a momentary start signal. This is a cludge to get around the limited IO on the test hardware. This will not be the case in the release version.

Re: The ZombieVerter VCU Project

Posted: Tue Mar 30, 2021 2:26 pm
by Dilbert
Jack Bauer wrote: Tue Mar 30, 2021 2:12 pm Yeah that all sounds good. There is no IO map currently. I've attached some drawings for the enclosure the company sent me but I cant get them to open. Any takers?
Here they are in PDF format...

Re: The ZombieVerter VCU Project

Posted: Tue Mar 30, 2021 3:08 pm
by Jack Bauer
Perfect thanks:) I can start designing a pcb footprint.

Re: The ZombieVerter VCU Project

Posted: Tue Mar 30, 2021 6:05 pm
by EV_Builder
Jack Bauer wrote: Tue Mar 30, 2021 2:12 pm I've attached some drawings for the enclosure the company sent me but I cant get them to open. Any takers?
If you need more dimensions, since it are CAD drawings (DWG) we can add those if needed.
So if you miss an annotation let us/me know.

Re: The ZombieVerter VCU Project

Posted: Wed Mar 31, 2021 7:12 am
by Jack Bauer
Cool. Plan is to tear into this at the weekend with a view to ordering prototypes next week.

Re: The ZombieVerter VCU Project

Posted: Wed Mar 31, 2021 11:02 am
by EV_Builder
Jack Bauer wrote: Wed Mar 31, 2021 7:12 am Cool. Plan is to tear into this at the weekend with a view to ordering prototypes next week.
Cool i ordered the connector housing also and a smaller one if i need to proceed with my CAN Remote IO project.

If you start-up a new GitHub project for the ZombieVerter i can/could start with the software.
or is this the repo: https://github.com/damienmaguire/Stm32-vcu

I would like to add the Volt II 3.6kW Charger (pwm) and Volt I DC/DC converter.

Is there are temporary board with same CPU what i could use to start/test it with?

Re: The ZombieVerter VCU Project

Posted: Wed Mar 31, 2021 1:10 pm
by Dilbert
EV_Builder wrote: Wed Mar 31, 2021 11:02 am
Jack Bauer wrote: Wed Mar 31, 2021 7:12 am Cool. Plan is to tear into this at the weekend with a view to ordering prototypes next week.
Cool i ordered the connector housing also and a smaller one if i need to proceed with my CAN Remote IO project.

If you start-up a new GitHub project for the ZombieVerter i can/could start with the software.
or is this the repo: https://github.com/damienmaguire/Stm32-vcu

I would like to add the Volt II 3.6kW Charger (pwm) and Volt I DC/DC converter.

Is there are temporary board with same CPU what i could use to start/test it with?
It would be a good idea to design a main state machine that can bring the system up either into drive mode or charger mode. The opmode variable is already present, so with a simple state machine, it could be used.

The states i'd be looking at are:-
STATE_INIT
STATE_PRECHARGE
STATE_PRECHARGE_COMPLETE
STATE_READY
STATE_START_CHARGE
STATE_CHARGE
STATE_CHARGE_COMPLETE
STATE_FAULT

Re: The ZombieVerter VCU Project

Posted: Wed Mar 31, 2021 6:46 pm
by EV_Builder
Dilbert wrote: Wed Mar 31, 2021 1:10 pm
EV_Builder wrote: Wed Mar 31, 2021 11:02 am
Jack Bauer wrote: Wed Mar 31, 2021 7:12 am Cool. Plan is to tear into this at the weekend with a view to ordering prototypes next week.
Cool i ordered the connector housing also and a smaller one if i need to proceed with my CAN Remote IO project.

If you start-up a new GitHub project for the ZombieVerter i can/could start with the software.
or is this the repo: https://github.com/damienmaguire/Stm32-vcu

I would like to add the Volt II 3.6kW Charger (pwm) and Volt I DC/DC converter.

Is there are temporary board with same CPU what i could use to start/test it with?
It would be a good idea to design a main state machine that can bring the system up either into drive mode or charger mode. The opmode variable is already present, so with a simple state machine, it could be used.

The states i'd be looking at are:-
STATE_INIT
STATE_PRECHARGE
STATE_PRECHARGE_COMPLETE
STATE_READY
STATE_START_CHARGE
STATE_CHARGE
STATE_CHARGE_COMPLETE
STATE_FAULT
Very good point.
I fully agree.
I was used to use PackMl (in the industrial automation)

For example:

- States; STATE_READY
- Transition states; STATE_STARTING
- Commands; CMD_START

Right now if i remember well there is a counter used.
A state machine would be better to read.
I do want to point out that too much states aren't an improvement.

And when you have states you also have commands.

If we agree in going this route i could draw a simple state stransition sheme. In that scheme its easy to see how to get from one state to the next.

The statemachine itself should best be made in c++ as an class.
Then you can easyly implement the statemachine also for the charger itself or other devices which need a statemachine.
The nice thing about statemachine is that its easy to see the state of the program (car).
A small drawback could be speed but i can imagine there isn't allot todo anyway and then it doesn't consume much cpu either.

I vote for giving it a chance.

Re: The ZombieVerter VCU Project

Posted: Thu Apr 01, 2021 9:34 am
by Jack Bauer
Ok so trying to get this enclosure header footprint done a few questions on the drawings :

1)What is the relationship between the two 3.3mm holes used to secure the header to the board and the pins?
2)What is the maximum board size?
3)Distance from front board edge to center of first row of pins?

Re: The ZombieVerter VCU Project

Posted: Thu Apr 01, 2021 9:50 am
by Jack Bauer
Look what I found :
https://www.aliexpress.com/item/4001214 ... 4c4dF3tYSh

Got one on the way:)

Re: The ZombieVerter VCU Project

Posted: Thu Apr 01, 2021 7:02 pm
by nkiernan
Jack Bauer wrote: Thu Apr 01, 2021 9:34 am Ok so trying to get this enclosure header footprint done a few questions on the drawings :

1)What is the relationship between the two 3.3mm holes used to secure the header to the board and the pins?
2)What is the maximum board size?
3)Distance from front board edge to center of first row of pins?
Is this the info you need JB? Just sense check there's no scaling issues, or I'll try again :)
Capture.PNG

Re: The ZombieVerter VCU Project

Posted: Thu Apr 01, 2021 11:20 pm
by arturk
EV_Builder wrote: Tue Mar 30, 2021 12:32 pm
One way to go with the IO is to route multiple paths to a jumper place which then decides which configuration reaches the external pin header.
In that way you can easily balance the IO config in each side without needing more pins on the connectors.
Also if an output or input is broken one could move the jumper and re-assign IO's.

Another idea often seen is that some IO's are routed to an unsoldered pin header with a VDD and GND. This then leaves the possibility to make or add your self a extra top board with extra io conditioning.

Perhaps these idea's make the project even more versatile. :D

These are really great ideas, I hope Damien will have enough time and patients to implement some of them.
With version 1 and 2 I found myself soldering wires directly to SAM3X8E pins to get additional functionality :lol:

Re: The ZombieVerter VCU Project

Posted: Thu Apr 01, 2021 11:53 pm
by arturk
Jack Bauer wrote: Thu Apr 01, 2021 9:50 am Look what I found :
https://www.aliexpress.com/item/4001214 ... 4c4dF3tYSh

Got one on the way:)

Great find! Here are some additional accessories.

Connector kit (with terminals):
https://www.aliexpress.com/item/3290790 ... WF2e8&mp=1

Connector + Header kit (no terminals)
https://www.aliexpress.com/item/3291066 ... WF2e8&mp=1

Terminals
https://www.aliexpress.com/item/3294886 ... WF2e8&mp=1

Re: The ZombieVerter VCU Project

Posted: Tue Apr 06, 2021 7:57 am
by Jack Bauer
We got a basic footprint and board size for the new enclosure. Shown here with the original layout. Also, JLC are now stocking the 100 pin STM32F107VCT6 part as a basic component.
https://jlcpcb.com/parts/componentSearc ... 32F107VCT6

So this is going to be the mcu used.

Re: The ZombieVerter VCU Project

Posted: Tue Apr 06, 2021 1:54 pm
by johu
Got one here, on an Olimex STM32-P107 prototype board. Apparently has Ethernet, maybe it can run the web interface natively :)

Re: The ZombieVerter VCU Project

Posted: Wed Apr 07, 2021 9:26 am
by Jack Bauer
Ok so getting started on the pinout for the 100 pin f107. Attached a first cut in CubeMX format. Now is the time to get those suggestions and pin requests in please.
So far :

Analog inputs (0-5v) :
2 throttle chans
pedal pos/pressure
vacuum sensor
2xaux analogs

Digital inputs (12v):
Forward
Reverse
Start
Brake
3xaux digital inputs
hv request

Output drivers (NCV8402) :
Precharge
Pos con
Neg con
Inverter power
3x aux outputs
3x Pwm via timer 3

Comms :
Usart1 - RS232/RS485 driver for external comms
Usart2 - Toyota hybrid
Usart3 - wifi
CAN1 - HS can
CAN2 - HS can
CAN3 - HS/SW/FT can via spi mcp25625 and drivers. solder jumper selectable

Toyota Hybrid :
Free running clock for sync serial comms
3xgear pos inputs
3xshift solenoid drivers

Memory :
2Mbit external I2C eeprom

Clock:
8Mhz main clock
32khz rtc

Programming :
SWD
WiFi

Keep in mind we have 56 external pins of which at least 2 are required for power and ground.

Re: The ZombieVerter VCU Project

Posted: Wed Apr 07, 2021 12:58 pm
by Dilbert
A couple of digi pots to connect to analog dash gauges, fuel and temp would be useful for some people.