Prius Gen2 adapter board development thread

Topics concerning the Toyota and Lexus inverter drop in boards
Berdi
Posts: 18
Joined: Fri Jul 19, 2019 11:42 am
Location: Georgia

Re: Prius Gen2 adapter board development thread

Post by Berdi »

konstantin8818 wrote: Thu Sep 24, 2020 5:53 pm
Jack Bauer wrote: Thu Sep 24, 2020 2:29 pm Got sent a link to this video. Web interface in Russian:)
Which is translated with Yandex translate (some sort of Google translate in Russia) and is very funny to read :lol:
I'm in touch with this guy, so gave him some translation hints...
Good day to everyone and good health !!! Google translator is really very funny to read.) Is Konstantin eating a variant with a normal translation?) :)
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

As tempting as it has been to just copy Damiens' Gen2 values and say" It works!", I have spent the last few days going over the video. Thanks again!
I plan to update the steps I already put in Wiki and add a few at a later stage.
It seems that the lower your initial High Voltage, the quicker you get "no spin" above say 30 Amps when setting "sycnoffs", which in turn makes your fine setting too wide.... I have smooth closed loop control, up to 1/2 throttle, then overcurrent jumps in and we have the jumps. My prius battery pack needs a recharge, so I'll have to first focus on getting some more juice before homing in on that sweet "sncoffs point".
User avatar
konstantin8818
Posts: 287
Joined: Sun Jan 19, 2020 2:33 pm
Location: Minsk, Belarus
Been thanked: 5 times

Re: Prius Gen2 adapter board development thread

Post by konstantin8818 »

Damien's box of goodies, which he sent me, contained Johu's gen2 board, but there was no modice case included... :?
So I desided to make my own... and it fits perfectly even with WiFi module:
20200925_175248.jpg
20200925_175307.jpg
My goal was to make it from clear transparent plastic, but for some reason maker convinced me that it won't be transparent because of wall thickness, so I made it from ABS.

For those who want to make it as well:
MODICE.zip
(139.83 KiB) Downloaded 68 times
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: Prius Gen2 adapter board development thread

Post by ZooKeeper »

konstantin8818 wrote: Fri Sep 25, 2020 5:33 pm 20200925_175248.jpg
Nice!

Also it is REALLY great to have everyone helping each other out :D
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

Really getting close to that special syncoffs value, but battery voltage dropping and need to recharge the pack. Thanks again for the video. Original Prius transaxle, inverter, battery, relays and hv cabling (jumper inside inverter).
Here is my first ChewTube video! 😁



Hope it worked 🤞
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

johu wrote: Fri Jun 19, 2020 4:28 pm Alright, I tested and here is what I found:
  • CSDN input can be left floating, not sure what it is supposed to do
  • CPWM needs a push-pull signal of rather low impedance. I used a 500Ohm resistor to 12 (13.3V) and ended up with 9.8V on CPWM
  • When CPWM=0V the top IGBT is on meaning the DC input is connected to the inverter DC bus
  • When CPWM >= 5V the bottom IGBT is on meaning the DC input is shorted
  • There is no input to CPWM that would turn both IGBTs off
  • The higher the positive dutycycle, the lower the voltage bucked from DC bus to battery
So switching this via the ULN2003 inverts the duty cycle and we have "more duty cycle -> more output voltage" which is good. But when the ULN is off CPWM is high and thus shorts out the battery input. Bad!

So what could the charge procedure look like?
  • Only pull up CPWM when we actually want to charge
  • Precharge DC bus to rectified AC, so say 320V for single phase 230V AC
  • Set duty cycle to match calculated output voltage to udcsw or udcnom (So say we see 400V and udcsw is 200 we set 50% duty cycle)
  • Close AC and DC contactor (can be on same control signal)
  • switch over to PI charge controller
  • When AC is unplugged the inverter will power down and all contactors open. Same when BMS commands end of charge - which can also happen by setting chargecur to 0 via CAN
Looks like this will be next phase. Sorry if the stupid questions start rolling in.
MattsAwesomeStuff
Posts: 898
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 291 times
Been thanked: 177 times

Re: Prius Gen2 adapter board development thread

Post by MattsAwesomeStuff »

Well, someone else, maybe one of you, posted a superb timestamp summary in the comments on the video a few days ago, beating me to the punch.

