Using a CA3 - lets go over some basic setup stuff to get you running. Don't forget to use the
Paremeter -> Save to Flash if you want to save your inputs in case of a fault or battery disconnect.
Peripheral Selection -> Battery
Battery Current Limit: 100%
Regeneration Battery Current Limit: 25%
Battery management interface type: 0
Peripheral Selection -> Command Inputs
Control command source: 1 (this sets the input source to be the analogue throttle signal)
Features: 0000000001010000 (this enables regen braking and has a stall shutoff) If you're using a geared motor, you do not need to set the 4th bit to 1, it can remain at 0
Every other parameter should be 0.
Peripheral Selection -> Motor Nameplate Ratings
Rated motor current: 60 (this will self impose a maximum of 73A)
Rated motor speed: Set this to your maximum unloaded RPM
Rated system voltage: Set to fully charged battery voltage
Rated motor power: Set to desired battery current limit * rated system voltage (ex. 25A at 55V = 1375 for a 25A 48V system)
Motor position sensor type: Mouse over for description and settings we can set this later when we configure the motor peripheral
Motor pole pairs: Put in your motor pole pairs
Gear ratio: if you have a geared motor put in the ratio, if not, put in 1.
Peripheral Configuration -> Throttle
Throttle open voltage: 3.5V (you can set this to whatever, but leaving it at 3.5 means you can configure your CA3 and also use a regular plug in throttle directly into the controller if needed)
Throttle closed voltage: 1.0
Positive motoring torque ramp: 200ms
Negative motoring torque ramp: 200ms - change the torque ramps around to get the desired "punch" or smoothness
Throttle fault range: 1.1 (leave this at 1.1 so that the throttle signal can be pulled to ground for regen purposes without causing a fault)
Peripheral Configuration -> Brakes
Cutoff Brake Sensor Type: 0 (you can use pins 2 and 4 on the 4pin JST to enable cut-off)
Analogue brake closed voltage: 0.8V
Analogue brake open voltage: 0.1V
Maximum braking torque: 30% (This is a % of your phase current as defined under the
peripheral selection)
High battery foldback start: 105%
High battery foldback end: 110%
ramp rates are self explanatory
Now is where you decide for sensorless or sensored.
The first thing to do is to run the motor parameter discovery function inside the controller - you'll want your motor supported so that it can't run away and so that nothing could get caught in the chain etc if the motor spins backwards. The motor will be spinning and cannot be stopped save for the end of the test or disconnecting the battery.
First you'll want to poll the parameters;
The poll button should be blue.
Next we'll discover the motor resistance and inductance to be entered in the
Rs and
Ls.
In the
Write (Temp) section bottom right, you'll enter 4 in the
Motor Discovery Mode and press enter. The motor will make a buzz and whine as it pulses high frequency current into the windings.
After this finishes, you should see the
autotune Rs and
autotune Ls fields populate under the display only tab. Simply input the values into the Write/Save section and press enter or write.
Next we'll configure the hall sector mapping - during this the motor
WILL turn so be prepared for it to spin backwards or forwards for about 15 seconds. It will also spin the motor at 1/2 the
rated RPM as setup previously. Be sure that the polling is still enabled on Display Only and enter "3". The motor will turn for about 15 seconds, and the
autotune hall sector fields will fill in. Simply copy the values over to the Write/Save press enter for each, or write with the button at the bottom. If your motor spins backwards, either swap a pair of phases and redo the hall sensor detection or enter 1 into the furthest right 0 of the
Motor features parameter under Write/Save.
The last thing to do is to set the
Motor position sensor type to either 0 or 1.
Everything for a sensored motor should work now, try your throttle with the wheel off the ground!
For sensorless, select the
Peripheral Configuration -> Basic Motor (Sensorless) tab.
First you'll want to set the
Motor position sensor type to 2.
The procedure for discovering the resistance (Rs) and inductance (Ls) is the same as above. The only difference with sensorless operation is that you'll want to tune the following settings:
Sensorless open loop starting current: 0.3
Sensorless open loop freq ramp time: 200ms
Sensorless closed loop enable freq: 20Hz
You'll want to do this by starting with the default values and tweaking - these values will depend on your setup.