Page 24 of 33

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jun 06, 2021 9:11 am
by Berdi
Отличная работа ! წარმატებები ! :)

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jun 06, 2021 9:49 am
by mikmur
Berdi wrote: Sun Jun 06, 2021 9:11 am Отличная работа ! წარმატებები ! :)
გმადლობთ :)

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jun 06, 2021 2:32 pm
by OdArowGUsir
Wow, technologically advanced. Neat jumpers. I almost put the drive cut and through the rubber couplings connected to the overrunning bearings one-sided 2 pieces for each drive. soon I'll show you a photo, all-wheel drive hubs and external shruy I already put on the Toyota Avalon front-wheel drive from the Lexus RX400h all-wheel drive. The rear brake discs are also slightly larger by 3-4 cm in diameter. But everything came up, just a little bit of traction on the rear wheels lengthened, as the car rose a little, that's how it should be. and now putting my 80 kg batteries and charging, the BMS and the body of another 20 kg, will be just the clearance, even higher than the standard, well, as I need.
who knows this BMS from Ford Fusion Energy how to connect? or what BMS to put?

Ого, технологично. Аккуратные перемычки. Я почти поставил привода разрезанные и через резиновые муфты соединил с обгонными подшипниками односторонними по 2 штуки на каждый привод. скоро фото покажу, ступицы полноприводные и внешние шруы я уже поставил на Тоету Авалон переднеприводную от Лексус RX400h полноприводного. Диски тормозные задние тоже немного больше на 3-4 см в диаметре. Но все подошло, только немного тяги на задних колесах удлиннил, так как машина немного поднялась, вот так как и нужно. и теперь поставив мои аккумуляторы 80 кг и зарядку, БМС и корпус еще 20 кг, будут как раз по клиренсу, даже выше стандарта, ну как мне и нужно.
кто знает этот БМС от Форд Фьюжн Энерджи как подключить? или какой БМС поставить?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jun 27, 2021 9:36 pm
by Bigpie
konstantin8818 wrote: Mon Aug 17, 2020 9:32 am Ok. Firmware 4.87R-FOC. Set pinswap 10.
Is pinswap 10 the correct setting? I've got it at 8.

I'm having trouble getting the motor to spin again, just whining. Resolver feedback still looks good.



Don't remember changing anything since been able yo drive slowly, other than now at full voltage.

EDIT
Nevermind, just checked the code, 10 and 8 both will do PWM23 swap, where as 10 will also swap resolver sin and cos, doubt that's my issue.

EDIT AGAIN
works today with no changes :S

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Wed Jun 30, 2021 10:27 am
by bobby_come_lately
Got the inverter installed in the car with the Outlander motor (same as @Bigpie) and two BMW PHEV modules (~114V together). Turning the wheels manually with the car in gear gives me decent resolver readings.

In Run mode a little throttle produces inverter whine and the motor tries to turn the wheels. I assumed syncofs needed tweaking.

But in manual mode I didn't get any whine when adding manualid. And when I dug a little deeper, my current readings seemed to be all over the place.

See image attached which shows idc, il1, il2 and id in manual mode with zero manualid applied. Apologies for poor image quality.

I'm guessing some issue with current sensors? Will be checking voltage supply and continuity but any other pointers very welcome.

For reference I've also posted plot from run mode with and without a little throttle (the more consistent readings are with throttle applied).

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Jul 03, 2021 3:21 pm
by bobby_come_lately
Following up on my last post, I've swapped out my boards for a spare which had better readings on the -5V. I've installed a bulb again for testing. But still can't get manual run to work.