Great job.

I'll repost it here for anyone who's curious. He was heavy on the timestamps, it's too many for me to link each one, you'll have to scan manually.

-----------
FOC: Field Oriented Control. HV: High Voltage ~80-200V. IM: Induction Motor.
OVERALL: discussion is about Toyota parts, but is generic for almost any permanent magnet motor which will need FOC software.
TEST EQUIPMENT: <<INEXPENSIVE>> It is assumed that only basic equipment is available such as light bulbs, switches and multi-meters. (12 V wires can be automotive grade, but HV cables MUST BE RATED FOR ~ 300 Volts).
0.51: Connections to VCU for Toyota Gen 2 Inverter.
4:27: Overall schematic of inverter and VCU Gen 2, 12V wiring including external items such as throttles and resolver connections
4:55: Discussion about VCU Gen 2 PCB components: purpose of; location of power supply ccts; pre-charge/charge circuitry etc.
6:21: location of solder jumpers for 'open collector' requirements with Asynchronous (IM) motors with encoder feedback.
6:37: VCU Gen 2 connections to inverter Gen 2 and trans-axle Gen 2.
7:08: Grey connector for throttle, brake, 12V power etc.
7:15: Black connector goes to Gen 2 inverter.
7:24: How to SAFELY apply 12V power to VCU Gen 2 for reducing damage from mistakes such as 12V to wrong pin...
9:46: 55W lamp, car battery, ideally fuse (10A?).
10:30: VCU energized: should be two LED s light steady, and third one flashing (shows STM IC executing software, :) ).
11:14: Initial hook up to Gen 2 inverter. Bypass inductor, Use 80-160 V DC supply initially. Use ~230V incandescent light bulb.
11:21: Signal harness has been connected at this point in time.
11:41: 2 pole connector is 12V supply to Gen 2 inverter. Watch polarity.
12:45: VCU Gen 2 AND Gen 2 inverter connected to 12V supply. Light bulb behavior slightly different to only supplying VCU Gen2.
13:00: Small glow of lamp due to quiescent steady state current consumption of Inverter Gen 2 electronics (Gate Driver board).
14:01: Bulb glowed as expected, can connect 12V supply directly, bypassing globe. Please use fuse in series with supply to protect wires.
15:04: Trans-axle Gen 2 temporarily wired to VCU Gen 2, HV battery, trans-axle resolver connected to VCU Gen 2.
15:42: Only MG2 of Gen 2 trans-axle connected to MG2 output of Gen 2 inverter
16:13: Trans-axle planet split device has been welded together and the trans-axle bolted back together. No oil in trans-axle.
16:27: MG2 and MG1 now spin at same speed all the time. See other videos for info on welding.
17:00: Stubs for trans-axle differential output were not available, so Damien put tape on the petrol connection for seeing rotation of the axle.
18:20: Discussing running trans-axle in open loop mode first, as part of FOC Tuning process.
18:43: HV battery connection to two bus-bars, (bypassing orange input cable port) to bypass buck/boost inductor.
19:04: Build up commissioning plan using the most simple steps conceivable. Can always add other steps later.
19:17: Bus bar closes to black capacitor square is HV positive, Bus bar closest to aluminum die-cast box is HV negative.
20:05: HV negative wire connect directly to HV battery pack (or equivalent) [Remember to use HV rated cable :)]
20:51: Recommendation: use HV battery rated 80-160V (150V?) good value...
21:17: Use ~20 Amp fuse HV rated and fuse holder HV rated, light bulb 230V rated 100W HV rated, bypass switch HV rated.
22:03: Fuse protect wires from shorts (does not protect electronics). Switch open for pre-charging inverter capacitors and seeing inrush current flow into inverter electronics and seeing how current flows into trans-axle during early commissioning phase.
23:03: If you don't understand pre-charging inverter capacitors, please pause watching this video and learn what this means first.
23:41: HV light bulb limits any fault currents that may flow during early commissioning phase.
24:08: HV light bulb protection for limiting fault current for wiring inverter incorrectly, inverter faulty, battery wired wrong polarity, any other unplanned conditions. (Please note, shorts on HV battery circuits can carry thousands of amps, with burning and UV flash-over)
25:36: Negative battery connection crocodile clip attached to HV battery (HV positive connection was already connected). Result, light bulb flashed for <1 second. Means pre-charge current for inverter capacitor Gen 2 flowed, then once caps charged light bulb went out.
26:50: Total system of trans-axle, inverter, VCU, HV battery , LV battery is now ready for overall system commissioning.
27:05: Now go to computer talking to VCU, and set f to 3 Hertz. And Ampnom to 10%, Can hear whine coming from trans-axle.
27:35: Ampnom ramped to 20% then 25%, now get petrol axle jittering and trans-axle rocking back and forth.
27:42: Ampnom set to 25%, and now we see axle rotating slowly in open loop mode. PROVES: inverter/trans-axle/HV/LV Battery/VCU wire connections system WORKS as a whole. We are now READY for the next stage of FOC tuning.
28:20: We observe HV light bulb is glowing dimly, because we are consuming current in the transaxle rotating.
29:09: Ampnom is now set to 0 amps via the laptop. We can now close switch to bypass HV light bulb, and then continue open loop tuning.
30:05: The spinning petrol shaft axle means: inverter/trans-axle/HV/LV Battery/VCU wire connections system WORKS as a whole.
This is a significant step.
30:32: The next step is to commission this permanent magnet trans-axle using the Openinverter forum FOC firmware.
31:19: For those commissioning their permanent magnet trans-axles, please pause what you are doing and carefully watch this entire tutorial :).
32:00: Demonstration of resolver circuit. Sinusoidal excitation signal verified with a tiny second hand loudspeaker.
32:33: Set 'encmode' to 'resolver' on laptop.
32:59: How to lash up 12V supply to VCU on bench to test excitation output signal. Connected pins 4 and 5 to loudspeaker.
32:42: Discussion of how to get the 6 wires of the trans-axle resolver connected to the correct pins of the VCU.
33:58 Resolver discussion applies to practically any permanent magnet motor.
34:20: Need paper and pen, basic multi-meter, wires to connect to trans-axle resolver plug (hopefully you have the mate for the plug)
35:25: Without any resolver wiring diagrams, point to point sets of three pairs of wires. Write down resistances of pairs of wires. Lowest resistance pair is the excitation coil pair. This applies for any make resolver.
38:26: The two high resistance pairs are the sine and cosine pairs of wires. They have almost identical resistance.
39:23: Which pair is the sine or cosine pair does not matter for the Openinverter forum FOC firmware. Therefore you don't need to lose time trying to work this out. There is a video by Johannes that describes the maths for this.
40:01: Need to make chart in the notebook for 4 possible permutations of connections for the sine and cosine pairs. Need to connect the same polarity of the sine and of the cosine coil to the ground return connection.
40:40: CRITICAL: Only 1 of these permutations will work your motor properly. The rest will only make your motor partially work. Even if you have a schematic from the manufacturer, you still need to go through this work.
41:44: Strongly recommend you bring out the resolver wires from the VCU and connect to some connector block with at least 6 tunnels in it. Put exciter coil wires to the right and the rest to the left. To facilitate changing sine and cosine coil polarities.
42:19: Wire the exciter coil of the trans-axle resolver to the exciter output of the VCU. Please note, polarity of exciter does not matter :). Because all you are doing is swapping polarity of BOTH sine and cosine coils, which does'nt matter.
44:32: Now we look at outside world connector of VCU. E.g.: Pin 1 is sin resolver connection.
47:40: With correct resolver connections of the system and tuning of the FOC firmware, end result commissioning is demonstrated by easily changing speed of the trans-axle axle by simply depressing the accelerator pedal.
48:35: Damien will post a parameter file on the Openinverter forum. Please post yours here too so we can build up data for everyone to use.
49:03: Page from notepad showing last configuration was the successful resolver feedback connections for correct sin/cos polarity.
49:34: Huebner web interface. >Load FOC firmware. > hwver>Prius. >Opmode = OFF.
Must make sure resolver signals are being received by STM32 in VCU.
Make sure HV completely turned off.
Put vice grips onto shaft and turn manually for full revolution.
Computer, Go to Commands . Put opmode into Manual / Run.
angle L , R. Can graph from left or right.'
Go to bottom of screen, hit Plot button, and see waveforn on screen. Plot 204 - 207 degrees. This plot includes jitter. We expect some, but not a lot. Jittering >5 degrees, would consider that a problem. For this, check wiring, screens of resolver cable. E.G. jumping over a hundred degrees, STOP problem in resolver wiring or something else, broken resolver winding etc.
Restart Plot, rotate axle by a few turns look at waveform. Should get jumping wave forms that move from >0 to <360 degrees. We don't expect plot to capture 0 degrees or 360 degrees, because sample rate is too slow.
So screen goes 0 -> 360, 0 -> 360, 0 -> 360.
Third test, crank up limit data points and burst length. Start plot and hand rotate axle again.
Expect to now see 0 - > 360 in some of the waveform display.
Now go back and press Stop Inverter button on screen.
55:51: lasterr, Throttle1, if this displayed low resolution instead, micro-controller is telling us amplitude of received signal is too low.
56:02: Remove vice-grips from axle.
56:17: Have to configure current sensor positions for FOC firmware in Gen 2 inverter. Has to be done manually through custom command box.
56:46: Set pinswap 5 Send Custom Command. In messages should see Set OK.
57:31 We expect PWM1 would be measured by IL1, PWM2 would be measured by IL2, PWM3 not measured..
Not so Toyota, they use PWM1 not measured, PWM2 measured by IL1, PWM3 measured by IL2.
This confused the FOC software.
58:37: pinswap = 4 is a bit change command which relabels the current sensors to be as per Toyota arrangement above.
58:38: first bit of pinswap swaps PWMs, second bit of pinswap swaps current input labels.
So now PWM1 sensed by IL1, PWM2 sensed by IL2.
1:00:10: we now need to set some parameters for our motor. Polepairs = 4; Resolverpolepairs = 4;
encodermode to resolver.
syncoffset =0 to start with (Has range 0 - 65535). At this stage of commissioning, please leave at 0.
pwmfrequency to 4.4kHz.
3.1 current gain seems good value for MG2 power stage in Gen 2 inverter.
udcmin = 0, udcmax to some high value.
heatsink temp max to 150
1:02:20: save parameters one more time. Now press refresh button, and we should see condition off.
1:02:46: Reconnect HV battery 160V in this case, through 100W filament lamp.
1:03:06: We now start tuning in our commissioning process. Hit Refresh, confirm we are in manual/run.
1:03:21: Hit manualid box and press 1 amp, expect to hear a whine coming from trans-axle.
1:03:38: Increase to 2 amps, motor is now beginning to turn. Then motor stops and light bulb illuminates. This is perfectly fine, so set opmode to off.
If we did not follow that procedure, the inverter would try to inject maximum power, trans-axle would be jumping around the room and may damage windings. So cheap light bulb is a great asset for current limiting.
1:05:02: Can now switch on our bypass switch.
1:06:36: So when we inject 3 amps we see axle spin freely. We have achieved correct resolver operation AND correct current sensor operation :).
1:07:15: Johannes and Damien then looked at reverse, and a bug was found in the software. So now reverse works perfectly fine, as does forward :).
1:08:40: We will now move over to the Gen 3 system because this trans-axle has oil in it (Gen 2 does not, so don't want to damage the gears without lubricating oil). Does not matter that we flick from Gen 2 to Gen 3 system, procedure is exactly the same. Key thing is resolver and permanent magnet physics is same.
1:09:55: Gen 3 trans-axle has welded planetary gear device in it and using Yaris Gen 3 inverter.
1:12:00: A sketch of syncofs tune is shown, vertical axis is (manualid causes spin on its own [no manualiq]) effectiveness of syncofs value, horizontal axis is syncofs value from 0 to 65535 (Looks like notch filter).
1:12:41: syncofs (Synchronous offset) is the most important parameter we need to tune. This parameter is the most misunderstood.
1:13:43: For all different values of syncofs to left of notch, for all values of manualid, the motor would spin up.
For all different values of syncofs to right of notch, for all values of manualid, motor would spin up.
As we approach the correct value (the notch) from the left, we will notice it will take more and more manualid to achieve spin. this is good. We are onto the correct method of tuning. There may be only 100 points in the notch.
1:18:06: For this set up at 150V battery voltage 10,200 seems to be a very good notch value. But we will set to zero and perform tuning together.
1:19:13: Start inverter in manual mode. Go to Parameters, confirm syncofs is 0.
1:19:14: Now put in 3 Amps for manualid, and check motor spins. Then go back to manualid = 0.
1:21:30: My rule of thumb is to go in 5,000 jumps. So apply this then check manualid= 3 Amps. Now please note, the motor still spins but more slowly. so we are beginning to approach the notch :).
1:22:50: So now change syncofs by half as much again or 2,500 to give us 7,500.
Does not move at 3 Amps!, Try 6 Amps, and we can get movement. Vital Clue!
1:39:15: Now lets try 8,750, (increase by approx half again or 1000). Now we need 12 Amps!
Lets try another 500 points, 12 Amps axle is slower again. Note, if we see shaft rotating the other way, we have found ourselves on the right hand side of the notch. We don't want to be there, we want to be at the minima.
1:26:40: Now go in steps of 200 to 9,200. 6 Amps, nothing, 12 Amps nothing! We have to go up to 100 Amps before we hear some rumbling, but no movement. This is a clear sign we are close to the notch. Stator and rotor magnets are nearly perfectly aligned, but not perfectly because we are still getting rumbling or jitter.
1:27:59: Lets now try 10,000 points (jumps of 100), not at individual values yet.
Lets say we have jumped to say 20,000 points, and wacko, we are spinning in reverse! So we are now on the right hand side of the notch! In other words, if we overshoot our notch syncofs position we go in reverse.
So lets go back to 10,100, and we get a small amount of movement at 12 Amps.
1:31:23: Lets try 10,120 points. No shimmy at 100 Amps!
1:32:18: So next test in our tuning is to try manualid = 0.1 amps, and manualiq = 3 Amps, and motor spins.
1:33:13: If we want to check reverse we just try manualiq = -3 Amps, and it spins backwards!
1:33:25: We are now very very close to the notch point. We now go to Parameters, and save parameters to flash.
1:34:07: Final test, put motor into normal run mode , now use throttle pedal, and as we can see we can spin the motor up using our throttle pedal :).
1:34:50: RECAPPING
Step 1: Use sine firmware and check our motor and inverter work.
Step 2: Put FOC firmware in. Calibrate our current sensors. Set up resolvers. Can now run motor with manualid with syncofs = 0. IF at this time we get resolution error, we have to backtrack and fix before proceeding any further.
Gen 2 and Gen 3 transaxle files will be put onto openinverter.forum, please put yours here too.
-------------

