Gen 3 inverter converter control software

Topics concerning the Toyota and Lexus inverter drop in boards
Post Reply
180jacob
Posts: 45
Joined: Thu Nov 12, 2020 10:55 pm
Location: South West UK

Re: Gen 3 inverter converter control software

Post by 180jacob »

Bigpie wrote: Mon Feb 15, 2021 1:20 pm I'll not be using it unless someone comes up with a neat way of using it on single phase on packs the > 340VDC batteries, as that is beyond my ability.
I'm in the same boat with a battery voltage that is above rectified single phase when full and below when empty. My plan is to fit an extra igbt or mosfet (or reuse the high side one) and diode to the low voltage side of the converter to make what is generally called a 2 switch buck boost. This should be able to both buck and boost in one direction but wont be able to do either in the other. This is kind of on the limits of my ability at the moment but the reason I'm here is to learn so I'm not surrendering to the outlander solution for the moment.
Inverters may be harmed in the development process but its a worthy cause.
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Gen 3 inverter converter control software

Post by Bigpie »

:D I'll wait until there's a wake of dead inverters in your dust and copy the working solution. Until then the outlander will do.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
NiHaoMike
Posts: 64
Joined: Mon Dec 02, 2019 4:11 am
Location: Austin, TX
Been thanked: 1 time
Contact:

Re: Gen 3 inverter converter control software

Post by NiHaoMike »

You could use a SCR to phase angle cut the AC voltage as needed, then bypass with a contactor to eliminate the losses. Main downside is slower charging at lower pack voltage due to lower power factor.
My first solar power system helped Naomi Wu, now I want to do even more with DIY solar.
User avatar
rstevens81
Posts: 349
Joined: Sun Dec 22, 2019 10:36 am
Location: Bristol, UK
Has thanked: 21 times
Been thanked: 91 times

Re: Gen 3 inverter converter control software

Post by rstevens81 »

NiHaoMike wrote: Tue Feb 16, 2021 10:56 pm You could use a SCR to phase angle cut the AC voltage as needed, then bypass with a contactor to eliminate the losses. Main downside is slower charging at lower pack voltage due to lower power factor.
in practical terms this will be just use a a leading edge dimmer combined in parralell with a trailing edge dimmer switch then use a relay on the ac side to switch between bypass and dimmer.
Rule 1 of EV Club is don't buy a rust bucket....
Which rule does everyone forget 🤪
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

And no matter what I do the parameters don't appear(((((((((! There may be an error in the files that I downloaded(source files) . Please, friend, reload the files in the storage))) I really want to connect electricity to the inverter already )))
Attachments
17B620F2-A71B-42B6-B14F-DCAB6A05C803.jpeg
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Gen 3 inverter converter control software

Post by Bigpie »

The parameters appear to be there in the screenshot.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

In your screenshot there is )))) on my no(((( I'm upset(((
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: Gen 3 inverter converter control software

Post by Jack Bauer »

First want to say a big thanks to Bigpie and the others working on this. Has came a long way in a short time:) So I'm spending a few days watching batteries charge and I'm planning to use this system for charging in the Blue Yacht so thought I'd have a go.

1)Uploaded the firmware on the 328p. Seeing data coming out over serial terminal. all good here.
2)Got my head around platformio and uploaded webinterface to a d1mini. again all good here.
3)When all connected together no parameters as Leo has observed so did some digging.

Using an ftdi cable I could see no data arriving from the 328p at the pins of the D1. Removing resistors R86 and R96 and shorting them out showed data at the D1 and indeed blue text started apearing on the web interface log area but still no paramaters. verified the word "params" getting to the rx pin on the 328p but no response.

Board I'm using is an old rev auris and the d1 load was pulling the 5v rail down to 4.4v so powered the d1 from an external source. Bit better but the 328p still hangs up after a minute or so. Decided to decouple the whole thing from the logic board and loaded the code on an arduino due and connected the d1. Now the 328p does not hang but obviously throws errors in the serial data as no current sensors or can etc. Anyway, can now see the 328p respond to the "params" request but the parameters are not populating on the web interface.

