I started the controller with a current sensor disconnected, so it wont draw to much power. Here are my values:
Code:
AC controller firmware, ver. 1.0
High pedal lockout fault. Ignore this for now. It's not really a fault. haha.
There was some hardware caused fault, not originating on the microcontroller (not set
by me!
config
motor-type=1
kp=41478 ki=00669
current-sensor-amps-per-volt=0320
max-regen-position=0050
min-regen-position=0060
min-throttle-position=0800
max-throttle-position=0820
fault-throttle-position=0020
max-battery-amps=0015 amps
max-battery-amps-regen=0015 amps
max-motor-amps=025 amps
max-motor-amps-regen=025 amps
precharge-time=0050 tenths of a sec
rotor-time-constant=005 ms
pole-pairs=002
max-rpm=06000 rev/min
throttle-type=0
encoder-ticks=0256 ticks/rev
pi-ratio=062
raw-throttle=0369
So then i changed rotor-time-constant to 30, saved, turned off, connected the current sensor, and power it up.
Now the motor spins slowly, not vibrating any more, still makes a humming sound though, and still draws 60A. and as usual just when the contactor closes.
So now i am back at the "original" values:
Code:
motor-type=1
kp=03333 ki=00050
current-sensor-amps-per-volt=0320
max-regen-position=0050
min-regen-position=0060
min-throttle-position=0800
max-throttle-position=0820
fault-throttle-position=0020
max-battery-amps=0015 amps
max-battery-amps-regen=0015 amps
max-motor-amps=025 amps
max-motor-amps-regen=025 amps
precharge-time=0050 tenths of a sec
rotor-time-constant=005 ms
pole-pairs=002
max-rpm=06000 rev/min
throttle-type=0
encoder-ticks=0256 ticks/rev
pi-ratio=062
I tried the stream-mechanical-speed 1.
Rotating the shaft clockwise gives me positive numbers.
Negative while turning the other way.
i try to rotate at around 1 revoultion / sec and then it shows me around 60 rpm.
Seams to work...
Now with these settings the motor is standing still, I can hear a high pitched noise so i believe it is trying to do something. drawing about 0.3 amps.