There's not many comments, but I was the first person to thumbs it up, so, if you'd like to re-visit the link and thumb up his points for visibility, more people will see them (or Damien could pin it).
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: Prius Gen2 adapter board development thread

Post by Jack Bauer »

Thanks Matt:)
I'm going to need a hacksaw
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

Someone been real busy. 👍
User avatar
TheSilverBuick
Posts: 187
Joined: Mon Jun 08, 2020 5:01 pm
Location: Nevada, United States
Has thanked: 3 times
Been thanked: 1 time

Re: Prius Gen2 adapter board development thread

Post by TheSilverBuick »

Great work!!
Need to learn. Starting from the basics.
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

I sort of got my head around the Charging side of the Inverter.
Need a rectifying Diode to supply AC to DC Bus Caps (HV Battery Main Bus Bars inside Inverter)
But, before going into too much of the details, I wanted to check 2 things...
1. If ONE of MG1 Inverter Outputs (GWU for example) is used for charging purposes, MG1 cannot be connected at the same time - BOOM!! - Right?
2. If we did connect MG1, it would generate current (regen) and fight MG2 in its current set up? (As seen in Dual Motor Gen 3 Video)

So Yes, I will ask the question. If we were to add a second board and connect it in parallel and The Famous Pins 28, 29, and 30 to MG1, we have Dual Motor System, but no charger option?
Since I have locked the PSD, it would be a shame not to use MG1, especially since I intend a 200 ish voltage set up.
As an interim solution, I would remove MG1 HV cables when using Inverter as Charger to recharge originale Prius pack.
All this whilst sourcing something on 4 wheels that would "easily" accept a Gen2 Transaxle.
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by johu »

