Lebowski's motor controller IC, schematic & setup, new v2.A1

OK I added a inverting circuit to pull the reset pin low if the fault output goes hi from the driver.
New SCH file second post here. http://endless-sphere.com/forums/viewtopic.php?f=30&t=63982&p=958053#p958053
 
Lebowski.... I got the v2.3 chips.
Thank you very much. Now I built up the new brain board and for the life of me I cant get rs232 to work or get any of the leds to light up to let me know its alive.
I put the same chip in my old board made for v1.xx and I get the led to light up then I can use rs232 to communicate no problem and after programing I get the second led to light up. So my question is have you used v2.3 in anything yet. Is the SCH proper or maybe it needs another pin to power or gnd that has either x on it or one of the halls??

I have been at this for about 7 hours today and a couple last night...
Going back and forth over the 2 boards I have with 2 brain chips comparing. And yes I removed the rs232 bfr92 smd chips to see if that was the problem.

The old one I have 2n3904 with the emitter from the TX tied to 5v instead of - and it works always has. I can't remember why because this is backwards from your sch.
I have tried a lot of things. But it seems I have 2 problems 1 the new board will not turn the chip on and 2 (which might be ok after problem 1 is sorted) I need to get rs232 working. thanks.
 
I always try the RS232 to check the checksum to make sure they are programmed correctly, so I know the code is all good. Also I've of course tested v2.30 and I know it runs fine.
The 2n3904 is a funny transistor in a sense that the pin order is different from about 99% of all the other transistors:
2n3904.jpg
The schematic however should be build as shown in the schematic posted in the first post of this thread. Note that some pins have moved for v2.30, the hall pins are on a different
location. Also I changed the motor voltage measuring circuit. This part is schematically different but functionally the same as before, so no need to upgrade there (and, as mentioned
before, the v2.30 can do without this)

Do you have a schematic of your new board posted somewhere ? Did you put enough caps on this board ? Is the 5V high enough there ?
 
Lebowski said:
I always try the RS232 to check the checksum to make sure they are programmed correctly, so I know the code is all good. Also I've of course tested v2.30 and I know it runs fine.
The 2n3904 is a funny transistor in a sense that the pin order is different from about 99% of all the other transistors:

OK so to be VERY clear the brain I am having problems with DOES NOT use the 2n3904
I am trying to use the BFR92AW built exactly as you have shown in the sch.

The schematic however should be build as shown in the schematic posted in the first post of this thread. Note that some pins have moved for v2.30, the hall pins are on a different
location. Also I changed the motor voltage measuring circuit. This part is schematically different but functionally the same as before, so no need to upgrade there (and, as mentioned
before, the v2.30 can do without this)

Do you have a schematic of your new board posted somewhere ? Did you put enough caps on this board ? Is the 5V high enough there ?
i
Yes the sch is on my Leaf inverter thread and the powerstage thread. http://endless-sphere.com/forums/viewtopic.php?f=30&t=63982
And yes I have 5.0v right on the money on the pins that should have 5v.
I think I have enough caps but you are right I should scope this to make sure.
 
Did you take out the resistor of pin 22 ? This one is an output, used for debug when the motor is running (its high when the chip is calculating, low when the calculations are done)
There is no resistor on the reverse pin ? You need the two transistors (bfr92) in the RS232 circuit !
Make sure the BFR92 connected to the reset pin is not accidentally keeping the chip in reset !

if the chips work (the setup) in your old board this means the chips are fine...
 
IM part way I measuered 5v on the old brain board at pins 1,6,11,14,18,19,21,23,27,28,29,32,40 and found the new brain did not have 5v power to pins 6,14,18,23,27,29 so I tried putting 5v to one at a time and turning it on with no luck so then I put jumpers to all of them at once and now the led comes on when I power it up.
Then I removed power from 23 27 and 29 and it still works. So its something funny in the low side 0-20 pins....



Now I will try to sort out the rs232


EDIT:
NvM I just realized I just jumped the LED... Im going to bed.
Yes the chips are ok they work in my old brain board designed for V1.0 but not the new one designed for 2.3 :pancake:
 
Lebowski said:
Did you take out the resistor of pin 22 ? This one is an output, used for debug when the motor is running (its high when the chip is calculating, low when the calculations are done)Yes I have removed all pull down resistors at this point.
There is no resistor on the reverse pin ?Yes there is its in the bottom left corner. You need the two transistors (bfr92) in the RS232 circuit ! Yes
Make sure the BFR92 connected to the reset pin is not accidentally keeping the chip in reset !5v on the reset pin should meen this is ok

if the chips work (the setup) in your old board this means the chips are fine...
 
Got it... Man how many times does that 10 ohm resistor on pin 40 have to get me before I learn.

I am just switching everything to SMD so I don't have any 10 ohm 0805 resistors yet. So I had shoved a 680 there. And the funny thing is it will measure 5v on that pin but still not turn on.

Now I re installed the RX TX transistors and that all works. Hopefully tomorrow I can start pwm testing the igbt. :)
 
