Prius Gen2 adapter board development thread
- 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
So during tuning you must be in manual mode and entering values on the web interface not using throttle control.
I'm going to need a hacksaw
Re: Prius Gen2 adapter board development thread
okay, thanks for being there D will comply
the priustoric boatcar guy
Re: Prius Gen2 adapter board development thread
so, is the goal the get the motor to spin at the lowest id and iq current entered manually or is the goal to get the syncoffset for the least jerky motor movement? you mentioned the pinswap firmware..did we decide it was okay, or do I need to experiment with hardware phases?
I seem to have a false peak at both syncoffset in the 60k range and again at the 22k range, and i cant help but fiddle with pwm swap and noticed no real difference in how the motor behaves. and I can hear the throttle changing the performance when in the 60k range and in fact the motor will swap directions randomly as I fiddle with throttle.
can anyone suggest a method to ( read, scope, measure or calibrate )? syncoffset or any other phase related measurement
I seem to have a false peak at both syncoffset in the 60k range and again at the 22k range, and i cant help but fiddle with pwm swap and noticed no real difference in how the motor behaves. and I can hear the throttle changing the performance when in the 60k range and in fact the motor will swap directions randomly as I fiddle with throttle.
can anyone suggest a method to ( read, scope, measure or calibrate )? syncoffset or any other phase related measurement
the priustoric boatcar guy
Re: Prius Gen2 adapter board development thread
I almost hate to ask this, but should il1&2 be negative since we are pushing electrons backwards as opposed to the "normal" direction? Or does the "system" think of regen as "+ and battery depletion as "-"... OR, is this simply a question of accurate magnitude ????
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- 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
Ok. This ain't working. How about we do a google hangout or similar and I'll talk you all through it.
I'm going to need a hacksaw
-
- 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
il1 and il2 are measuring phase currents. Since you're outputting AC, the currents swing from positive to negative. It's mostly magnitude, but if I remember correctly you might have to reverse the sign of il1 and il2 to make the FOC algorithm happy (don't quote me on that please).
-Isaac
-Isaac
Re: Prius Gen2 adapter board development thread
im in. will make myself avail when you tell me.
FYI Im eastern time zone USA
I will need to learn how to do google hangout but I think no problem
may I propose tomorrow?
FYI Im eastern time zone USA
I will need to learn how to do google hangout but I think no problem
may I propose tomorrow?
the priustoric boatcar guy
- 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
Isaac, that was my point, we are running DC "backwards" thru one leg to calibrate the sensors. Should we expect a positive or negative value, IF that matters.Isaac96 wrote: ↑Tue Jul 28, 2020 7:51 pm il1 and il2 are measuring phase currents. Since you're outputting AC, the currents swing from positive to negative. It's mostly magnitude, but if I remember correctly you might have to reverse the sign of il1 and il2 to make the FOC algorithm happy (don't quote me on that please).
-Isaac
If my entry level understanding would be permitted, I too would be in for a Google meet as I am always open to Educational opportunities.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 4 times
Re: Prius Gen2 adapter board development thread
Can you guys update this thread and the wiki once you get your issues resolved? It's important that we understand why you're having such problems so that we can help avoid them in the future.
Many thanks.
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
-
- 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
Right, sorry, I misunderstood the question. FOC might care, the slip control doesn't.ZooKeeper wrote: ↑Tue Jul 28, 2020 9:05 pmIsaac, that was my point, we are running DC "backwards" thru one leg to calibrate the sensors. Should we expect a positive or negative value, IF that matters.Isaac96 wrote: ↑Tue Jul 28, 2020 7:51 pm il1 and il2 are measuring phase currents. Since you're outputting AC, the currents swing from positive to negative. It's mostly magnitude, but if I remember correctly you might have to reverse the sign of il1 and il2 to make the FOC algorithm happy (don't quote me on that please).
-Isaac
If my entry level understanding would be permitted, I too would be in for a Google meet as I am always open to Educational opportunities.
Have you tried making il1gain and il2gain negative?
(also you quoted me... how dare you )
Hopefully once someone has this system working we as a community can draft some documentation?
-Isaac
Re: Prius Gen2 adapter board development thread
update, ac clamp ammeter on the U, V, And W wires to the motor during operation show 17 amps on two of them and almost zero on the U phase pin 31 of the board.
I would have expected much fewer amps based on how the equipment is sounding, and also all of them to be the same.
scoping the signal on pins 29,30 and 31 shows no pwm signal on pin 31 like the others.
however there is a signal going to the uln2003 driver IC and nothing coming out , even when that channel is unloaded.
looks like ive got a bad driver IC.
I would have expected much fewer amps based on how the equipment is sounding, and also all of them to be the same.
scoping the signal on pins 29,30 and 31 shows no pwm signal on pin 31 like the others.
however there is a signal going to the uln2003 driver IC and nothing coming out , even when that channel is unloaded.
looks like ive got a bad driver IC.
the priustoric boatcar guy
Re: Prius Gen2 adapter board development thread
I'd greatly appreciate it as well. Thanks for the offer!
Re: Prius Gen2 adapter board development thread
amazon says my replacement driver IC will be here the 30th.
Im working simultaneously on a nissan leaf EV boat, Ill get the test jig connected this morning.
two new vids coming now. https://youtu.be/SEfrh-gR1xg
this is the only one I will put here about nissan. apologies for not on topic
Im working simultaneously on a nissan leaf EV boat, Ill get the test jig connected this morning.
two new vids coming now. https://youtu.be/SEfrh-gR1xg
this is the only one I will put here about nissan. apologies for not on topic
the priustoric boatcar guy
- 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
the uln2003 is not a push pull driver so you would need to connect a small load like a resistor to see its output change
I'm going to need a hacksaw
Re: Prius Gen2 adapter board development thread
okay, can do easily. did try a second inverter already.
edit, just added a 470 ohm to ground..retested, still no signal.
its okay, a new driver will be here soon, and I can change it.
I have not dropped or shorted wires and there are no poor splices exposed, but I own the statistical probability that It was damaged in my care.
if I figure out what happened I will share.
edit, just added a 470 ohm to ground..retested, still no signal.
its okay, a new driver will be here soon, and I can change it.
I have not dropped or shorted wires and there are no poor splices exposed, but I own the statistical probability that It was damaged in my care.
if I figure out what happened I will share.
the priustoric boatcar guy
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 4 times
Re: Prius Gen2 adapter board development thread
The resistor must go from the ULN2003 output pin to 12V. If you connect the output pin to ground via a resistor then nothing will happen.
It's unlikely the driver chip is damaged. Check the connector pin soldering (no disrespect intended but some of the soldering looks 'suspect' in the video), connector pins, and the wiring loom carefully because that's the most likely problem here.
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
- SciroccoEV
- Posts: 369
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 15 times
Re: Prius Gen2 adapter board development thread
The ULN2003 is an open collector Darlington transistor array.
Re: Prius Gen2 adapter board development thread
yeah, it looks that way because I already revisited the soldering when it was not working.Kevin Sharpe wrote: ↑Wed Jul 29, 2020 3:01 pmThe resistor must go from the ULN2003 output pin to 12V. If you connect the output pin to ground via a resistor then nothing will happen.
It's unlikely the driver chip is damaged. Check the connector pin soldering (no disrespect intended but some of the soldering looks 'suspect' in the video), connector pins, and the wiring loom carefully because that's the most likely problem here.
the priustoric boatcar guy
Re: Prius Gen2 adapter board development thread
amazon sent DIP instead of SOP package. had to reorder 2003 drivers. ( the side project with the nissan leaf driver worked practically out of the box)
the priustoric boatcar guy
-
- Posts: 720
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 317 times
- Been thanked: 40 times
- Contact:
Re: Prius Gen2 adapter board development thread
St Nucleo board finally arrived today.....I will attempt to reload firmware this week end. Am I correct in thinking that the firmware is flashed via Nucleo?
RX and TX outputs on Nucleo connect directly to RX and TX of original ESP wifi module pins? Or do I need to flash directly via MCU TMS and TCK?
-
- 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
I hope you're flashing firmware to the STM32 chip?RetroZero wrote: ↑Fri Jul 31, 2020 5:11 pm St Nucleo board finally arrived today.....I will attempt to reload firmware this week end. Am I correct in thinking that the firmware is flashed via Nucleo?
RX and TX outputs on Nucleo connect directly to RX and TX of original ESP wifi module pins? Or do I need to flash directly via MCU TMS and TCK?
If so, there is 1 thread and 1 PDF you'll need to use the Nucleo's ST-Link:
viewtopic.php?f=2&t=6
Page 19 or so here: https://www.st.com/resource/en/user_man ... ronics.pdf
-Isaac
-
- Posts: 472
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 42 times
- Been thanked: 100 times
Re: Prius Gen2 adapter board development thread
Had some success getting the Outlander motor spinning with the inverter!
Did the IL1 and IL2 current sensor calibration using a light bulb as a current limiter through the respective phase wires. Set syncoffset to 15000 as starting point from the Outlander motor thread.
With a 3A ID it runs in manual mode as shown on this video. Not sure if that is smooth or not since I have not seen this motor run on manual mode before. I will hook up the throttle tomorrow and hopefully see some smoother starts and stops.
Battery BMS showed a 3.5 amp drain on the battery so it seems pretty similar.
This is running at 48v. I hooked the inverter up to my Quad bike battery so that I could use the precharge system in that. It's also the only battery I have at the moment higher than 12v.
Video
Did the IL1 and IL2 current sensor calibration using a light bulb as a current limiter through the respective phase wires. Set syncoffset to 15000 as starting point from the Outlander motor thread.
With a 3A ID it runs in manual mode as shown on this video. Not sure if that is smooth or not since I have not seen this motor run on manual mode before. I will hook up the throttle tomorrow and hopefully see some smoother starts and stops.
Battery BMS showed a 3.5 amp drain on the battery so it seems pretty similar.
This is running at 48v. I hooked the inverter up to my Quad bike battery so that I could use the precharge system in that. It's also the only battery I have at the moment higher than 12v.
Video
-
- Posts: 264
- Joined: Fri Apr 12, 2019 10:42 pm
- Location: Adelaide, South Australia
- Has thanked: 59 times
- Been thanked: 48 times
Re: Prius Gen2 adapter board development thread
If you have not had the session yet, i would like to watch this as well thank youJack Bauer wrote: ↑Tue Jul 28, 2020 7:49 pm Ok. This ain't working. How about we do a google hangout or similar and I'll talk you all through it.