Yes that is correct. No point in using an external rectifier as you wouldn't be able to sense charge current in order to control it.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

Looking at your wiki diagram for charger side, surely I am not going to hook up AC directly to DC bus? Are the rectifiers on Output to Mg1? Sorry if it's a stupid question.
I hope to do like your video and start with small voltage increments
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by johu »

An inverter seen from its "output" is actually a 3/2/1 phase rectifier. So you could connect N e.g. to phase U and L to phase V and would end up with 320V on the DC bus.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

Thanks, Thats what I thought, but was looking for 'confirmation'. Obviously I am responsable if I release the Big Smoke.
So if I understand correctly:
1 - FORWARD and REVERSE signals HIGH (inverter in RUN Mode) AND HV DC contactors OPEN - No connection to 200V battey.
2. CPWM with 470R to switch Charge mode - HIGH
3. Precharge DC to rectified AC (One 400W halogen light for the moment) with connections as mentioned in previous post.
4. Set duty cycle (40% = 320V down to 200 V) (I noted, the higher the duty cycle, the higher the voltage)
5.Close DC contactors (with precharge sequence maybe?) and then AC Main contactor?

For the "switch to PI charge controller", you got me there. This would be the regulation of current into the Battery Pack?
From my basic automotive electrics undertsanding, If the potential is different between two batteries, there will be a transfer of current to balance each other. The greater the difference, the greater the current flow.