I can spin the wheels (slowly) in run mode, and with the the lamp connected, that lights up when the pedal is pressed (albeit not very much and it doesn't seem to get brighter as the pedal is depressed). But when I put it in manual run and add some manualid, nothing happens. No whine, no lamp.

Any suggestions welcome.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Jul 03, 2021 3:43 pm
by m.art.y
bobby_come_lately wrote: Sat Jul 03, 2021 3:21 pm Following up on my last post, I've swapped out my boards for a spare which had better readings on the -5V. I've installed a bulb again for testing. But still can't get manual run to work.

I can spin the wheels (slowly) in run mode, and with the the lamp connected, that lights up when the pedal is pressed (albeit not very much and it doesn't seem to get brighter as the pedal is depressed). But when I put it in manual run and add some manualid, nothing happens. No whine, no lamp.

Any suggestions welcome.
When you put the inverter in manual run did you have the direction chosen to forward?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Jul 03, 2021 3:55 pm
by bobby_come_lately
I did. Should I not?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Jul 03, 2021 7:07 pm
by m.art.y
bobby_come_lately wrote: Sat Jul 03, 2021 3:55 pm I did. Should I not?
You should, wondered if you were not putting it into forward direction. Johannes inverter will not produce any pwm if direction is not chosen including manual run mode. Do you get any error codes at all? Can you share your settings? Has this inverter experienced a short circuiting event on the -5/5v line? If you suspect current sensors are damaged that might be how it happened. Did you ever change firmware/settings/wiring including phase wiring order since the last time you had ir properly running?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Jul 03, 2021 8:03 pm
by bobby_come_lately
m.art.y wrote: Sat Jul 03, 2021 7:07 pm
bobby_come_lately wrote: Sat Jul 03, 2021 3:55 pm I did. Should I not?
You should, wondered if you were not putting it into forward direction. Johannes inverter will not produce any pwm if direction is not chosen including manual run mode. Do you get any error codes at all? Can you share your settings? Has this inverter experienced a short circuiting event on the -5/5v line? If you suspect current sensors are damaged that might be how it happened. Did you ever change firmware/settings/wiring including phase wiring order since the last time you had ir properly running?
Lots to think about - thank you. Short answers at half time in the football:

- No error codes
- No short circuit event on those lines that I can think of. Trying to borrow a spare inverter to test that
- Settings have probably changed - and hardware now. Was nervous about doing much FOC testing before the motor was hooked up to something so this is really first proper testing. But manual run definitely worked before.
- I've largely been using @Bigpie's settings from the parameter database so they're pretty consistent https://openinverter.org/parameters/view.html?id=18. From these I've changed syncofs, udcgain, and pot settings.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jul 04, 2021 8:26 am
by bobby_come_lately
Right, mucking around again this morning and tried downgrading firmware from 5.05 to 4.96. Instantly, everything worked:
- manual mode worked as it should, could hear inverter whine straight away and current readings were responsive
- throttle response in run mode with syncofs set was exactly as it should be

My daughter and I are absolutely buzzing now. Can't wait to get this thing on the road.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jul 04, 2021 6:20 pm
by james@N52E01
Fantastic result, very well done! Amazing to see the wheels spin. Did you ever get to the bottom of what was causing the resolver reading to continually peak and trough?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jul 04, 2021 7:45 pm
by bobby_come_lately
I think I just had it wired wrong. I've added a load of detail to the motor page on the wiki now that I know I have it right, including references to the original loom wiring colours and where it connects on the OI boards.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Mon Jul 05, 2021 10:40 pm
by Dylan Witt
jack.. what would you need to be able to make a control board for the avalon inverter? 2015 model, i could possibly ship the control board to you, or even buy you a inverter and ship it to you. i would really like to be able to use this inverter for a higher amperage application. since it has larger mosfets for the generator

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Jul 18, 2021 2:31 pm
by Bigpie
If Mr Toyota decides I'm too hot and wants a rest, does the error get reported to the little Joannes inside or does the inverter just sit down?

Edit:
Found a response from JB a few pages back, I've started a FAQ section on the wiki so details like this can be added.

"basically yes. I linked the toyota driver error signals to the brkin pin on the stm32 so when Mr.toyota gets angry the Johannes brain stops making pwm:)"


So if the inverter has an error signal, Johannes thinks the brake is pressed and stops PWM'ing.

My din_brk is off so this doesn't seem to be my issue.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Mon Jul 19, 2021 8:06 pm
by Bigpie
Guess who was doing it wrong?
20210719_210148.jpg
Missing bolts on the lower phase connections will cause intermittent working motor.
9 times out of 10, user error :D

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Tue Jul 20, 2021 7:24 am
by Jack Bauer
If Mr.Toyota gets angry it shuts down the inverter board via the break_in not brake_in:) Break_in is the hardware shutdown to the pwm timer. I've done that little trick with the missing bolts myself:)

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Tue Jul 20, 2021 9:02 am
by Bigpie
Glad it's not just me :D
Just looking in to this further for curiosity, PB12/TIM1_BKIN pin looks to be Pin::bk_in

Code: Select all

   if (hwRev == HW_REV1 || hwRev == HW_BLUEPILL)
   {
      //If break pin is high and both mprot and emcystop are high than it must be over current
      if (DigIo::Get(Pin::emcystop_in) && DigIo::Get(Pin::mprot_in) && DigIo::Get(Pin::bk_in))
      {
         Param::SetInt(Param::din_ocur, 0);
      }
      else
      {
         Param::SetInt(Param::din_ocur, 1);
      }
      Param::SetInt(Param::din_desat, 2);
   }

This is the only code I've found for bk_in, doesn't seem to be used.

Code: Select all

extern "C" void tim1_brk_isr(void)
{
   if (!DigIo::Get(Pin::desat_in) && hwRev != HW_REV1)
      ErrorMessage::Post(ERR_DESAT);
   else if (!DigIo::Get(Pin::emcystop_in) && hwRev != HW_REV3)
      ErrorMessage::Post(ERR_EMCYSTOP);
   else if (!DigIo::Get(Pin::mprot_in))
      ErrorMessage::Post(ERR_MPROT);
   else //if (ocur || hwRev == HW_REV1)
      ErrorMessage::Post(ERR_OVERCURRENT);

   timer_disable_irq(PWM_TIMER, TIM_DIER_BIE);
   Param::SetInt(Param::opmode, MOD_OFF);
   DigIo::Set(Pin::err_out);
   tripped = true;
}
The ISR doesn't do anything with bk_in, probably a question more for the firmware than gen 3 specific. I'm assuming Mr Toyota will not drive the IGBT's anyway.

*EDIT* It does disable the PWM in the ISR and change mode to off and sets error flag, but doesn't set an error message. Good to get more familiar with more of the software.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Wed Jul 21, 2021 3:07 pm
by Bigpie

Running again.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Wed Jul 21, 2021 7:20 pm
by james@N52E01
She’s alive!

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Jul 22, 2021 11:45 pm
by invokeperformance
Can someone help me determine what could cause HICUROFS2 error and complete FULL battery current injection when a throttle input is given. The inverter current sensors are working properly when I switch V1c boards with the same FOC parameters the inverter functions with full control. I also verified the MG1 and MG2 sensor connectors are properly soldered and all voltage rails have correct voltage levels. Thanks

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Jul 22, 2021 11:59 pm
by invokeperformance
is 3.273v acceptable deviation on the C32 3.3v supply? I also have -4.95V on Connector 7 (mg2 current sensor ). Could this voltage difference be the cause for the HICUROFS2 error?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Jul 23, 2021 6:36 am
by bexander
When looking in the link below it seem like your current sensor feedback is outside limits. When getting this error, do you have the current sensors connected? If not, try and connect them. If the current sensors are connected, measure the voltage across C57 resp. C59. That is the current feedback voltages.
https://openinverter.org/wiki/Errors

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Jul 23, 2021 1:55 pm
by invokeperformance
bexander wrote: Fri Jul 23, 2021 6:36 am When looking in the link below it seem like your current sensor feedback is outside limits. When getting this error, do you have the current sensors connected? If not, try and connect them. If the current sensors are connected, measure the voltage across C57 resp. C59. That is the current feedback voltages.
https://openinverter.org/wiki/Errors
The current sensors were connected and the board was fully installed in the inverter when I got the error messages. I will check the voltage across C57 and C59 and let you know what I find what voltage should they read?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Jul 23, 2021 8:10 pm
by bexander
invokeperformance wrote: Fri Jul 23, 2021 1:55 pm
bexander wrote: Fri Jul 23, 2021 6:36 am When looking in the link below it seem like your current sensor feedback is outside limits. When getting this error, do you have the current sensors connected? If not, try and connect them. If the current sensors are connected, measure the voltage across C57 resp. C59. That is the current feedback voltages.
https://openinverter.org/wiki/Errors
The current sensors were connected and the board was fully installed in the inverter when I got the error messages. I will check the voltage across C57 and C59 and let you know what I find what voltage should they read?
Quoted from the error message page:
"Current channel 1 or 2, respectively, is below 1.23 or above 2.06V when no current is flowing. Check wiring and voltage dividers."
So if between 1.23 and 2.06V it is good, outside means error.