EV Conversion using prius gen 2 inverter/transaxle

Topics concerning the Toyota and Lexus inverter drop in boards
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

RetroZero wrote: Tue Jun 17, 2025 7:53 pm Is this what you used as reference?
viewtopic.php?p=14153#p14153
I connected my resolver the way Damien did in the tutorial video. Is it correct or should I change to
pin 1 = yellow ( enc b)
pin 2= green and brown (sin a and cos a)
pin 3= red ( enc a)
pin 4 = black r1
pin 5 = white r2

For excitation I have blue and pink not black and white.
Attachments
Screenshot_20250617_215936_Gallery.jpg
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

I changed my resolver connection today and connected it as pair discussed in the screenshot attached below.
I tested first without it connected and I got the same results of having the Delta connected light bulbs connected on the inverters three phase output light up and turn off again continuously. The inverter goes into run mode when I set udcsw to 0 and this blinking behavior then starts even before I put any numbers in the manualid. Please see video attached in comment above. On angle when the light bulbs started blinking an angle of 63 degrees showed up even without the resolver connected.

Then after I connected the resolver and shortly after setting udcsw to 0, the light bulbs turn on and they stay lit. This time around they don't blink but they say lit. When testing with a scope the PWM wave shows but it doesn't move. It stays in one position. On angle under spot values the angle was 239 degrees but kept changing by a value of 1 either increasing or decreasing when I pressed refresh even without turning the drive shaft.

I went on to connect the throttle pedal also with the discussed instructions on the screenshot below and tested with both the resolver and the pedal connected. Now the light bulbs didn't turn on and the inverter didn't go to Runmode it stay off even after setting udcsw to 0. While on previous tests I set udcsw to 0 because that was the only way I could get the inverter to go Runmode because even with manual start turned on, the inverter would still be on opmode> OFF.

When I had the throttle connected STATUS on spot values first showed "PotPressed" and on another test it said "UdcBelowUdcSw|PotPressed" .

Please see attached pictures.
Attachments
Screenshot_20250618_104604_Gallery.jpg
Screenshot_20250618_104648_Gallery.jpg
Screenshot_20250618_104739_Gallery.jpg
Screenshot_20250618_104723_Gallery.jpg
Screenshot_20250618_104733_Gallery.jpg
RetroZero
Posts: 885
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 557 times
Been thanked: 53 times
Contact:

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by RetroZero »

Just to be sure.
You have 2 seperate batteries. 1 for 12v circuit, & another for High Voltage circuit. Can you check that they are well charged.
In spot values, please report back on UDC voltage & Pot1/Pot2.
The pedal should read 0 , if not, it requires setting. I think there is a set-up in the adapter board thread. Once set up correctly, check by pressing the pedal all the way and verify you have 100%
UDC should read the same as your battery ' HV'
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

Below I've attached my entire spot values, please go through and check for all the settings you want to see pot1 and pot2 and any other that are important for testinh stage.. Also please check for faults that might appear.

I'm planning on connecting a high Amp 12v battery for my next test to my HV supply. On UDC now it says 11.87v.

I forgot to mention that now that I have connected both the resolver and the throttle, I cannot get the inverter to go on manualRun. Even after setting udcsw to 0, It stays off.
Attachments
Screenshot_20250618_202605_Gallery.jpg
Screenshot_20250618_202611_Gallery.jpg
Screenshot_20250618_202615_Gallery.jpg
Screenshot_20250618_202619_Gallery.jpg
Screenshot_20250618_202625_Gallery.jpg
RetroZero
Posts: 885
Joined: Tue Oct 29, 2019 2:48 pm
Location: France
Has thanked: 557 times
Been thanked: 53 times
Contact:

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by RetroZero »

Is your start signal connected directly to 12v, or is it a button? It needs to be a button, not permanent 12v.... When you press accelerator pedal, do you get steady % value under Potnom?
User avatar
johu
Site Admin
Posts: 6735
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 378 times
Been thanked: 1559 times
Contact:

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by johu »

@voti: the screenshots are hard to read. Please just attach the contents of http://192.168.4.1/cmd?cmd=json instead

UdcBelowUdcSw means bus voltage (udc) is smaller than udcsw . So at this point it cannot have been at 0
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