So if I set duty cycle "a bit higher" than pack voltage, I will have a current flow towards pack. If I set it to around 10 Amps MAX, I could monitor it over a few hours of charging.

Since it's a fresh spring morning, doing this outside eliminates cooling for battery, however need a circuit for the inverter..
Where did I muck things up?
hugow93
Posts: 55
Joined: Mon Feb 24, 2020 9:33 pm
Location: Ireland
Has thanked: 17 times
Been thanked: 9 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by hugow93 »

I took delivery of a replacement inverter on Friday and have been setting it up over the weekend.
It works, but I'm having some trouble getting my Siemens 1pv5135 to spin in manual mode.
Any help very much appreciated.

My setup:

- Siemens 1pv5135 AC induction motor
- Gen2 prius inverter + vcu
- 48v HV battery
- 60 watt filament bulb as demonstrated in FOC tuning vid
- 12v battery

What I've observed when 12v connected:

- Inverter powers on successfully and a low volume high frequency whine can be heard from it.
- All VCU LEDs behave as expected

What I've observed when HV connected through 60 watt bulb:

- NO precharge flash (since the bulb only lights dimly when connected to HV independently of the inverter, and there is no precharge error in "run" or manual mode, is this lack of precharge bulb flash due to the relatively low HV source?).
- In manual mode when changing the values of fslipspnt and ampnom the frequency of the noise the inverter makes changes.
- When ampnom value is >~60 the bulb glows dimly
- When fslipspnt value is >~100 the bulb glows dimly
- Spot values for udc, idc, il1, il2, imax, uac, il1rms, il2rms all change when I adjust the values for ampnom and fslipspnt.
- I have found no combination of fslipspnt and appnom values where there is any movement or noise from the motor.

