Hello Guys, i'm back again

and sorry about my very bad english.. ahah

first of all i got the motor running on dspic30f6010A.. and added a code for 16x2 LCD. because it is impossible to debug because the analog inputs for current sensing are also programming port inputs.

But now i need your help guys who already tested this controller.. and MPaulHolmes also yours ahah if you have some time.

details of hardware:

CURRENT SENSORS: LTS-25-NP

IGBTS: FGH40T120

IGBT DRIVERS: A3120 OPTOCOUPLERS

BUS VOLTAGE: 100V UP TO 22AMPS

ENCODER: 1000 PPR

MOTOR:

CONNECTION: DELTA 230V PHASE TO PHASE CONFIGURATION

KW: 2.2

RPM: 2800

POLES: 2, 1 POLE PAIR

COSFI: 0.85

NOMINAL AMPS: 8.6

1: How can i set pi-ratio parameter? how to find the best one?

2:how to set throttle mapping values? i'm using 4.7k potentiometer.

my current values are:

max-regen-position=0042

min-regen-position=0339

min-throttle-position=0539

max-throttle-position=0837

the problems with these values are:

1: the motor jumps to maximum speed (4000+ RPM) with minimum variation of potentiometer.. i checked the potentiometer and it is ok. i checked also the ADCBUF values these also are in 0-1023 int.

2: the motor turns only in one direction.. the other haf of pot range does nothing.

FOR NOW THESE ARE MY BIG PROBLEMS.. AFTER I SOLVE THESE WITH YOUR HELP GUYS I WILL TEST THE MOTOR UNDER LOAD HOPEFULLY..

My current Configuration:

motor-type=1

kp=08618 ki=00139

current-sensor-amps-per-volt=0040

max-regen-position=0042

min-regen-position=0339

min-throttle-position=0539

max-throttle-position=0837

fault-throttle-position=0005

max-battery-amps=0010 amps

max-battery-amps-regen=0002 amps

max-motor-amps=008 amps

max-motor-amps-regen=008 amps

precharge-time=0001 tenths of a sec

rotor-time-constant=023 ms

pole-pairs=001

max-rpm=03000 rev/min

throttle-type=1

encoder-ticks=1000 ticks/rev

pi-ratio=062

raw-throttle=0508