Motor Setup
Be careful
Installation or setup of the Accelerated systems controller must be done by a trained technician. Failure to follow the warnings can damage the controller, computer, vehicle and/or can cause serious injurt or death
Before starting to connect, setup or run the Accelerated Systems controller READ THE FOLLOWING:
-
Make sure to wear appropriate PPE (Personal Protective Equipment) when working with batteries or moving parts
-
Use Insulated Tools to protect from electric shock
-
ALWAYS use the USB Isolator between the Computer and the Controller. If it is not used the computer and/or the Controller can be damaged! ASI is not responsible for any damaged
-
Make sure the Battery or Power Source is Disconnected or in the OFF position before making any connections the area around the vehicle must be clear.
-
The area around the vehicle must be clear. Keep all People, Children and Pets away from the vehicle when testing or running the system. The motor will rotate during setup and testing.
-
Before testing the Motor/Vehicle make sure the Wheels are off the ground and supported on an approved Bike Stand or Automotive Jack Stands
-
Alternatively the Motor must be secured to a Workbench Vice or a Solid Stand to keep it in place for testing.
-
Make sure all moving parts (e.g. Pedals, Wheels) are clear to move in either direction.
Configuration
In order to control the motor, we must first input some of the rated paramters of the motor which can usually be found on the datasheet provided by the manufacturer. If you do not have this information, please contact your motor manufacturer.
Motor Profile Configuration
Here we will enter the rated motor parameters.
Navigate to the Peripheral Selection
tab, select the Motor Nameplate Ratings
page.
TIP
Set your Rated motor power
to rated system voltage multiplied by your batteries peak rated current output or lower to avoid damaging your battery or tripping your batteries BMS.
-
Enter the
Rated motor power
-
Enter the
Rated motor current
-
Enter the
Rated motor speed
-
Enter the
# of motor pole pairs
-
Enter the
Gear ratio
Press Enter
after every entry or press Write
below this section after entering each parameter. Add any parameters if missing as necessary. See the image below for reference. Press Save to flash
in the Parameter
drop-down menu.
Autotune
The autotuning process will measure the motors inductance (Ls) and resistance (Rs) via a feature called Motor discover mode.
Danger
-
The motor will be spinning in the next steps for up to 20 seconds at 50% of the Rated motor speed (RPM) and high current.
-
Make sure all moving parts (e.g. Motor, Pedals, Wheels, etc.) are clear to move in either direction.
-
Make sure the motor is securely mounted and the wheels are off the ground.
To stop the motor
-
In PC BACDoor®, enter 0 for Motor discovery.
-
Or turn off the controller,
-
or disconnect the battery (could cause damage to the controller).
Warning
Make sure the system is connected to an adequate power source. This test will draw the full rated motor current and can damage the power source if it is inadequate.
Note
If the motor is not spinning in the intended "forward" direction:
-
Wait for the motor discovery to stop and motor to stop spinning
-
Enable
Motor Features bit 0
to swap Phase A and C -
Run the motor discovery again
-
Set
Motor Position Sensor Type
to 0. -
In the
Write (Temp)
section, enter value 9 inMotor discover mode
, and pressor click Write
. The motor will now spin for about 20 seconds. The motor should spin up to half of the motors rated speed that we entered earlier and run at this speed steadily. The motor should run in the expected/correct "forward" direction. Should an issue arise, to stop the test you, you can enter 0 in theMotor discover mode
. -
Once the motor has stopped spinning, press
Read
in theDisplay Only
section. Theautotune rated rpm
value should be near enough to the value you entered in theRated motor speed
previously, if not see the troubleshooting section below. -
Verify that the
autotune Rs
andautotune Ls
values have been copied into theRs
andLs
parameters. -
Verify the autotune Hall sectors 0 through 7 forms a valid Hall table. A valid Hall table consists of 8 values; -1 can repeat twice, values 0 through 5 should not. A valid Hall table may look like [-1, 0, 4, 5, 2, 1, 3, -1] for example, where starting from the left we have
autotune hall sector[0]
= -1,autotune hall sector[1]
= 0,autotune hall sector\[2\]
= 4, etc.Example
A Hall table of all -1 is invalid (e.g. [-1,-1,-1,-1,-1,-1,-1,-1]), or a table with more than two -1 values (e.g. [-1, 0, 4, -1, 2, 1, 3, -1]) , or with a value between 0 and 5 inclusive that repeats (e.g. [-1, 0, 4, 5, 2, 2, 3, -1]). See troubleshooting below for more information.
-
Verify that the
autotune hall sectors
have appropriately populated theHall Sectors
parameters. -
Verify that the
autotune hall offset angle
has populated thehall offset angle
parameter. -
If you would like to use Hall Start and Sensroless Run you can change `Motor Position type to 1.
-
Save to flash.
-
Set
Motor position Sensor Type
to 2. -
In the
Write (Temp)
section, enter value 9 inMotor discover mode
, and pressor click Write
. The motor will now spin for about 20 seconds. The motor should spin up to half of the motors rated speed that we entered earlier and run at this speed steadily. The motor should run in the expected/correct "forward" direction. Should an issue arise, to stop the test you, you can enter 0 in theMotor discover mode
. -
Once the motor has stopped spinning, press
Read
in theDisplay Only
section. Theautotune rated rpm
value should be near enough to the value you entered in theRated motor speed
previously, if not see the troubleshooting section below. -
Verify that the
autotune Rs
andautotune Ls
values have been copied into theRs
andLs
parameters. -
Save to Flash.
Note
This feature is not capable of running at switching frequencies higher than 12kHz. It is recommended to change the controller switching frequency to 10kHz, save, and power cycle the controller prior to performing this process. Switching frequencies below 13kHz will cause you to lose BT connectivity. Perform this action over TTL or CAN.
-
Set
Motor Position Sensor Type
to 3. -
Set the
Motor discover mode
parameter to 1. This will discover the motors Resistance (Rs) and Inductance (Ls). Copy the values discovered fromautotune Rs
andautotune Ls
to theRs
andLs
parameters. -
Set the
Motor discover mode
parameter to 5. -
Read the encoder angle parameters and confirm that the autotune was successful. A successful autotune will have an autotune offset error (parameter 357) of less than 3 degrees.
-
The following parameters will update as part of the dsicovery process:
-
Encoder Sine/Cos High/Low Voltage
-
Encoder offset
-
Encoder Sine/Cos V Source
(Only if the original )
-
-
Save to flash.
Note
If the switching frequency was lowered to perform this process, raising the switching frequency again might require power cycling to reset the calculated runtime max switching frequency
parameter.
Troubleshooting
The controller will not power on
The high-power controllers have larger capacitors that must be charged during initial power-up. This can cause the BMS of some batteries to trip due to overcurrent, and damage components within the controller. A precharge circuit is required to prevent damage to the controller and to the battery.
Connection/communication issues
Assuming the controller is powered on (solid or blinking light on the controller). Try the following:
PC BACDoor®:
-
Remove all peripherals connected to the controller (e.g. displays, throttle, etc.), if any. Ensure the controller is powered on, the LED should be lit. Ideally solid, or possibly it is flashing a code sequence.
-
If the controller LED is not solid, see the Faults and warnings troubleshooting for more information.
-
Remove all peripherals other than the basics from your computer to isolate which Port the controller is connected to.
-
Ensure the
Network Baud
rate in BACDoor® is set to 115200, our default value. If not, try 9600, as the Baud rate value on the controller may have been affected. - Once connected set
[PC BACDoor|Communications|Serial Communications|Write/Save|Baud rate]
and[PC BACDoor|Communications|Serial Communications|Write/Save|Baud rate port2]
set to 115200.Save to flash
, and then power cycle the controller. Set theNetwork Baud Rate
to 115200 now, and try to reconnect.
BACDoor® mobile:
-
Does the part number description have BlueTooth(BT)? (e.g. TTL-BT or CAN-BT)
-
Verify Bluetooth is ON on your device.
-
Verify you are attempting to connect to the correct device, generally it is "e-Bike". Placing the phone as close as possible to the controller and refreshing the Channel page helps identify the correct controller to connect to as it should have the highest strength %.
-
Disconnect any peripherals if any are connected, e.g. Displays.
Counting motor pole pairs
Contact ASI support.
Ls and/or Rs are negative
If you get negative values, the problem may be the wiring or it may be internal to the motor. Possible causes include:
-
The battery does not supply sufficient current for the test. Try lowering your
Rated motor current
and try again. Location: -
Lower
[PC BACDoor|Peripheral Selection|Motor Nameplate Ratings|Write/Save|Rated motor current]
-
For mobile, lower
[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|Rated Motor Current]
-
There may be insufficient current, try increasing
Rated motor current
. -
The
Rated motor rpm
may be set too high, try lowering it. -
Verify your phase wires are not shorting anywhere. This may be internal to the motor.
-
Two or more phases may be shorted together. Verify your phases haven't shorted together, as above it may be an internal issue.
-
A phase may be unplugged.
The motor/wheel does not spin
-
The controller may have faulted, check the controller faults or check if the controller LED is flashing and record this value. See the Faults and warnings troubleshooting for more information.
-
The motor may have loose phase wires, verify all connections.
-
If it is a freewheeling motor, the motor may be spinning backwards and thus not engaging. Correct this by swapping the phases as explained below.
-
Your brakes may be enabled and enabling motor cutoff. Verify if
eBike flags bit 0 (Brake)
andeBike flags bit 1 (cut-out)
are 1 (enabled). If they are both enabled, your brakes are enabled and it is cutting off the motor current. If only the cut-out is enabled, something else is cutting current to the motor. Verify you have no peripherals connected, and possibly restart from your previously saved default parameter file. -
[PC BACDoor|Custom|Features/Faults|Display Only|digital eBike flags:bits 0 & 1]
, clickpoll
to see the live flag values. -
[BACDoor Mobile|Live Feed|Faults and Warnings|Information|Ebike Flags]
enabled bits appear in the right column, disabled bits do not. -
Rated motor power
orRated motor current
set too low to overcome the initially required motor torque to spin. -
Correct/increase
[PC BACDoor|Peripheral Selection|Motor Nameplate Ratings|Write/Save|Rated motor current]
and[PC BACDoor|Peripheral Selection|Motor Nameplate Ratings|Write/Save|Rated motor power]
(all 4 motor power values) -
For mobile, correct/increase
[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|Rated Motor Current]
and[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|Rated Motor Power]
(all 4 motor power values) -
Try setting the
Sensorless closed loop enable frequency
to 10% of therated electrical frequency
. -
Set
[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Write/Save|Sensorless closed loop enable frequency]
to 10% of[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Display Only|rated electrical frequency]
(click read to see value) -
For mobile, set
[BACDoor Mobile|Live Feed|Motor|Sensorless Configuration|Sensorless Closed Loop Enable Frequency]
to 10% of[BACDoor Mobile|Live Feed|Motor|Additional Autotune Information|Rated Electrical Frequency]
-
EN controllers expect some form of pedal input per legislation.
The motor spins in the wrong direction
If your motor is spinning in reverse, the most likely cause is the phase wiring. Whether internally in the motor, or your connection to the controller. You can swap the phases physically (option 1) or in the controller digitally (option 2).
-
Option 1 - Physically swap phase wires A (Green) and C (Blue)
-
Option 2 - In BACDoor®, enable
Motor features bit 0
. -
For PC BACDoor®, set
[PC BACDoor|Custom|Features/Faults|Write/Save|Motor features: Bit 0]
to 1, -
or for BACDoor® Mobile, enable
[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|Bit 0 Swap phase A and phase C]
.
The motor does not spin as quickly as expected
-
If the actual motor speed appears too slow. Check your motor nameplate ratings; if the Rated motor speed is an estimate and the motor is running stably at a constant speed during analysis, use the autotune Rated rpm value as the Rated Motor speed.
-
In 6.016 and higher firmwares, motor discovery occurs at ~20% of the calculated motor electrical frequency. Previously it was ~50%.
-
If the indicated or autotune Rated rpm is wildly off, verify your
# of motor pole pairs
is set correctly. -
Correct
\[PC BACDoor|Peripheral Selection|Motor Nameplate Ratings|Write/Save|# of motor pole pairs\]
-
For mobile, correct
[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|# Of Motor Pole Pairs]
-
Try setting the
Sensorless closed loop enable frequency
to 10% of therated electrical frequency
. -
Set
[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Write/Save|Sensorless closed loop enable frequency]
to 10% of[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Display Only|rated electrical frequency]
(clickRead
to see value) -
For mobile, set
[BACDoor Mobile|Live Feed|Motor|Sensorless Configuration|Sensorless Closed Loop Enable Frequency]
to 10% of[BACDoor Mobile|Live Feed|Motor|Additional Autotune Information|Rated Electrical Frequency]
The motor speed is unsteady during the rated motor speed analysis
-
A phase wire could be disconnected
-
Rated motor speed
may be set too far from the correct value. Double or halve theRated motor speed
parameter value, then use the motor discovery again to analyze the motor speed. -
Verify your pole pairs are correct. See above if you need to manually count the pole pairs. To change the value:
-
[PC BACDoor|Peripheral Selection|Motor Nameplate Ratings|Write/Save|# of motor pole pairs]
-
Or
[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|# Of Motor Pole Pairs]
-
Try setting the
Sensorless closed loop enable frequency
to 10% of therated electrical frequency
. -
Set
[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Write/Save|Sensorless closed loop enable frequency]
to 10% of[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Display Only|rated electrical frequency]
(clickRead
to see value) -
For mobile, set
[BACDoor Mobile|Live Feed|Motor|Sensorless Configuration|Sensorless Closed Loop Enable Frequency]
to 10% of[BACDoor Mobile|Live Feed|Motor|Additional Autotune Information|Rated Electrical Frequency]
Hall vs Sensorless position Fault
Your Motor position sensor type
is set to 0 (Hall based) or 1 (Hall start and sensorless run) and it is throwing an error as a result. Set this value to 2 (sensorless) for the motor speed autotune.
-
Set
[PC BACDoor|Peripheral Configuration|Basic Motor (Sensorless)|Write/Save|Motor position sensor type]
to 2 -
Or for mobile set
[BACDoor Mobile|Live Feed|Motor|General Motor Configuration|Motor Position Sensor Type]
to Sensorless.