Things I've triple checked:

- I'm using the latest Sine software
- VCU wiring is correct
- Inverter pin 25 is tied to high
- VCU forward is tied to high
- UDCSW is set to 0
- UDCMIN is set to 0
- HV is direct to inverter bus bars
- I've tried suggestions in other project threads where Siemens 1pv5135 motors are being used, such as Isaac96's Boxster thread: viewtopic.php?f=11&t=690 and JB's LandYacht: viewtopic.php?f=11&t=30&hilit=landyacht

My current hypothesis:

- I've made a mistake somewhere obvious and the divine wisdom of the forum will help me learn from my mistakes.
- I have a damaged ULN2003 driver that needs to be replaced. In the same mess up where I damaged my original Gen 2 inverter the driver took some heat (see picture attached). Unfortunately I don't have a scope to validate this as Woody was able to.

Any help greatly appreciated.

Hugh
20200827_083219.jpg
Converting a1994 Suzuki Samurai soft top
| Siemens 1PV5135 Motor | Gen 2 Toyota Prius Inverter + OI Control Board | 24 kwh Renault Zoe battery |
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 1 time
Contact:

Re: Prius Gen2 adapter board development thread

Post by Isaac96 »

I might be running the same setup pretty soon, since I just got my hands on a similar inverter.

