Problems during starting Main Board V3

Post Reply
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Problems during starting Main Board V3

Post by Daniel »

Why the displayed current value in the program does not change ?
I give it 5A * (1.5mm² cable 10 times through both sensors) = 50A

20200212_184443.jpg
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

Your procedure looks correct but I think inverter will only be in manual mode briefly because pin JP2.11 is not tied to 12V. Sorry it is not stated in the test procedure I just saw.
So connect pin 11 and verify opmode=2 or ManualRun after you started manual mode
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

I connected pin 11 JP2 to 12V and calibration succeeded
In the next step I calibrated voltage sensor and connected gate driver and IGBT
I connected small engine on 30V to IGBT
When I entered "start 2", the engine does not rotate, I connected (pin 11 and 13 JP2) to 12V
Should I do anything else ?
Maybe connect pin 13 JP3 to 5V ? Why to 5V when max voltage for STM32 inputs is 3,3V
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

JP3.13 is pulled up by R45, no need to connect it. The pin it hooks up to is 5V tolerant.
By small engine you mean asynchronous motor? If so you need stm32_sine.bin not FOC. Calibration will persist.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

Below is a video of the results after several months work

Why the engine has only one speed ?
Why gate driver consume 0.4A ? Is the value correct ?
Resolver consume 0,04A , Is the value correct ?
Should I increase the voltage from 28 V to 52V for IGBT inputs ?
Parameters below
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
User avatar
Jack Bauer
Posts: 3643
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 9 times
Been thanked: 286 times
Contact:

Re: Problems during starting Main Board V3

Post by Jack Bauer »

I can't really tell from the video but do you have a DC link capacitor on the igbts? Please do so if not as without this you run the risk of blowing the power stage.
I'm going to need a hacksaw
kiwifiat
Posts: 99
Joined: Sat Dec 22, 2018 9:39 pm
Location: Vancouver, Canada
Been thanked: 10 times

Re: Problems during starting Main Board V3

Post by kiwifiat »

Your syncofs is set to 0. Did you go through the proceedure for determining the correct value? The motor will not run optimally if you don't.
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

I can't make resolver calibration because engine does not rotate.
I lent oscilloscope, Could you look on pictures below, maybe you will see errors

Device Status (resolver output, resolver disconnected) :
- RUN

R1
R1.jpg
S1 S4
S14.jpg
Device Status (resolver output, resolver connected) :
- RUN

R1
connect resolver.jpg
S1 S4
S1 S4.jpg
S2
S2.jpg
S3
S3.jpg

Device Status (PWM output, disconnected gate drivers) :
- manual mode
- manualid 0,05A

PWM1 TOP - yellow BOT - green
1.jpg
PWM2
2.jpg
PWM3
3.jpg
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

Device Status (PWM output, connected gate drivers with IGBT but high voltage on IGBT is switch off) :
- manual mode
- manualid 0,05A

PWM1
connect 1.jpg
PWM2
connected 2.jpg
PWM3
connected 3.jpg
Device Status (PWM output, connected gate drivers with IGBT but high voltage on IGBT is switch off) :
- manual mode
- manualid 5A

PWM1
1 5A.jpg
PWM2
2 5A.jpg
PWM3
3 5A.jpg
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

Resolver output and feefback looks good, S1S4 is always held at 1.6V.
PWM output seems to try to generate full amplitude. It is a current mode controller so it always increases voltage until current set point is reached. You will only see it doing something useful with motor and some bus voltage connected.

Also read this viewtopic.php?f=2&t=611
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

I connected to IGBT 58V, but engine doesn't rotate
In the past, the engine rotated at one speed as see in the film at the top.
So If PWM is ok, maybe IGBT or Gate Driver is damaged
Below picture and link, how I connected IGBT to Gate Driver
viewtopic.php?f=4&t=404&p=4498#p4498
20200119_205903.jpg
I made measurements at the Gate Driver outputs

Device Status (Gate Driver output, connected IGBT) :
- manual mode
- manualid 0,00A
3 ill.png
3 ill.png (11.28 KiB) Viewed 5977 times
Device Status (Gate Driver output, connected IGBT) :
- manual mode
- manualid 0,05A
Phase 1, TOP - yellow BOT - green
1 faza.png
Phase 2
2 faza.png
Phase 3
3 faza yelow top.png
Device Status (Gate Driver output, disconnected IGBT) :
- manual mode
- manualid 0,05A
Phase 1, TOP - yellow BOT - green
1 fza odłacz.png
Phase 2
2 faza odł.png
Phase 3
3 faza poprawka odłaczone.png
arber333
Posts: 3557
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 133 times
Been thanked: 331 times
Contact:

Re: Problems during starting Main Board V3