Arlo, if pin 40 is the AVDD pin on your chip (it will be if you are referring to the PDIP package) then 680Ω is probably too much, the internal analog circuitry is powered through this pin, so I think 0Ω is better than 680Ω, and remember the decouple/bypass capacitor on the pin too.
 
Futterama said:
Arlo, if pin 40 is the AVDD pin on your chip (it will be if you are referring to the PDIP package) then 680Ω is probably too much, the internal analog circuitry is powered through this pin, so I think 0Ω is better than 680Ω, and remember the decouple/bypass capacitor on the pin too.
Yes if you look at my SCH it has a 10 ohm resistor with a decoupling cap as lebowski has in the sch. I just don't have any 10 ohm resistors yet as getting restocked in SMD is not cheep.
 
Futterama said:
Arlo1 said:
I just don't have any 10 ohm resistors yet
Just use a 0Ω or jumper wire until you have the correct value, the 10Ω resistor is only there for filtering purposes and the dsPIC will work fine without it.
Yes that is exactly what I did.
 
Lebowski. I did the current sensor calibration and it read this.
I also measured with my DMM 2.39v , 2.40v and 2.40 volts on the current sensor which is #2 ,#3, and #4 on the dspic30f
does this look right?
Code:
a) restore calibration, autocomplete
b) perform offset measurement
   sensor a: -207.5 mV
   sensor b: -3750.0 mV
   sensor c: -3590.0 mV
c) perform gain measurement
   channel a: 66.66 %
   channel b: 66.66 %
   channel c: 66.66 %
d) online gain calibration update rate: 3.995 %

z) return to main menu
 
nope, those values are definately not correct. If you're not using the HF tone mode it's best just to reset to default (with option a) and not calibrate, it's not necessary.

what probably happened was that the gain calibration failed due to the 'force motor position current' not being high enough. For the gain calibration to work the controller needs
to very slowly rotate the motor over a few e-revolutions. If the force motor position current is too low the motor will not rotate properly and the gain calibration will fail. As per manual,
the average of the gain cal values should be 100%, else you should recalibrate.
If you run the dc offset measurement after an erroneous gain calibration it will definately fail.

So, best to reset and not use if you don't run with HF tone.

All being said though, at the moment my evaluation board shows a persistent offset of 100mV in one of the current sensors. Lots of scoping has pointed to a blown transistor
in the output stage. So, strange values for the offset calibration can point to trouble elsewhere in the circuit. In my case, to much probing and not enough paying attention
has led to me shorting a gate to high voltage, blowing stuff up... the motor still runs though but very rough (error settings are high, so the controller fails to see the error)
 
LOL I think my "trouble" is the fact the motor is not connected. :)
 
I never hooked up the phase voltage sense wires or the battery sensing wires is there anything I need to do because I can't get it to work for the FOC... I do have sensor less running. :)
 
Ok SO I have posted the setup settings and video of it running in the HF tone here. http://endless-sphere.com/forums/viewtopic.php?f=30&t=63982&p=981961#p981961
I have LOTS to learn how to set up!
1 I need to learn how to set up the HF tone better
2 I would like to set up the sensorless better as well.
3 I can only get the FOC measurement to work with .5-1 HZ measurement frequency. I found it doesn't want to measure with 16v (4s lipo) but it does with 8s (32v) so maybe it will get better with more voltage??
I want to set this up at the lowest possible voltage and amperage possible before increasing the 2.
 
Futterama said:
Lebowski, do you have any recommendations on how to isolate the input on pin 6 (v2.30) from the Batt+ voltage? Since I will be using isolated supplies, this pin 6 connection will ruin the isolation between MCU and battery.

If you don't want to connect the controller IC to the battery you can connect pin 6 to ground. It is used to measure the battery voltage for an increased accuracy of the FOC.
Connecting pin 6 to ground puts the chip in a mode where it uses the battery voltage at the time of the motor inductance measurement, without correcting for
voltage sag (due to battery going empty). I think the penalty on performance is not really noticeable, it's more to be 100% correct w.r.t. the FOC theory...
 
Arlo1 said:
I never hooked up the phase voltage sense wires or the battery sensing wires is there anything I need to do because I can't get it to work for the FOC... I do have sensor less running. :)
the new 2.30 doesn't need the phase voltage sense wires anymore, just be aware this eliminates a check for blown FETs... but if you have a fancy desat detecting output stage you don't need this check as the output stage does it for you... the battery sense can be disabled by connecting pin 6 to ground, as described above
 
Lebowski said:
Futterama said:
Lebowski, do you have any recommendations on how to isolate the input on pin 6 (v2.30) from the Batt+ voltage? Since I will be using isolated supplies, this pin 6 connection will ruin the isolation between MCU and battery.

If you don't want to connect the controller IC to the battery you can connect pin 6 to ground. It is used to measure the battery voltage for an increased accuracy of the FOC.
Connecting pin 6 to ground puts the chip in a mode where it uses the battery voltage at the time of the motor inductance measurement, without correcting for
voltage sag (due to battery going empty). I think the penalty on performance is not really noticeable, it's more to be 100% correct w.r.t. the FOC theory...
Ok, so the battery voltage can just be entered in the menu and the FOC uses that voltage.
Should the entered voltage be minimum (3.3V/cell), nominal (3.7V/cell) or maximum (4.2V/cell) voltage?
You told me previously that pin 6 was only used to detect a voltage change, but what is the relationship between the entered battery voltage in the menu and the measured value on pin 6? If pin 6 is connected, does the controller assume that a voltage of 4.5V on pin 6 is equal to the entered voltage in the menu?