In this order:

1.If you type 'get opmode' does it respond '2'? That will tell you if the thing is properly in manual mode.

2.Have you done the light bulb test? Three 12V bulbs delta-connected between phases, with a 12V supply for the HV side. Then setting fslipspnt to 1 and ampnom to 100 should flash the bulbs. If not, place suspicion on the ULN2003, that doesn't look healthy.

3.Try setting fweak to 10 and fslipspnt to 3, then raise ampnom slowly. 48V is enough to spin the Siemens.

-Isaac
hugow93
Posts: 55
Joined: Mon Feb 24, 2020 9:33 pm
Location: Ireland
Has thanked: 17 times
Been thanked: 9 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by hugow93 »

Thanks for the fresh lines of enquiry Isaac. Will check the op mode in the morning. Haven't tried the delta light bulb config yet and will get to that after work.
Converting a1994 Suzuki Samurai soft top
| Siemens 1PV5135 Motor | Gen 2 Toyota Prius Inverter + OI Control Board | 24 kwh Renault Zoe battery |
RetroZero
Posts: 731
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 329 times
Been thanked: 44 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by RetroZero »

When testing at low voltage, set Boost to Max (I used 37000).Thanks to D😉 On my first 12v setup, I needed max boost and 95% ampnom to get similar results to Damien on Transaxle... Start with lower ampnom value, and work your way up as you've been doing. I think it's to do with how many Amps you need to get initial spin. The lower the voltage, the higher the amps, and inverse as well. Did not touch any other values.
hugow93
Posts: 55
Joined: Mon Feb 24, 2020 9:33 pm
Location: Ireland
Has thanked: 17 times
Been thanked: 9 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by hugow93 »

Thanks for the suggestions Retro and Isaac.

Here's how it went down today:

- get opmode: 2.00 - Manual mode is being correctly selected
- Reducing fweak to 10 and increasing ampnom - No movement from motor, inverter still make sound as expected
- Increasing boost to maximum value - No movement from motor
- Lightbulb delta - No flashing from bulbs (increased boost and one flashed momentarily but could not replicate afterwards. Mildly concerned I may have screwed something up by doing that)

Given current is being drawn from HV source (bulb glows in other lightbulb test), and no activity seems to be coming from the MG2 output, I think my next move should be as follows:

- Read more about what might be causing PWM signals not to be generated/reach MG2 terminal
- Replace the ULN2003AD driver IC that is visibly damaged

Doesn't this sound reasonable to anybody with more experience, and is there anything I might be overlooking?

Thanks,

Hugh
Converting a1994 Suzuki Samurai soft top
| Siemens 1PV5135 Motor | Gen 2 Toyota Prius Inverter + OI Control Board | 24 kwh Renault Zoe battery |
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: Prius Gen2 adapter board development thread

Post by ZooKeeper »

Hugh,

I am absolutely NOT an authority here.... but, it seems like the voltage is less than suggested in the FOC tuning video and that may be causing some issue. I had similar experience, except that I did not hear any PWM "whine" and to this day the only thing I can figure is that the original pinout map had the PWM outputs shifted by one terminal: MUU, MVU, MVW are 28, 29 & 30 of the VCU respectively and CPWM is 31 (not pin 28).

Once that was resolved, it was off to the races.