I pressed my pedal and Potnom remained 0% all the time. What changed was the values on pot1 and pot2 the valus kept increasing until they reached 4095 when fully pressed. I could only see the changes of this values by refreshing everything I press harder and harder.

I also changed start and add it a switch rather than having it hooked to 12v all the time.

I also put in a fully charged 12v car battery for my HV input and disconnected the 55w ligjt connected in series with the positive line of the battery.

I still couldn't get the inverter to go into Runmode. I even disconnected the resolver cable but still not going for Runmode. Does it mean my pedal is not correctly configured because like I said, potnom didn't show any reading when the pedal was pressed.?

Below I've attached json files.
Attachments
pedal.resolver.json
(17.02 KiB) Downloaded 12 times
User avatar
johu
Site Admin
Posts: 6735
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 378 times
Been thanked: 1559 times
Contact:

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by johu »

The pedal is not configured correctly. If the dump contains the "not pressed" value then potmin must be 2090. Also you will a series resistor (viewtopic.php?t=5075) but that is for later.
For the current test you can also disconnect it
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

OK. So I swapped pin 3 and 6 and happened to might have happened to get it right for the pedal. I disconnected my resolver because I think that's where the problem is but I'll get to that shorty. I had my inverter in Runmode and the Delta connected light bulbs lit up. When I pressed the pedal, they started blinking and the motor jerked like it did prior. Below I've attached a link to a video of this whole process.

By the way potnom was always on 0 % throught out this test. Is that OK?

Coming to the resolver. Each time I connect it, everything just stops working, the light bulbs turn on but the pedal then stops working and when I press it nothing happens.

I disconnected the HV and tested pins 1 to 5 which are the resolver pins and tested for AC waveforms. I've attached pictures below of these waveforms for each pin. I've also attached a picture of the pins configuration that i also found on other topics.

Please remember that the only parameters I'm putting In are changing udcsw to 0, DefaultForward and adding values on manualid only. Should I still set ocurlim -1 even on the new FOC firmwares updated version that i'm using now ?

Attachments
new pedal config.json
(17.04 KiB) Downloaded 9 times
Screenshot_20250619_170327_Gallery.jpg
Screenshot_20250619_165223_Gallery.jpg
Screenshot_20250619_165230_Gallery.jpg
Screenshot_20250619_165240_Gallery.jpg
Screenshot_20250619_165246_Gallery.jpg
Screenshot_20250619_165250_Gallery.jpg
User avatar
johu
Site Admin
Posts: 6735
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 378 times
Been thanked: 1559 times
Contact:

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by johu »

Yes ocurlim can stay at -1
Have you tried swapping resolver sin and cos input?
Are you still on FOC firmware? The behaviour is a bit unexpected.

Light bulbs are in parallel to motor, right?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

Yes I'm still on the FOC firmware, and yes the ligjt bulbs are in parallel with the motor. Ibhave them connected to monitor output PWM.

If i change resolver sin and cos, should I replace them with the ENC A or B. On the tutorials video, Damien had brown and red for his sin and cos. Is that what you mean?
Attachments
Screenshot_20250617_215936_Gallery.jpg
User avatar
johu
Site Admin
Posts: 6735
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 378 times
Been thanked: 1559 times
Contact:

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by johu »

Swap the brown and the red.
Also try completely disconnecting the phase cables and check if you get a steady 0-360 sawtooth pattern when turning the shaft by hand. Plot setting is burst length 1000, data points 1000
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
voti
Posts: 81
Joined: Wed Oct 02, 2024 12:35 pm
Has thanked: 13 times
Been thanked: 6 times

Re: EV Conversion using prius gen 2 inverter/transaxle

Post by voti »

I swapped and connected the brown and red. On pin 2 I'm reading a straight line and pin 3 nothing. My yellow is still connected to pin 1 and my green is now connected on pin 3

I've also attached pictures of the patterns I got when spinning the motor manually.
I had my resolver disconnected when doing this test.
Attachments
Screenshot_20250620_085647_Gallery.jpg
Screenshot_20250620_085648_Gallery.jpg
Screenshot_20250620_085650_Gallery.jpg
Screenshot_20250620_085652_Gallery.jpg
Screenshot_20250620_084708_Gallery.jpg
Screenshot_20250620_084240_Gallery.jpg
Screenshot_20250620_084237_Gallery.jpg
Post Reply