
a) loop sample frequency: 38.01 kHz
b) 1st order phase loop integrator coefficient: 53.0000
c) 2nd order phase loop integrator coefficient: 0.3099
d) amplitude loop integrator coefficient: 1.5000
e) maximum amplitude: 200 %
z) return to main menu
a) sensored or sensorless: SENSORED
b} sensorless startup: PUSH START
c} e-rpm limit sensorless self start: 1183
d} e-rpm reached before transition: 47 %
e} minimum current push start: 2.9 A
f} push start current, error allowed: 24 %
g] erpm sensored to sensorless transition: 500
h] transition time sensored to sensorless: 99 milli-sec
i) return to motor start below 500 erpm
j) controlled slowdown for direction change: YES
k) phase current for controlled slowdown: 0.9 A
l) motor maximum, forward: 99.97 k-erpm
m) motor maximum, reverse: 39.99 k-erpm
n) motor standstill voltage threshold: 0.49 V
z) return to main menu


nieles wrote:so it is normal the reconstructed data is not scaled beteween 1 and -1?



Lebowski wrote:The hall sensor information from Arlo explains to me why there's trouble sampling the back-emf.
This is a plot from Arlo's hall data:
If you look at the graph you can see the hall spacing is really irregular and especially
series3 has a weird very high dutycycle (65%). The main killer for the sampling however is the
spacing between the series2 and series3 around position 45. The chip expects somewhat
evenly spaced halls (which would be a transition every 21 positions). It can deal with tolerances
on this but a spacing between transitions of only 7 positions is really out of proportions. What happens
is that the time between two hall transitions is extrapolated (using the known hall positions)
to the time for a full e-period. If this then differs more than 12% from the running average e-period
time it declares lock is lost and stops the back-emf sampling (basically it samples the voltages but
then has no clue anymore where in the e-period the samples were taken). With a very small
space between transitions the time between the halls is multiplied by a huge amount, easely
tripping the 12% max. error allowed.
Just to compare, this is the plot from the data posted by Nieles:
I actually have the feeling one of Arlo's halls is broken (hall 3), it would be interesting to spin
the motor with a drill (constant rpm) and to look at the output signal of hall 3. I think it will not
be a nice regular square wave. My reasoning: during the calibration the average falling edge was on position 41,
the back-emf sampling stops because of an unexpected hall transition at position 18 for the first
measurement posted and 12 for the second measurement posted by Arlo 2-3 posts ago.




nieles wrote:not sure what settings you PMed me.
i am testing with my RC motor.
settings:
menu E:
b: 13.5 ( 3*1024/228 )
c: 0.02 ( 1024/(228^2) )
d: 0.6 ( 20000/458*0.002*38000 )
e:100%
x: 3*0.002*38000=228
y: 1024
what would be a good initial guess for the d and e parameters?
could there be a typo in the manual? on slide 15, it states options b, c and d are explaned on the next slides. but on slide 18 it explains the setttings for e instead of d.
if i am correct in thinking slide 18 is for setting d, what should i use for the setting e? i used different values and i get higher rpms with a higher value for e.


########################################
# (c)opyright 2012, B.M. Putter #
# Adliswil, Switzerland #
# bmp72@hotmail.com #
# #
# experimental, use at your own risk #
########################################
a] calibrate hall sensors
b] determine coil positions
c) PWM parameters
d) current settings
e) control loop parameters
f) throttle setup
g) running modes
h) CAN bus setup
z) store parameters in EEPROM for motor use
------> a
a] number of e-rotations: 30
b] calibrate hall positions
c] table out hall signals
z] return to main menu
------> b
a] number of back-emf samples: 850
b] calibrate coil positions
c] reconstruct waveforms based on extracted parameters
d] table out data arrays
z] return to main menu
------> c
a) PWM frequency: 20kHz
b) deadtime: 599ns
c) dutycycle testsignal: 50%
d) toggle high side polarity, now active HIGH
e) toggle low side polarity, now active HIGH
f) test PWM signals
z) return to main menu
------> d
a) number of current sensors: 2
b) current sensor transimpedance: 10.00 mV/A
c) maximum motor phase current: 29.9 A
d) maximum battery current, motor use: 14.9 A
e) maximum battery current, regen: 0.0 A
f) maximum shutdown error current, fixed: 4.9 A
g) maximum shutdown error current, proportional: 4.9 A
h) IIR filter coefficient: 6
i) use additional comb filter: YES
z) return to main menu
------> e
a) loop sample frequency: 39.00 kHz
b) 1st order phase loop integrator coefficient: 17.5499
c) 2nd order phase loop integrator coefficient: 0.0333
d) amplitude loop integrator coefficient: 0.7459
e) maximum amplitude: 100 %
z) return to main menu
------> f
a) calibrate throttle 1
b) calibrate throttle 2
c) polynomal coefficients throttle 1 (x, x^2, x^3): 1.0000, 0.0000, 0.0000
d) polynomal 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
------> g
a) sensored or sensorless: SENSORLESS
b} sensorless startup: PUSH START
c} e-rpm limit sensorless self start: 1000
d} e-rpm reached before transition: 78 %
e} minimum current push start: 3.4 A
f} push start current, error allowed: 21 %
g] erpm sensored to sensorless transition: 500
h] transition time sensored to sensorless: 99 milli-sec
i) return to motor start below 500 erpm
j) controlled slowdown for direction change: YES
k) phase current for controlled slowdown: 0.9 A
l) motor maximum, forward: 102.57 k-erpm
m) motor maximum, reverse: 41.03 k-erpm
n) motor standstill voltage threshold: 0.49 V
z) return to main menu
------> h
a) CAN 'address': 1990
b) CAN CFG1 as per Microchip 30F manual: 64
c) CAN CFG2 as per Microchip 30F manual: 664
RS232 output rate: 3901 Hz
z) return to main menu
------> z



fechter wrote:Awesome! I love the breadboard. Don't hit any big bumps.
I guess one of the next steps is to lay out a circuit board that holds all the parts other than the power stage.


Lebowski wrote:In the second part of the video, it this the sensorless selfstart ? It seems to be starting on its own... Or is this
hall sensored ?
Lebowski wrote:What I noticed is that without the hall sensors the motor feels weak in drive_1 (hall based startup),
can sometimes even go in reverse and basically sounds not health. I'll update the schematic...

nieles wrote:i have been meaning to ask you about the data output function, do i need anthing special to get the data from the controller when in motor running mode?
if i simply input one of the characters from the table i get no response from the controller (well i get a random character, but not a stream of data)







Users browsing this forum: No registered users and 4 guests