EDIT: I have a few of those ICs in the drawer if you need it :(
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
bexander
Posts: 835
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Re: Prius Gen2 adapter board development thread

Post by bexander »

hugow93 wrote: Mon Oct 05, 2020 8:42 pm Thanks for the suggestions Retro and Isaac.

Here's how it went down today:

- get opmode: 2.00 - Manual mode is being correctly selected
- Reducing fweak to 10 and increasing ampnom - No movement from motor, inverter still make sound as expected
- Increasing boost to maximum value - No movement from motor
- Lightbulb delta - No flashing from bulbs (increased boost and one flashed momentarily but could not replicate afterwards. Mildly concerned I may have screwed something up by doing that)

Given current is being drawn from HV source (bulb glows in other lightbulb test), and no activity seems to be coming from the MG2 output, I think my next move should be as follows:

- Read more about what might be causing PWM signals not to be generated/reach MG2 terminal
- Replace the ULN2003AD driver IC that is visibly damaged

Doesn't this sound reasonable to anybody with more experience, and is there anything I might be overlooking?

Thanks,

Hugh
Have you selected a direction? (Forward or reverse).
hugow93
Posts: 55
Joined: Mon Feb 24, 2020 9:33 pm
Location: Ireland
Has thanked: 17 times
Been thanked: 9 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by hugow93 »

ZooKeeper wrote: Mon Oct 05, 2020 9:57 pm Hugh,

I am absolutely NOT an authority here.... but, it seems like the voltage is less than suggested in the FOC tuning video and that may be causing some issue. I had similar experience, except that I did not hear any PWM "whine" and to this day the only thing I can figure is that the original pinout map had the PWM outputs shifted by one terminal: MUU, MVU, MVW are 28, 29 & 30 of the VCU respectively and CPWM is 31 (not pin 28).

Once that was resolved, it was off to the races.

EDIT: I have a few of those ICs in the drawer if you need it :(
Thanks Zookeeper.

Since I'm using an ACIM, I don't need to use the FOC tuning and from what I understand 48v should be enough to turn over the Siemens.
By doing the lightbulb test (unsuccessfully), I think I've verified the problem is "upstream" of the motor, so to speak.

Thanks for the offer of the IC :) I'll order a few here anyway as it will probably be faster for delivery, and good to have a few in stock.

Before I resolder that though, I'll tear down the circuit again this weekend and rebuild from first principles to be sure everything is correct.
At the same time I'll try to understand why I'm hearing the whine but not getting any movement from the motor or flashing from the bulbs.
Perhaps not all phases are working, but one is. I need better understanding anyway!


EDIT: If you could specify which version of the IC you used that would be very helpful! Seem to be a few options here: https://ie.rs-online.com/web/cp/0858196 ... 03AD&sra=p

Thanks!
Converting a1994 Suzuki Samurai soft top
| Siemens 1PV5135 Motor | Gen 2 Toyota Prius Inverter + OI Control Board | 24 kwh Renault Zoe battery |
hugow93
Posts: 55
Joined: Mon Feb 24, 2020 9:33 pm
Location: Ireland
Has thanked: 17 times
Been thanked: 9 times
Contact:

Re: Prius Gen2 adapter board development thread

Post by hugow93 »

bexander wrote: Tue Oct 06, 2020 6:03 pm
hugow93 wrote: Mon Oct 05, 2020 8:42 pm Thanks for the suggestions Retro and Isaac.

Here's how it went down today:

- get opmode: 2.00 - Manual mode is being correctly selected
- Reducing fweak to 10 and increasing ampnom - No movement from motor, inverter still make sound as expected
- Increasing boost to maximum value - No movement from motor
- Lightbulb delta - No flashing from bulbs (increased boost and one flashed momentarily but could not replicate afterwards. Mildly concerned I may have screwed something up by doing that)

Given current is being drawn from HV source (bulb glows in other lightbulb test), and no activity seems to be coming from the MG2 output, I think my next move should be as follows:

- Read more about what might be causing PWM signals not to be generated/reach MG2 terminal
- Replace the ULN2003AD driver IC that is visibly damaged

Doesn't this sound reasonable to anybody with more experience, and is there anything I might be overlooking?

Thanks,

Hugh
Have you selected a direction? (Forward or reverse).
Thanks Bexander! Yes, I've tied forward to 12v positive and it's appearing as so in spot values.
Converting a1994 Suzuki Samurai soft top
| Siemens 1PV5135 Motor | Gen 2 Toyota Prius Inverter + OI Control Board | 24 kwh Renault Zoe battery |
User avatar
ZooKeeper
Posts: 507
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA

Re: Prius Gen2 adapter board development thread

Post by ZooKeeper »

hugow93 wrote: Tue Oct 06, 2020 9:31 pm EDIT: If you could specify which version of the IC you used that would be very helpful! Seem to be a few options here: https://ie.rs-online.com/web/cp/0858196 ... 03AD&sra=p
I bought every type DigiKey had in stock :O

The only one I know is "wrong" is the ULN2003AIPWR, wrong form factor :(

Edit: If you hear PWM, the VCU is signaling the inverter from my experience. When I was not getting any inverter output, I also could not hear any PWM.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
Post Reply