izeman
1 GW
autocomplete set it 3.9a now.Lebowski said:I had a look, all looks OK except I would reduce in the recovery menu
10A seems a bit high, does 3A also work ?Code:h) pulse when current drops below: 9.9 A
autocomplete set it 3.9a now.Lebowski said:I had a look, all looks OK except I would reduce in the recovery menu
10A seems a bit high, does 3A also work ?Code:h) pulse when current drops below: 9.9 A
thanks. i upped the values as per your recommendation to 150/700/300, before it was:Lebowski said:the only thing i can think of is that the second kick comes from the transition from drive_2 to drive_3. In sensorless (drive 3) the motor runs
much free-er and smoother than in hall sensored (drive 2), so I can imagine you get a (noticable) second kick especially when the
transition erpm is a bit high. What you can try is reducing the drive 2 -> 3 and drive 3 -> 2 erpm's.... The hall sensored drive 2 is really only
for starting the motor...
c) accept direction change below: 71 erpm
d) transition erpm drive 2 -> 3: 428 erpm
e) transition erpm drive 3 -> 2: 142 erpm
Lebowski said:have you updated the settings for p, q, r and s in the recovery menu ? These are the error current settings for drive_2. Did you autocomplete the recovery menu after increasing the phase current ?
a) autocomplete
b) motor standstill voltage threshold: 0.48 V
c) low side pulsing in drive 0: enabled
d) low side pulsing rate: 20 Hz
e) low side pulsing width: 20 usec
f) wiggle range: 39 deg
g) wiggle rate: 4 Hz
h) minimum # of cycles going from drive 2 to 3: 1000
i) number of cycles going from drive 3 to 2, HF only: 200
z) return to main menu
p) current to check: total current
q) fixed part: 15.9 A
r) proportional to throttle current, factor: 150 %
s) current filter 50% step response time: 5.0 msec
a) use temp sensors: yes
b) identify temp sensors
c) temperature readings
z) return to main menu
0: 5E00 0802 BBD6 1010
1: 8F00 0802 BBF8 6E10
2: 5400 0802 A8C4 E110
0) reduce max phase current above 50.0 degC by 2.9 A/degC
1) reduce max phase current above 60.0 degC by 1.9 A/degC
2) reduce max phase current above 70.0 degC by 0.9 A/degC
------> c
22.0 21.5 21.5 4.9 A
22.0 21.5 21.5 4.9 A
22.0 21.5 21.5 4.9 A
22.0 21.5 21.5 4.9 A
22.0 21.5 21.5 4.9 A
22.0 22.0 21.5 4.9 A
22.0 22.0 21.5 4.9 A
0x03D3 0x03D3 0x0628 0x000C 0x0004 0x0002 0x7FBC 0x0623
0x0000 0x018B 0x8000 0x07AD 0x03D6 0x0E92 0x03F5 0x03F0
0x03F0 0xAAAA 0xAAAA 0xAAAA 0x02EE 0x0267 0x001E 0x0301
0x000A 0xF74C 0x0309 0x1000 0x1000 0x1000 0xFFFF 0xFFFF
0xFFFF 0x00B3 0x02B6 0xFFFF 0xFFFF 0x1EB6 0x0189 0x1146
0x0000 0x079C 0x0258 0x0064 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0x0000 0x4CCD 0x000C 0x0000 0x00F0 0xFFFF 0xB333 0xFFF4
0x0000 0xFF10 0x0000 0x07AE 0x0018 0x0000 0x01E0 0xFFFF
0xF852 0xFFE8 0x0000 0xFE20 0x0003 0x0000 0x0078 0x0000
0x0000 0xFFFD 0x0000 0xFF88 0x0000 0x0000 0x003C 0x0003
0x0000 0x0000 0x0000 0xFFC4 0xFFFD 0x0000 0x0000 0x0000
0x00F0 0x000C 0x0000 0x0000 0x0000 0xFF10 0xFFF4 0x0000
0x0000 0x0000 0x120A 0x1400 0x05FD 0x05DC 0x02E1 0x0038
0x00F0 0x02EB 0x014F 0x0008 0x0156 0x0042 0x0008 0x1C70
0x0000 0x03E8 0x00C8 0x4C31 0x03B6 0x6000 0x0623 0x00D2
0xFF00 0x4341 0xEC3F 0x193F 0x983F 0x6B3F 0xC341 0xFF00
0xFFFF 0xC519 0x764B 0x5482 0x41B3 0x35C3 0x2D7A 0x276B
0x22C9 0x1F1E 0x1C28 0x19B5 0x17A6 0x15E6 0x1463 0x1312
0x11EB 0x10E4 0x0FFB 0x0F28 0x0E6B 0x0DC0 0x0D23 0x0C94
0x0C10 0x0B97 0x0B27 0x0ABF 0x0A5F 0x0A05 0x09B1 0x0962
*
izeman said:this is the setup right now:
Code:0x03D3 0x03D3 0x0628 0x000C 0x0004 0x0002 0x7FBC 0x0623 0x0000 0x018B 0x8000 0x07AD 0x03D6 0x0E92 0x03F5 0x03F0 0x03F0 0xAAAA 0xAAAA 0xAAAA 0x02EE 0x0267 0x001E 0x0301 0x000A 0xF74C 0x0309 0x1000 0x1000 0x1000 0xFFFF 0xFFFF 0xFFFF 0x00B3 0x02B6 0xFFFF 0xFFFF 0x1EB6 0x0189 0x1146 0x0000 0x079C 0x0258 0x0064 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0000 0x4CCD 0x000C 0x0000 0x00F0 0xFFFF 0xB333 0xFFF4 0x0000 0xFF10 0x0000 0x07AE 0x0018 0x0000 0x01E0 0xFFFF 0xF852 0xFFE8 0x0000 0xFE20 0x0003 0x0000 0x0078 0x0000 0x0000 0xFFFD 0x0000 0xFF88 0x0000 0x0000 0x003C 0x0003 0x0000 0x0000 0x0000 0xFFC4 0xFFFD 0x0000 0x0000 0x0000 0x00F0 0x000C 0x0000 0x0000 0x0000 0xFF10 0xFFF4 0x0000 0x0000 0x0000 0x120A 0x1400 0x05FD 0x05DC 0x02E1 0x0038 0x00F0 0x02EB 0x014F 0x0008 0x0156 0x0042 0x0008 0x1C70 0x0000 0x03E8 0x00C8 0x4C31 0x03B6 0x6000 0x0623 0x00D2 0xFF00 0x4341 0xEC3F 0x193F 0x983F 0x6B3F 0xC341 0xFF00 0xFFFF 0xC519 0x764B 0x5482 0x41B3 0x35C3 0x2D7A 0x276B 0x22C9 0x1F1E 0x1C28 0x19B5 0x17A6 0x15E6 0x1463 0x1312 0x11EB 0x10E4 0x0FFB 0x0F28 0x0E6B 0x0DC0 0x0D23 0x0C94 0x0C10 0x0B97 0x0B27 0x0ABF 0x0A5F 0x0A05 0x09B1 0x0962 *
and there still is something wrong with the settings. under load (and the wheel is off the floor, so load is not really high) it jumps to drive_1 during WOT.
izeman said:makes sense. never had this "problem" with any of the other controllers. but of course your's is much more sophisticated. and it HAS error current handling and a lot of other stuff.
so only a "real life" test can show if it works. i will try with brakes applies (a bit to simulate load).
Lebowski said:izeman said:makes sense. never had this "problem" with any of the other controllers. but of course your's is much more sophisticated. and it HAS error current handling and a lot of other stuff.
so only a "real life" test can show if it works. i will try with brakes applies (a bit to simulate load).
I typically strap the motor to a bike and haul an 85kg man around as a load test![]()
Shenta said:what motor are you running? izeman.
I have been working with Ben on my controller for his duty cycle on Mac motor, Mac use delta winding, which has 30 degree shift than Y type of connection.
It is hard to get sensorless working and also field weakening up on delta winding.
Good luck
########################################
# (c)opyright 2014, B.M. Putter #
# Adliswil, Switzerland #
# bmp72@hotmail.com #
# #
# version 2.30 #
# experimental, use at your own risk #
########################################
0) mode: Hall sensored, with recovery
a) PWM parameters
b) current settings
c) throttle setup
d) erpm limits
e) battery
f) current sensor calibration
g) control loop coefficients
h) filter bandwidths
i) FOC motor impedance
j) CAN setup
k) recovery only
l) hall sensored only
m) miscellaneous
z) store parameters in ROM for motor use
------> a
a) PWM frequency: 20kHz
b) deadtime: 999ns
c) dutycycle testsignal: 50%
d) toggle high side polarity, now active HIGH
e) toggle low side polarity, now active HIGH
f) test PWM signals
g) autocomplete
h) loop sample frequency: 39.00 kHz
z) return to main menu
------> b
a) current sensor transimpedance: 20.00 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 44.9 A
d) maximum battery current, regen: 0.0 A
e) autocomplete
f) HF current, base level (HF only): 4.0 A
g) HF current, proportional factor (HF only): 1.0000
h) maximum phase current in drive 2 (HF only): 37.9 A
i) phase current for forcing motor position: 15.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.9 A
l) applied braking current (phase) on direction change: 0.0 A
m) offset filtering (phase) current limit: 0.0 A
z) return to main menu
------> c
a) calibrate throttle 1
b) calibrate throttle 2
c) polynomial coefficients throttle 1 (x, x^2, x^3): 1.0000, 1.0000, 1.0000
d) polynomial coefficients throttle 2 (x, x^2, x^3): -0.0002, -0.0002, -0.0002
e) use analog throttle 1: YES
f) use analog throttle 2: NO
receive throttle over CAN: NO
g) TX throttle over CAN: NO
h) test throttle
z) return to main menu
------> d
a) erpm limit, forward: 34.96 k-erpm
b) erpm limit, reverse: 34.96 k-erpm
c) accept direction change below: 71 erpm
d) transition erpm drive 2 -> 3: 785 erpm
e) transition erpm drive 3 -> 2: 392 erpm
z) return to main menu
------> f
a) restore calibration, autocomplete
b) perform offset measurement
sensor a: -30.0 mV
sensor b: -42.5 mV
sensor c: -35.0 mV
c) perform gain measurement
channel a: 99.99 %
channel b: 99.99 %
channel c: 99.99 %
d) online gain calibration update rate: 0.302 %
z) return to main menu
------> g
a) autocomplete
phase control loop, drive 3
b) 1st order: 240
c) 2nd order: 12.0000
d) 3rd order: 0.3000
phase control loop, drive 2
e) 1st order: 480
f) 2nd order: 24.0000
g) 3rd order: 0.0299
amplitude control loop
h) 1st order: 60
i) 2nd order: 3.0000
j) 3rd order: 0.0000
k) maximum amplitude: 100 %
z) return to main menu
------> h
a) autocomplete
b) throttle current filter -3dB freq: 100 Hz
c) error current 50% step response time: 20.239 msec
d) induction position filter 45 degree delay speed: 3.18 k-erpm
e) drive 2 speed filter 50% step response time: 210.2 msec
z) return to main menu
------> i
a) autocomplete
b) FOC measurement current: 39.9 A
c) FOC measurement erpm: 53.57 k-erpm
d) perform impedance measurement
measured inductance: 85.5 uH
z) return to main menu
------> k
a) autocomplete
phase control loop, recovery
b) 1st order: 0
c) 2nd order: 120.0000
d) 3rd order: 3.0000
amplitude control loop, recovery
e) 1st order: 240
f) 2nd order: 12.0000
g) 3rd order: 0.0000
h) pulse when current drops below: 3.9 A
i) pulse width: 20 usec
j) pulse % for exit: 95
k) pulse % filter 50% step response time: 30.0 msec
l) speed filter 50% step response time: 7.0 msec
m) try restart for: 499 msec
n) check for spinning motor, drive_0: enabled
o) check for throttle closed, drive_0: enabled
exit from startup to recovery at current
p) current to check: total current
q) fixed part: 15.9 A
r) proportional to throttle current, factor: 150 %
s) current filter 50% step response time: 20.0 msec
z) return to main menu
------> l
code: 0, angle: 358 deg, confidence: 0, used: no
code: 1, angle: 94 deg, confidence: 8, used: yes
code: 2, angle: 331 deg, confidence: 7, used: yes
code: 3, angle: 35 deg, confidence: 7, used: yes
code: 4, angle: 213 deg, confidence: 7, used: yes
code: 5, angle: 150 deg, confidence: 7, used: yes
code: 6, angle: 274 deg, confidence: 8, used: yes
code: 7, angle: 358 deg, confidence: 0, used: no
a) toggle hall usage
b) calibrate hall positions: no
z) return to main menu
------> m
a) autocomplete
b) motor standstill voltage threshold: 0.48 V
c) low side pulsing in drive 0: enabled
d) low side pulsing rate: 20 Hz
e) low side pulsing width: 20 usec
f) wiggle range: 19 deg
g) wiggle rate: 9 Hz
h) minimum # of cycles going from drive 2 to 3: 4000
i) number of cycles going from drive 3 to 2, HF only: 200
z) return to main menu