I found the ACPL-C87A which can isolate the voltage measurement but does require an extra 5V regulator in my design, and I wonder if the FOC accuracy and performance is worth the extra effort, cost, complexity and board space.
http://www.digikey.com/product-detail/en/ACPL-C87A-000E/516-2577-5-ND/3523706
 
the battery voltage in the menu is ONLY used for the inductor value calculation, and only for the value for the number displayed to the user. The actual parameter used by the FOC
has nothing to do with the displayed inductance, it is some internal variable from which you can calculate the inductance (if you know, among other things, the battery voltage).

when pin 6 is used, the internal parameter for the FOC is continuously corrected based on the measured battery voltage.

On my v1 bike where I have pin 6 to gnd, I used LiPo at 3.8 V to measure the motor inductance, so in the middle of full and empty.

FOC accuracy impacts the total system efficiency, and I'm guessing we're talking in the 0.1% range... you're not going to double the
distance from a charge by connecting pin 6, at best you'll getting 100m extra.
 
Thanks Lebowski
I will connect pin 6 to ground.

I need to understand the setup menus better because its very tricky to get to start smooth. I do plan to run this at 470 volts with no load but I want to make sure its ok at a lower voltage first. I had it lock up and not do anything quite a few times. It also pulls a lot of current from the battery wires sometimes when its trying to start. But not always....

Here it is running at 30v. [youtube]rPNupXflVC0[/youtube]
Any suggestions on how to set it up better?
If I try to measure the FOC it will usually just make the tone then freeze and no lights come on and I have to hit the reset pin 2 times to make it work again then start over.... The only thing I found to work was using .5 HZ sample rate.

Code:
########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> m 


a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 2 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

------> g 
new value -> 1
a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 0 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

------> g 
new value -> 1 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 0 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

------> g 
new value -> 1.2 



a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 2641 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

------> g 
new value -> 3 
a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 2 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

------> g 
new value -> 5 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 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

------> z 

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> zz 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00][00]


########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> m 


a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 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

------> g 
new value -> 6 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 5 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

------> z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> z 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> z 

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> [00][00]
########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> m 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 5 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

------> g 
new value -> 10 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 9 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

------> z 


########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> zz 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00][00][00][00][00]

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> ,m 

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

----------- > z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> m

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 9 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

------> g 
new value -> 20 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 19 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

----------- >z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> z 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00]

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> m 

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 19 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

------> g 
new value -> 30

a) autocomplete

b) motor standstill voltage threshold: 0.49 V
c) low side pulsing in drive 0: disabled
d) low side pulsing rate: 0 Hz
e) low side pulsing width: 30 usec
f) wiggle range: 19 deg
g) wiggle rate: 29 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

-------------- >z
########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> zz 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00][00]
########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> b

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 1.9 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: 29.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> f 
new value -> 1

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 0.8 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: 29.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> z 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00][00][00][00][00][00][00]

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> b

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 0.8 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: 29.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> f 
new value ->1.5
a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 1.4 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: 29.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> z 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> [00][00]

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> b

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 1.4 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: 29.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> i 
new value -> 20

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 1.4 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: 19.9 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> i 
new value -> 15

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 1.4 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: 14.8 A
j) maximum shutdown error current, fixed: 19.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> j 
new value -> 30

a) current sensor transimpedance: 1.37 mV/A
b) maximum motor phase current: 79.9 A
c) maximum battery current, motor use: 99.9 A
d) maximum battery current, regen: 0.0 A

e) autocomplete

f) HF current, base level (HF only): 1.4 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: 14.8 A
j) maximum shutdown error current, fixed: 29.9 A
k) maximum shutdown error current, proportional: 9.8 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

------> z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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: 5kHz
b) deadtime: 7999ns
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: 9.00 kHz

z) return to main menu

------> z

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
#######################################

0) mode: HF tone
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

------> zz 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00][00]

########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> 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: 2.3 A
i) pulse width: 87 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: 9.8 A
r) proportional to throttle current, factor: 150 %
s) current filter 50% step response time: 5.0 msec

z) return to main menu

------> a

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: 87 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: 5.0 msec

z) return to main menu

------> i 
new value -> 30

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: 29 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: 5.0 msec

z) return to main menu

------> zz
########################################
#   (c)opyright 2014, B.M. Putter      #
#   Adliswil, Switzerland              #
#   bmp72@hotmail.com                  #
#                                      #
#  version 2.30                        #
#  experimental, use at your own risk  #
########################################


0) mode: HF tone
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

------> z 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> a 

a) save data to ROM for motor use
b) print data in HEX format
c) enter data in HEX format
d) online parameter save: disabled

z) return to main menu

------> [00][00][00]
 
Back
Top