Arlo1 said:Yes You need battery voltage input to brain just not phase voltage
Both.arber333 said:Arlo1 said:Yes You need battery voltage input to brain just not phase voltage
Can you elaborate what do you use that for? And how?
You use isolated opamp to sense voltage for precharge only or do you actually use it to sense analog 2.5V to 5V for controler information?
tnx
A
Lebowski said:Hall sensor spacing looks perfect (codes 1 to 6 have near perfect 60 degree spacing, when you go 5 to 1 to 3 to 2 to 6 to 4 to 5 etc), i would not change them.
Strange is that code 1 and 6 are not in use, this may explain your strange behavior of point 1. Did you turn them off ? Just turn those back on, but keep 0 and 7 off.
Did you calibrate the (offset of) the current sensors ?
When in sensorless only, at low throttle during motor start i can rock back and forth a bit, depends also on wiggle parameters (misc menu)
Why did you set an offset ? How high did you set it ? What did the chip indicate for offset and spread ?
Arlo1 said:My inverter case was connected to gnd which was the 12V battery -
My brain was fed isolated power but at some point I connected it to ground as well.
Never had the problem you have. But there is 100s of hours of tuning the halls to make them work well.
I honestly had 1000s of hours into tuning it to get the power I did.
-Arlin
Watch out for this.arber333 said:Arlo1 said:My inverter case was connected to gnd which was the 12V battery -
My brain was fed isolated power but at some point I connected it to ground as well.
Never had the problem you have. But there is 100s of hours of tuning the halls to make them work well.
I honestly had 1000s of hours into tuning it to get the power I did.
-Arlin
Correct! I dont see why direct GND would be problematic since whole inverter logic is isolated from it with only signals being on that plane.
I can smell burning ozone if i brush cable against motor case. In low lighting there are sparks there but no real voltage. If i try to decouple and connect all potentials brain goes to mode 0. Now why is that? Does it see anything i dont?
I went in with a multimeter and scope and honestly i dont see anything other than static.
A
Lebowski said:maybe the motor windings are somehow shorted to the case ? That it stays in drive_0 (with the voltage feedback) means the motor windings are not 'floating' but connected to gnd somehow (that or a FET is on).
Another thing, when you did the throttle calibration for throttle close, did you give it a little gas ? This is important due to noise on the throttle signal. Normally there is noise on the throttle which averages out to 0. But when the throttle closed voltage is 0.0V, what happens is that the ADC inside the chip converts the positive halfs of the noise to a certain value, and the negative halves to 0 (as the ADC does not do negative input voltages, however small). The net effect is that all the positive parts of the noise constitute a small positive signal, meaning the controller IC thinks you're giving a little bit of gas. It will power the motor with this, making it run or (in case of sensorless start) maybe make it rock back and forth a bit.
So, make sure you give a little bit of gas when calibrating the throttle closed value ! In this way when you give no gas it will see voltage below the throttle open value, and keep motor phase current at 0 A.
Arlo1 said:The brush is to recent/reduce EMP.
kiwifiat said:Good job, and it looks like you tracked the case elctrification down to a phase wire shorting to the case of the inverter. What PWM frequency and dead time are you running with the Volt inverter power stage?
arber333 said:Well for dead time i experimented with Johannes brain and my ACIM motor in my car. The best value for me was 1.65uS and it works now for my Leaf motor also.
Dead time is a calculation not something you experiment with to get set right. The reason for this is it changes as the different parts cycle though temps and various parts of the usable parameters of operation.
I dont use any isolation stage since Volt as its own isolation.
You should fluctuations on the 12v line can carry into the 5v circuit
arber333 said:Freq and all parameters are the same as Arlo setup in his video. That is 6kHz.
Well for dead time i experimented with Johannes brain and my ACIM motor in my car. The best value for me was 1.65uS and it works now for my Leaf motor also.
I dont use any isolation stage since Volt as its own isolation.
See my settings here:
version:2A1_
0x019A 0xE000 0xFFFF 0xFFFF 0x0003 0xFFFC 0x7000 0x0006
0x4C00 0x0000 0x0000 0x0000 0x0000 0x0000 0xFDAB 0x0000
0x0110 0x0347 0x00D1 0x0400 0x0400 0x000E 0xFFDA 0x460D
0xFFDE 0x4069 0xFFFF 0x167F 0x00DA 0x01F4 0x02EF 0x08DF
0x02A9 0x02D0 0x01E1 0x0071 0x02D0 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0x1720 0x1AD0 0x7FBC 0x7D2E 0x0030 0x795E 0x0000
0x07AE 0x0018 0x0000 0x01E0 0xFFFF 0xF852 0xFFE8 0x0000
0xFE20 0x0000 0x4CCD 0x0060 0x0000 0x01E0 0xFFFF 0xB333
0xFFA0 0x0000 0xFE20 0x06AD 0x033B 0x0064 0x0017 0x2EF3
0xF800 0x9F39 0x4837 0x7239 0xF139 0xC837 0x1D39 0xFF00
0x0E49 0x0088 0x0044 0x0012 0x00E3 0x0000 0x04EB 0x0419
0x020C 0x0400 0x0400 0x0400 0x09C3 0x1194 0x0031 0x04E0
0x0007 0x0D39 0xFFC4 0x171F 0x1333 0x0000 0x0000 0xF999
0x0000 0x0000 0x0164 0x0242 0x003C 0x0361 0x1066 0x00D1
0x0577 0x02BB 0x04B0 0x0258 0x0064 0xC898 0x1998 0xFFFF
0xFFFF 0x0003 0x0000 0x0078 0x0000 0x0000 0xFFFD 0x0000
0xFF88 0x0000 0x0000 0x0005 0x0000 0x0064 0xFFFB 0x0000
0xFF9C 0x000C 0x0000 0x00F0 0xFFF4 0x0000 0xFF10 0x02D9
0x0221 0x0577 0x005B 0x0186 0x0221 0x000D 0x0010 0x0E10
0x88B8 0x03B6 0x6000 0x04EB 0x0088 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0000 0x2AA8 0x0005
0x8000 0x5F0C 0x0005 0xFC20 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0xFFDA 0x460D 0xFFDE 0x4069
0x5F0C 0x0005 0x2000 0x928B 0x0015 0xFC38 0xFFFE 0x0088
0xFFDB 0xFE08 0x0000 0xFFE0 0x0000 0x0004 0xFFDA 0x460D
0xFFDE 0x4069 0xDA55 0x001E 0x2C00 0x9578 0x0002 0xFC38
0xF986 0xFFE2 0x04FD 0x0487 0x0000 0x0000 0x0000 0xFD49
0xFFDA 0x460D 0xFFDE 0x4069 0x3F5F 0x0009 0x2C00 0x011A
0x0000 0x0888 0xF71F 0xFFDB 0x057D 0x0749 0x0000 0x0005
0x0000 0xFC58 0xFFDA 0x460D 0xFFDE 0x4069 0xA164 0x0006
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0324 0x0648 0x096A
0x0C8C 0x0FAB 0x12C8 0x15E2 0x18F9 0x1C0B 0x1F1A 0x2223
0x2528 0x2826 0x2B1F 0x2E11 0x30FB 0x33DF 0x36BA 0x398C
0x3C56 0x3F17 0x41CE 0x447A 0x471C 0x49B4 0x4C3F 0x4EBF
0x5133 0x539B 0x55F5 0x5842 *
kiwifiat said:Thanks for that, wow is your gen1 Leaf motor really on 5.5mOhms ? or is that a tuning change by Arlo? My gen 2 Leaf motor measures 22.5mOhms and 175uH which gives a 7.8ms L/R time constant. I don't see any inverters on your gate drive lines, how do you manage to drive the "active low" optoisolators in the Volt inverter with active high settings in pwm menu??
A question for Lebowski, you commented when working on izeman's Mac motor that because it has a relatively long L/R time constant compared to the typical ~1ms it was optimal to reduce sections h) and i) of the contol loops coefficients menu G). Given that the Leaf motor also has a relatively long L/R constant what would be suitable values for G) sections h) and i) ?
Also in the miscelaneous menu section N) subsection h) # of cycles going from 2 --> 3 I see from the supplied file a value of 35,000. Is there a tuning methodology for determining the best value for this parameter? Does the value represent erpm or contol loop iterations? Thanks.
kiwifiat said:Thanks for that, wow is your gen1 Leaf motor really on 5.5mOhms ? or is that a tuning change by Arlo? My gen 2 Leaf motor measures 22.5mOhms and 175uH which gives a 7.8ms L/R time constant. I don't see any inverters on your gate drive lines, how do you manage to drive the "active low" optoisolators in the Volt inverter with active high settings in pwm menu??
A question for Lebowski, you commented when working on izeman's Mac motor that because it has a relatively long L/R time constant compared to the typical ~1ms it was optimal to reduce sections h) and i) of the contol loops coefficients menu G). Given that the Leaf motor also has a relatively long L/R constant what would be suitable values for G) sections h) and i) ?
Also in the miscelaneous menu section N) subsection h) # of cycles going from 2 --> 3 I see from the supplied file a value of 35,000. Is there a tuning methodology for determining the best value for this parameter? Does the value represent erpm or contol loop iterations? Thanks.