Here is a serial capture :

Code: Select all

{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 258, 252 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 259, 255 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 257, 259 (out of range)
{DEBUG} Waiting for EVSE CP PWM (set force_ac_input_amps if you don't have EVSE)
{STARTCOMMAND}
{
"min_input_voltage_V": { "type": "number", "value":300},
"battery_charge_voltage_V": { "type": "number", "value":300},
"precharge_voltage_V": { "type": "number", "value":550},
"precharge_boost_enabled": { "type": "bool", "value":1},
"canbus_enabled": { "type": "bool", "value":1},
"mg1_current_amp_per_bit": { "type": "number", "value":1.00},
"dc1_volt_per_bit": { "type": "number", "value":0.56},
"dc1_volt_offset": { "type": "number", "value":74},
"dc2_volt_per_bit": { "type": "number", "value":1.23},
"dc2_volt_offset": { "type": "number", "value":0}}
{ENDCOMMAND}
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 265, 259 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 260, 254 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 273, 266 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 285, 278 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 287, 282 (out of range)
{DEBUG} Waiting for EVSE CP PWM (set force_ac_input_amps if you don't have EVSE)
{DEBUG} Calibrating current sensor zero offsets...

So some hardware debugging needed from me but still not sure why the parameters are not populating assuming the response above is correct.
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Gen 3 inverter converter control software

Post by Bigpie »

I've pushed an update to my clone of prius3charger_buck, give that a whirl.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Great! Let's try it now))) the main thing is that the problem is hidden there ))) It's good that Demian also joined this topic... maybe together we will overcome this topic as a team ...)))
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Yes!!!!!!!! There are parameters! Thank You, Bigpie!!👍
Attachments
BB0F3B6A-42BD-49D0-92E1-E57B62D6EE90.jpeg
01703BF2-5680-446F-AE27-EEE44FF5B41B.jpeg
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Resistors r86 r96 do not need to be removed ... they are needed for the decoupling.
Attachments
C2B4A7DC-B20E-407E-8035-102CFFA99B8D.jpeg
C678CFC8-12A3-4961-8256-9E84B7BE16B7.jpeg
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Parameters are not always loaded ((you need to refresh the browser page several times((( saving parameters also raises questions... I think Bigpie did a great job , we still need to refine the script....
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Reset atmega where do we connect to the esp ?
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Gen 3 inverter converter control software

Post by Bigpie »

D2
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

D2 atmega esp ?
Attachments
0E94E689-3D4C-49E1-BDC6-8E187E505B2E.jpeg
6B1B4031-BC15-46C0-ABD6-B90BE0020852.jpeg
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Gen 3 inverter converter control software

Post by Bigpie »

D2 on the esp to rst on the atmega
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Ок 😀
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Friends! Who will earn this topic-shoot a video and let us know on the forum. I will also write if it works...)))
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Hello everyone I have nothing worked yet (((the parameters are there - there is no work! There is no calibration of current sensors! Did it work at all or not?
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Gen 3 inverter converter control software

Post by Bigpie »

Mine calibrate now, I did have an issue with one of the resistors needing replacing. Paste your output here.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

without current sensors....
Attachments
36680A8F-26BB-4EFF-A4B4-2B5B9167CC68.jpeg
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

With sensors connected... after connecting the sensors, the parameters in the interface disappear and appear only after the atmega reset (((
Attachments
C788BECA-DCCE-4D08-9F2C-D0CE55150326.jpeg
9C35400B-85F2-4803-AAA3-5AA1F3EA338F.jpeg
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

Resistor 4.7 Kom ?
Leo M
Posts: 88
Joined: Fri Oct 30, 2020 9:48 am
Been thanked: 2 times

Re: Gen 3 inverter converter control software

Post by Leo M »

4.7k/4.7k———10k/10k ?
Attachments
D0C5577C-2C7A-44D5-B6E4-F22D0D928D51.jpeg
Post Reply