Post by arber333 »

I noticed some obvious things...
You really need to twist the GE wires to make a differential connection.
Also keep the wires as short as possible. I keep GE wires under 10cm length.
Use snubber caps directly on Igbts with higher voltage.

And if you want to use 400V and serious power you want to invest in protected driver set. I have seen too much fireballs with that general driver set. Maybe the only thing I didn't see them make a bang in my car was a charger.

Did you change something while connecting resolver or phase wires. Remember resolver determins position and direction by quadrant. So if you swapped phase wires from last time it will not work.
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

I did not change something while connecting resolver or phase wires, only Gate Drivers began to take more current.
I have several first generation inverters after bathe in the ocean, so only: IGBT, current sensors, capacitors, power rails, housing are good.
The producer assured me that it would work, I will buy an inverter as a last resort because it's expensive, but let's go to the problem.
1. General Device Status:
- DESAT (HV) connected to 5V
- 12V, RESERVED, IN_FWD, IN_MPROT (HW), IN_START connected to 12V
- resolver connected without calibration, because I have stoped in this place
- current sensors, voltage sensor, two channel acceleration pedal calibrated
- I uploaded the parameters for Nissan Leaf from Mr. Johannes website, I changed only pwmpol = 0 = active high because I use Gate Driver from Mr. Johannes

2. Current Errors:
During Run Mode
current.png
During OFF and in next step Run Mode
errors.png
errors.png (3 KiB) Viewed 5925 times
(Current channel 1 or 2, respectively, is below 1.23 or above 2.06V when no current is flowing. Check wiring and voltage dividers)
I made measurements on Main Board V3:
IL_1 - 1,628 V
IL_2 - 1,639 V
So Why I have errors ? I don't understand.

3. I think that Gate Drivers are broken, Can you confirm my guess ?
Because:
- PWM and IGBT are ok
- The input signal to the Gate Driver does not match the output signal (Please look at the pictures of measurements below)
- The first Gate Driver take 0,6A during work - manualid 0,05
- The second Gate Driver take 0,3A during work - manualid 0,05
- The third Gate Driver take 0,6A during work - manualid 0,05
- Gate Driver at rest take 0,3A each one separately
PWM 1, yellow - TOP, green - BOT (IGBT disconnected)
pwm 1.png
PWM 2 (IGBT disconnected)
pwm 2.png
PWM 3 (IGBT disconnected)
pwm 3.png
Gate Driver 1 output, (yellow - G TOP, GND - E TOP), (green G BOT, GND - E BOT) (IGBT disconnected)
gate output 1.png
Gate Driver 2 output (IGBT disconnected)
gate output 2.png
Gate Driver 3 output (IGBT disconnected)
gate output 3.png
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

I didn't find the answer to problem number 2 on the forum. Why I have hicurof errors ?
Regarding point 3, I found a fault in every Gate Driver.
After replacing SI8261BBC for each TOP, the signal is probably correct.
I will continue the topic of the Gate Driver fault at: viewtopic.php?f=4&t=404&p=4498#p4498
Is the 1.06uS time between enabling and disabling IGBT correct ?
przerwa igbt podany czas.png
Before replacing SI8261BBC, Gate Driver 1 output, (yellow - G TOP, GND - E TOP), (green G BOT, GND - E BOT) (IGBT disconnected)
gate output 1.png
After replacing SI8261BBC, Gate Driver 1 output, (yellow - G TOP, GND - E TOP), (green G BOT, GND - E BOT) (IGBT disconnected)
cykl igbt.png
arber333
Posts: 3557
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 133 times
Been thanked: 331 times
Contact:

Re: Problems during starting Main Board V3

Post by arber333 »

If you have current sensor errors with FOC code you need to switch them on the board or inside software. I did the same mistake when designing according to old rev2 board made for ACIM motor. There sensors were there only for monitoring overcurrent protection. But with FOC code you really need to use correct sensor on correct phase. Johannes put "pinswap" parameter in software sou we are able to swap the source.
But if you are able to swap sensor wires physicaly all the better.

Also what happened with my board the first time is i got huge currect surge and inverter signalled OClimit. Now that could be sensed by current sensors, or Fault line from drivers sensing desat or short circuit. You dont have a fault line. I think your sensors are too slow and upper IGBTs got hit by lower transistor "tail".

I really recommend you to implement some SC or desat protection.
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

arber333 wrote: Sat Mar 21, 2020 10:01 pm If you have current sensor errors with FOC code you need to switch them on the board or inside software. I did the same mistake when designing according to old rev2 board made for ACIM motor. There sensors were there only for monitoring overcurrent protection. But with FOC code you really need to use correct sensor on correct phase. Johannes put "pinswap" parameter in software sou we are able to swap the source.
But if you are able to swap sensor wires physicaly all the better.

