Page 7 of 12

Re: Gen 3 inverter converter control software

Posted: Mon Feb 15, 2021 5:50 pm
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.

Re: Gen 3 inverter converter control software

Posted: Mon Feb 15, 2021 6:24 pm
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.

Re: Gen 3 inverter converter control software

Posted: Tue Feb 16, 2021 10:56 pm
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.

Re: Gen 3 inverter converter control software

Posted: Wed Feb 17, 2021 5:01 am
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.

Re: Gen 3 inverter converter control software

Posted: Wed Feb 17, 2021 7:36 pm
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 )))

Re: Gen 3 inverter converter control software

Posted: Wed Feb 17, 2021 8:07 pm
by Bigpie
The parameters appear to be there in the screenshot.

Re: Gen 3 inverter converter control software

Posted: Thu Feb 18, 2021 4:48 am
by Leo M
In your screenshot there is )))) on my no(((( I'm upset(((

Re: Gen 3 inverter converter control software

Posted: Thu Feb 18, 2021 4:04 pm
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.

Re: Gen 3 inverter converter control software

Posted: Thu Feb 18, 2021 6:28 pm
by Bigpie
I've pushed an update to my clone of prius3charger_buck, give that a whirl.

Re: Gen 3 inverter converter control software

Posted: Thu Feb 18, 2021 8:01 pm
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 ...)))

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 5:31 am
by Leo M
Yes!!!!!!!! There are parameters! Thank You, Bigpie!!πŸ‘

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 5:43 am
by Leo M
Resistors r86 r96 do not need to be removed ... they are needed for the decoupling.

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 7:00 am
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....

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 9:43 am
by Leo M
Reset atmega where do we connect to the esp ?

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 10:29 am
by Bigpie
D2

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 11:12 am
by Leo M
D2 atmega esp ?

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 11:16 am
by Bigpie
D2 on the esp to rst on the atmega

Re: Gen 3 inverter converter control software

Posted: Fri Feb 19, 2021 11:20 am
by Leo M
Ок πŸ˜€

Re: Gen 3 inverter converter control software

Posted: Sat Feb 20, 2021 10:34 am
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...)))

Re: Gen 3 inverter converter control software

Posted: Sun Feb 21, 2021 9:26 am
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?

Re: Gen 3 inverter converter control software

Posted: Sun Feb 21, 2021 10:37 am
by Bigpie
Mine calibrate now, I did have an issue with one of the resistors needing replacing. Paste your output here.

Re: Gen 3 inverter converter control software

Posted: Sun Feb 21, 2021 10:59 am
by Leo M
without current sensors....

Re: Gen 3 inverter converter control software

Posted: Sun Feb 21, 2021 11:02 am
by Leo M
With sensors connected... after connecting the sensors, the parameters in the interface disappear and appear only after the atmega reset (((

Re: Gen 3 inverter converter control software

Posted: Sun Feb 21, 2021 11:33 am
by Leo M
Resistor 4.7 Kom ?

Re: Gen 3 inverter converter control software

Posted: Sun Feb 21, 2021 12:49 pm
by Leo M
4.7k/4.7kβ€”β€”β€”10k/10k ?