Shouldn't you see your typed password in the auto-complete list? I didn't make it a "password" field...
Prius Gen2 adapter board development thread
- johu
- Site Admin
- Posts: 6969
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 455 times
- Been thanked: 1771 times
- Contact:
Re: Prius Gen2 adapter board development thread
Haha 
Shouldn't you see your typed password in the auto-complete list? I didn't make it a "password" field...
Shouldn't you see your typed password in the auto-complete list? I didn't make it a "password" field...
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Prius Gen2 adapter board development thread
It shows one digit at a time as you type it in, as is normal. The second I hit "ok", I knew I had fat-fingered something. Once I figure out how to get it on serial comms, I will change the PW again with AT commands and be back up and running!
This is 100% my fault, I should have taken more care in entering the new PW digits, but I was too cavalier about it and screwed myself.
This is 100% my fault, I should have taken more care in entering the new PW digits, but I was too cavalier about it and screwed myself.
Re: Prius Gen2 adapter board development thread
So I couldn't complete my mission to test the battery charging feature. Anyone have a left over buck/boost module (without inductor)? Yes I could just buy another inverter but my space is limited so I'd rather avoid it.
EDIT: whats the temperature curve for the heatsink sensor, anyone got that?
[/quote]
Yes Johu..I have many gen2 prius inverters laying around....want a care package? I am willing to ship for free just tell me what you want
EDIT: whats the temperature curve for the heatsink sensor, anyone got that?
[/quote]
Yes Johu..I have many gen2 prius inverters laying around....want a care package? I am willing to ship for free just tell me what you want
the priustoric boatcar guy
- johu
- Site Admin
- Posts: 6969
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 455 times
- Been thanked: 1771 times
- Contact:
Re: Prius Gen2 adapter board development thread
I have a Prius inverter as well, but I'm too lazy to find the temp curve myself. It's supposed to be in the service manual but I couldn't find that either. So if someone could just post a screenshot that would help.
EDIT: I checked some old mails and found it. Small problem: I forgot the voltage divider so there will only be valid values starting at like 40°C
EDIT again: looks like -30mV per °C. Or -37 digit/°C. So T=167°C - ADC / 37 . Maybe I'll just add a "linear" option for tmphs
More editing: So it seems like the lowest measurable inverter temperature without voltage divider would be 56°C. So maybe it would be a good idea to add a 10k resistor in parallel to C37 to form a 1:2 voltage divider. I will add a hard coded formula in the next firmware that is always used in Prius hardware, i.e. "snshs" becomes meaningless, just like for the Tesla boards.
EDIT: I checked some old mails and found it. Small problem: I forgot the voltage divider so there will only be valid values starting at like 40°C
EDIT again: looks like -30mV per °C. Or -37 digit/°C. So T=167°C - ADC / 37 . Maybe I'll just add a "linear" option for tmphs
More editing: So it seems like the lowest measurable inverter temperature without voltage divider would be 56°C. So maybe it would be a good idea to add a 10k resistor in parallel to C37 to form a 1:2 voltage divider. I will add a hard coded formula in the next firmware that is always used in Prius hardware, i.e. "snshs" becomes meaningless, just like for the Tesla boards.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
RetroZero
- Posts: 945
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 624 times
- Been thanked: 64 times
- Contact:
Re: Prius Gen2 adapter board development thread
Thanks for checking all that Johu.
So for testing purposes, keep inverter cooled below 75°C (real) as to not create temp error.
Whilst waiting on next firmware update, a 10k resistor in parallel with C37 will solve the problem.
Me personally, I'll wait until firmware, even if I need to put iceblocks inside the inverter. Adapter board looks too good to go soldering resistors in addition
So for testing purposes, keep inverter cooled below 75°C (real) as to not create temp error.
Whilst waiting on next firmware update, a 10k resistor in parallel with C37 will solve the problem.
Me personally, I'll wait until firmware, even if I need to put iceblocks inside the inverter. Adapter board looks too good to go soldering resistors in addition
- johu
- Site Admin
- Posts: 6969
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 455 times
- Been thanked: 1771 times
- Contact:
Re: Prius Gen2 adapter board development thread
The firmware is not going to increase the input voltage of the ADC
It will just get you a valid reading in the first place. Without the resistor you only see temperature changing above 56°C.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 6969
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 455 times
- Been thanked: 1771 times
- Contact:
Re: Prius Gen2 adapter board development thread
Just tested it with my Prius power stage and it works. If you install the 10k resistor you can measure down to about 0°C, otherwise it starts at 56°C. At startup it will check once for a voltage > 2.6V and if it sees that it will assume no 10k resistor is installed. It will of course fail to detect that if you start into a hot inverter, i.e. warmer than about 85°C.
- Attachments
-
- stm32_sine.zip
- (67.6 KiB) Downloaded 303 times
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
RetroZero
- Posts: 945
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 624 times
- Been thanked: 64 times
- Contact:
Re: Prius Gen2 adapter board development thread
I wired up everything and got preharge and contact relays working.
I have 4 throttle faults (even with the pedal not connected)... Set potmin and potmin2 to values that are in plot values (when connected) but still the same faults.
Step by step
I have 4 throttle faults (even with the pedal not connected)... Set potmin and potmin2 to values that are in plot values (when connected) but still the same faults.
Step by step
Re: Prius Gen2 adapter board development thread
WHEW! That was not fun, but I got back in 
As we can see, I have messed about some with the parameters trying to get spin. Screenshot is obviously not attempting any output as am not in manual mode and test params are zero.
As we can see, I have messed about some with the parameters trying to get spin. Screenshot is obviously not attempting any output as am not in manual mode and test params are zero.
-
RetroZero
- Posts: 945
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 624 times
- Been thanked: 64 times
- Contact:
Re: Prius Gen2 adapter board development thread
I started with 12v supply.
Boost 37000
Mode Permanent Forward
Fslipspnt 8
Ampnom 75%.
Got light bulbs in delta form to flash, then hooked up MG1
Boost 37000
Mode Permanent Forward
Fslipspnt 8
Ampnom 75%.
Got light bulbs in delta form to flash, then hooked up MG1
- johu
- Site Admin
- Posts: 6969
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 455 times
- Been thanked: 1771 times
- Contact:
Re: Prius Gen2 adapter board development thread
Cliffhanger 
Then what?
Then what?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Re: Prius Gen2 adapter board development thread
Thanks, I will try that as well and verify MSDN on #25.
Re: Prius Gen2 adapter board development thread
the priustoric boatcar guy
-
RetroZero
- Posts: 945
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 624 times
- Been thanked: 64 times
- Contact:
Re: Prius Gen2 adapter board development thread
Nice.
I still have 4 throttle faults. But when I press the pedal, at about 3/4, potnom jumps to 85%.(I set pot values to min and max found in actual values when looking at spot values section) .
And light bulb on hv line starts flashing... Like dead short....
I'm only running on 12 v, I should get some motor spin on that, since it worked in manual mode?
I still have 4 throttle faults. But when I press the pedal, at about 3/4, potnom jumps to 85%.(I set pot values to min and max found in actual values when looking at spot values section) .
And light bulb on hv line starts flashing... Like dead short....
I'm only running on 12 v, I should get some motor spin on that, since it worked in manual mode?
Re: Prius Gen2 adapter board development thread
IT WORKS! Flashing lights AND Jiggling MGR 
MORE POWER!!!!!! "I'm Givin' her all she's got Capt'n"
Answer was provided by JH, I had pin 25 of the Prius Inverter marked for shifter I/O, needs 12v "Run" (Ignition switch, relay, etc) signal.
<edit: Adding settings, hope this helps others>
MORE POWER!!!!!! "I'm Givin' her all she's got Capt'n"
Answer was provided by JH, I had pin 25 of the Prius Inverter marked for shifter I/O, needs 12v "Run" (Ignition switch, relay, etc) signal.
<edit: Adding settings, hope this helps others>
- Attachments
-
- testing
- HIMC Testing1.png (2.99 KiB) Viewed 5966 times
-
- contactor
- HIMC Contactor Control1.png (4.79 KiB) Viewed 5966 times
-
LRBen
- Posts: 584
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 86 times
- Been thanked: 252 times
Re: Prius Gen2 adapter board development thread
Got the delta lights to flash using manual mode. Used the settings that Retrozero used as well as connecting inverter MSDN pin to the 12v supply.
I was expecting each light to flash in series. What I got was all lights flashing at once but at different levels of brightness. Is that the correct outcome?
I was expecting each light to flash in series. What I got was all lights flashing at once but at different levels of brightness. Is that the correct outcome?
-
arber333
- Posts: 3660
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 145 times
- Been thanked: 369 times
- Contact:
Re: Prius Gen2 adapter board development thread
Hm... that would be consistent... you are using incandesent bulbs. I used LEDs so i guess filament doesnt cool down very fast. Maybe you could command it 0.3Hz slip? That should make each light flash 1 second apart. What deadtime are you using?LRBen wrote: ↑Thu Jul 16, 2020 6:55 pm Got the delta lights to flash using manual mode. Used the settings that Retrozero used as well as connecting inverter MSDN pin to the 12v supply.
I was expecting each light to flash in series. What I got was all lights flashing at once but at different levels of brightness. Is that the correct outcome?
A
-
RetroZero
- Posts: 945
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 624 times
- Been thanked: 64 times
- Contact:
Re: Prius Gen2 adapter board development thread
Yeah, that's what I got. Good to see another 12v start up in progress. 
I didn't touch deadtime. Left it as I found it. Don't have values with me, but I think it was 26...
I didn't touch deadtime. Left it as I found it. Don't have values with me, but I think it was 26...
-
LRBen
- Posts: 584
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 86 times
- Been thanked: 252 times
Re: Prius Gen2 adapter board development thread
Using 0 deadtime. Tried it again at 0.3Hz slip. Now they all flash at the same time in one second intervals.
-
arber333
- Posts: 3660
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 145 times
- Been thanked: 369 times
- Contact:
Re: Prius Gen2 adapter board development thread
You may want to use Deadtime 160 to start with. Remember Damiens gen3 destruction story?
It is just empty space between pulses. If it is too wide it doesnt hurt. If it is too short on other hand...
A
-
LRBen
- Posts: 584
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 86 times
- Been thanked: 252 times
Re: Prius Gen2 adapter board development thread
I thought the dead time was only needed on the Gen 3 inverter?
-
RetroZero
- Posts: 945
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 624 times
- Been thanked: 64 times
- Contact:
Re: Prius Gen2 adapter board development thread
Yeah, I remember those 2 videos like it was yesterday. From what I understand, gen 2 only switches one side, but I'll give it a go when I can get back to my project...off to a wedding for the weekend
. I want spinning MG1!
-
arber333
- Posts: 3660
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 145 times
- Been thanked: 369 times
- Contact:
Re: Prius Gen2 adapter board development thread
Ah... i am not sure really. Maybe not. But what does it hurt to try?
Hm... on the other hand i remember gen2 has all low transistors switched on and all high transistors off when at standstill? Then your current would really flow directly through the delta connection. Maybe what you need is a Y connection. Then connect all bulbs like that...
But that would mean any 2 bulbs would be on at a time...
Better try with a simple ACIM motor...
-
LRBen
- Posts: 584
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 86 times
- Been thanked: 252 times
Re: Prius Gen2 adapter board development thread
I'll hook up an ACIM over the weekend. Seems like progress anyway.
- johu
- Site Admin
- Posts: 6969
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 455 times
- Been thanked: 1771 times
- Contact:
Re: Prius Gen2 adapter board development thread
No we are on a gen2 here. The lower channels remain unused, the power stage creates its own deadtime. Leave it at 0 or it will distort your waveform.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9