Also what happened with my board the first time is i got huge currect surge and inverter signalled OClimit. Now that could be sensed by current sensors, or Fault line from drivers sensing desat or short circuit. You dont have a fault line. I think your sensors are too slow and upper IGBTs got hit by lower transistor "tail".

I really recommend you to implement some SC or desat protection.
I use Main Board V3 with Board Sensor 1 and Gate Drivers Johannes and current sensors from Nissan inverter first generation
I connected current sensor 1 to IGBT first phase and current sensor 2 to IGBT second phase
When I swapped the current sensors physically and set the manualid to 0.05A the fuse went off so I think that the problem is elsewhere
What is SC ?
I bought the Gate Driver from Johannes and I have IGBT
If I damage the IGBT, I have to buy a Nissan inverter anyway
20200331_223422.jpg
I repaired Gate Drivers and I got light bulbs with different brightness at the outputs from igbts, moreover when I rotate the rotor, the light bulbs flash (Manual Run, manualid 1A, engine disconnected, resolver connected)
20200331_204744.jpg
I know where in engine is U V W based on Nissan diagrams, but I don't know which phase corresponds to U V W
I connected engine to IGBT in the following way:
U - L1
V - L2
W - L3 Is this correct ?

20200331_223625.jpg

I would like start engine using 24V but when I set manualid on 10A the motor does not rotate but draws the set current

I am afraid to connect 300V DC when I am not sure device

Do it possible to start a Nissan engine using 24V ? How to do it ?
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

While trying to find the right phase order set current limit low, like 100A.
Your phase order UVW is correct. Current sensor il1 must be on phase U, il2 on phase V. When current flows from the IGBT to the motor you must see positive current.
Yes you can run from 24V, maybe just 500rpm but ok for testing. What are your current parameters?

Concerning desat protection: it is an extra layer of over current protection at gate driver level. When it closes the IGBT and sees a voltage of more than about 9V between emitter and collector, it slowly turns the IGBT back off and signals an error. When pushing your IGBTs towards or beyond their rated current that is good to have, as long as you stay below 1/2 to 2/3 their rated current over current protection does the trick.

I haven't had a single explosion in my Polo since 7 years where I allow 250A current for 400A IGBTs.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

johu wrote: Thu Apr 02, 2020 6:00 am What are your current parameters?
The parameters are on the first page

When I swapped the motor wires physically, engine started working
I connected as follows:
Engine U - L3 - PWM3
Engine V - L2 - PWM2
Engine W - L1- PWM1
Why ?

Below is a photo of the readings
34.jpg
Why the current on L1 = L2 = L3 = 80A (hot wires) is so high when the supply current = 14A ?
Maybe after calibration at 400V and high current everything will be good ?
(Of course, with the engine in the car and cooling and thick wires)
What is the rated current and max current for the leaf motor ?
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

Well first: congratulations :)
The phase order is weird, is pinswap still 0?
By "supply current" you mean DC current? Basically the inverter is a buck converter, so output current is always higher than input current.
It looks good to me now. Try to test if you can spin in both directions and it makes the same sound.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

Thanks
The phase order is weird, is pinswap still 0 ?
pinswap = none = 0
By "supply current" you mean DC current ?
yes
Basically the inverter is a buck converter, so output current is always higher than input current.
ok now I understand
Try to test if you can spin in both directions and it makes the same sound.
yes, I can and sound is the same

Why when I disconnect 5V from the pin Desat HW 13 on P3 the engine still works ?
I can not set inverter shutdown temperature based on the motor or inverter temperature, what is the temperature of switching off or limiting the inverter operation ?
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

Daniel wrote: Thu Apr 02, 2020 9:03 pm yes, I can and sound is the same

Why when I disconnect 5V from the pin Desat HW 13 on P3 the engine still works ?
I can not set inverter shutdown temperature based on the motor or inverter temperature, what is the temperature of switching off or limiting the inverter operation ?
Very good. Desat pin is pulled high on board, you have to pull it low to stop inverter. The inverter will limit itself at 80°C heat sink temperature. There is no motor temperature limit, keep forgetting to add it.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Daniel
Posts: 24
Joined: Thu Nov 21, 2019 7:21 pm
Location: Poland

Re: Problems during starting Main Board V3

Post by Daniel »

My engine rotate in wrong direction and the vehicle drive backwards.
Can I swap wires only in direction switch ?
User avatar
johu
Site Admin
Posts: 6644
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1503 times
Contact:

Re: Problems during starting Main Board V3

Post by johu »

Set dirmode to one of the "Reversed" settings
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply