meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
controller:setup [2020/10/01 12:47] vasilisk |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Controller connection ====== | ||
- | |||
- | {{https:// | ||
- | |||
- | First connect phase wires and halls as [[http:// | ||
- | Connect also battery supply and throttle, brake is optional.\\ | ||
- | At first power up controller will start automatically.\\ | ||
- | For navigation use middle buttons, to enter or edit parameter - right button, exit or undo change - left button.\\ | ||
- | After you finish setup do not forget to **Save settings**! Otherwise old settings will be loaded at next startup. | ||
- | ====== | ||
- | |||
- | Auto-setup | ||
- | |||
- | ====== | ||
- | |||
- | Fast setup for throttle, brake and motor.\\ | ||
- | Select required controller from device-list and go to directory **Auto-setup**.\\ | ||
- | If you have connected throttle and analogue brake, you can run **Full setup** and follow instructions shown on screen. The corresponding lines will indicate when it is necessary to press the throttle or brake.\\ | ||
- | **ATTENTION! When setting up halls, motor rotates in both directions, be careful with the pedals on the bike.** \\ | ||
- | If you have only throttle, you need to turn on every parameter manually step-by-step: | ||
- | **Before auto-setup it is recommended to specify correct pole pair number in motor parameters!** \\ | ||
- | If motor heavy and auto-setup does not happen, you can increase **Setup current**, for example twice.\\ | ||
- | If motor spins in wrong direction you can change any two phases or in **Motor setup** change **Spin direction**.\\ | ||
- | Motor will spin 5 times, one at motor detection and 4 times at angle correction. | ||
- | |||
- | ====== | ||
- | |||
- | Updates and settings | ||
- | |||
- | ====== | ||
- | |||
- | **Import config.** - loads configuration from file // | ||
- | **Export config.** - saves current controller configuration to file // | ||
- | **Reboot** - reboots controller. If controller settings wasn't saved, it will load last saved configuration.\\ | ||
- | **Reset Wh usage** - resets consumed Watt-hours in controller.\\ | ||
- | **Reset stats** - resets trip distance.\\ | ||
- | **Load defaults** - loads default settings but doesn' | ||
- | **Erase data storage** - sometimes needed after update, in case when controller doesn' | ||
- | **Update firmware** - starts firmware update [[http:// | ||
- | |||
- | ====== | ||
- | |||
- | Control modes | ||
- | |||
- | ====== | ||
- | |||
- | In section **Controller - Control modes** you can save three modes of motor operation and select these with 3-position switch or with display buttons.\\ | ||
- | If you don't have switch, mode 1 used by default. If your switch connected to display, you need to setup [[http:// | ||
- | |||
- | At line **# Selected mode:** you can see currently active mode. | ||
- | |||
- | * N - neutral | ||
- | * S1 - speed 1 | ||
- | * S2 - speed 2 | ||
- | * S3 - speed 3 | ||
- | * RV - reverse | ||
- | |||
- | ===== ===== | ||
- | |||
- | Modes setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | To configure 2nd mode: | ||
- | |||
- | * **Phase 2** - maximum phase current. | ||
- | * **Battery 2** - maximum battery current. | ||
- | * **Speed 2** - maximum speed. | ||
- | **Battery n** parameter have a boost mode, which allows you to briefly exceed the battery current settings specified in the [[http:// | ||
- | Boost is activated when the battery current exceeds the setting in the [[http:// | ||
- | Boost is activated for 5 seconds, followed by a minute cooling. \\ | ||
- | The next boost can be used when the active value of the battery current drops to the average value specified in the battery current settings. | ||
- | |||
- | Parameter **Speed n** determines the speed % depending on the reference speed setting (check [[http:// | ||
- | When speed set over 100% it activates field weakening mode, that lets you to increase motor speed more than supply voltage (but not more than 95V of hardware limit), check [[http:// | ||
- | |||
- | In general, it is recommended to setup the value of the phase current in 1.5-2 times higher than the battery current. \\ The rest of the presets are configured in the same way. | ||
- | |||
- | ===== ===== | ||
- | |||
- | Electric brake setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | **Braking phase** | ||
- | |||
- | ===== ===== | ||
- | |||
- | Braking phase at speed control | ||
- | |||
- | ===== ===== | ||
- | |||
- | Lets you to decrease speed when you release a throttle. \\ Works only with direct drive motors, without clutch. \\ **Braking ph. at speed** | ||
- | |||
- | * **Control** | ||
- | * **Control** | ||
- | ===== ===== | ||
- | |||
- | Reverse setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | It is activated by a separate button, in the settings you must specify **Speed reverse** | ||
- | |||
- | ===== ===== | ||
- | |||
- | Field weakening setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | The function is similar to the 120% mode of Infineon controller. | ||
- | |||
- | Setup: | ||
- | |||
- | * For one of modes specify **Speed** | ||
- | * **Field weakening** | ||
- | Field weakening is turned on when the maximum speed is reached, the controller adds the weakening current, limited to the specified phase current and the weakening current. If the phase current = 70A, the weakening current is 30A, than it means that in the settings of the phase current there should be at least 100A. If the phase current increases to 80A, then only 20A will remain for weakening, since 80A + 20A = 100A. \\ Also, controller will limit the rotational speed of the motor so that its effective EMF does not exceed the maximum supply voltage of the controller (not the battery). If the motor started to twitch on the free wheel, then it is necessary to reduce the weakening current. | ||
- | |||
- | ===== ===== | ||
- | |||
- | Current change speed | ||
- | |||
- | ===== ===== | ||
- | |||
- | Three parameters that determine the rate of current change (smoothness). The higher the value, the faster the current will increase in the motor. \\ For conventional brake levers, it is useful to reduce the parameter **- braking** | ||
- | |||
- | ====== | ||
- | |||
- | Advanced control modes | ||
- | |||
- | ====== | ||
- | |||
- | **Controller - Advanced modes** \\ In this menu you can activate advanced control modes with parameter **Enable adv. modes**. \\ **Neutral by default** | ||
- | |||
- | Every speed mode (S1, S2, S3) have it's own menu with these parameters: | ||
- | |||
- | * **Throttle mode** | ||
- | * **Acceleration lim.** | ||
- | * **Reverse** | ||
- | * **Cruise** | ||
- | * **Disable motor** | ||
- | * **Disable throttle** | ||
- | * **Disable PAS** - disable Pedal Assist. | ||
- | * **Active braking** | ||
- | * **Speed lim. at 0% throttle** | ||
- | ====== | ||
- | |||
- | Control | ||
- | |||
- | ====== | ||
- | |||
- | **Controller - Control** \\ In this section you can setup control sources for motor, like: throttle, Torque and PAS sensors, cruise control and etc… | ||
- | |||
- | ===== ===== | ||
- | |||
- | Control source | ||
- | |||
- | ===== ===== | ||
- | |||
- | You can connect controls to controller or display. Or even both, in the same time, this is necessary in the case of configurations Torque / PAS sensor + throttle. | ||
- | |||
- | * **Auto** | ||
- | * **Embedd** | ||
- | * **Remote** | ||
- | * **Disabled** | ||
- | ===== ===== | ||
- | |||
- | Throttle control mode setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | There are 3 possible **Throttle modes**: | ||
- | |||
- | * **Speed** | ||
- | * **Torque** | ||
- | * **Speed+torque** | ||
- | In the case of **Speed+torque**, | ||
- | |||
- | ===== ===== | ||
- | |||
- | Throttle and brake voltage range setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | Currently, voltage settings for all throttles and brakes are common. \\ **# Throttle** | ||
- | |||
- | **# Brake** | ||
- | **Active braking** | ||
- | |||
- | ===== ===== | ||
- | |||
- | Cruise control setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | There are several cruise modes, determined by the parameter **Cruise**. | ||
- | |||
- | * **Button** | ||
- | * **Switch** | ||
- | * **Throttle hold** | ||
- | * **Allow Throttle hold** | ||
- | **Cruise level** | ||
- | |||
- | * **Throttle** | ||
- | * **Speed** | ||
- | * **Mixed** | ||
- | **Safe acceleration** | ||
- | |||
- | If the cruise button is connected to the screen, then you need to configure it in [[http:// | ||
- | |||
- | What turns off cruise control: | ||
- | |||
- | * Any brake press, analog or digital | ||
- | * Repeated throttle press | ||
- | * If a switch is used - when it's disabled. | ||
- | * Reverse enable | ||
- | |||
- | ===== ===== | ||
- | |||
- | Setup 100% speed value | ||
- | |||
- | ===== ===== | ||
- | |||
- | **Speed mode** | ||
- | |||
- | * **OFF** | ||
- | * **Middle U bat** - average value from min/max battery voltage used as speed reference, depending on motor kV. | ||
- | * **U supply** | ||
- | * **Ref. speed** | ||
- | * **Ref. ERPM** | ||
- | **Speed ref. filter** | ||
- | |||
- | * **Speed lim. at 0% throttle** | ||
- | ===== ===== | ||
- | |||
- | PAS setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | PAS connected to controller port P1/P2. (one or two-wire) \\ PAS unlike Torque sensor controls the throttle by frequency and not the rotational force. | ||
- | |||
- | Section **Controller - Control - Pedal Assist Sensor**: \\ **PAS** | ||
- | |||
- | Next settings related to the pressure sensor (Torque sensor) \\ **Pressure scale** | ||
- | |||
- | ====== | ||
- | |||
- | Motor setup | ||
- | |||
- | ====== | ||
- | |||
- | ===== ===== | ||
- | |||
- | Motor t°-sensor | ||
- | |||
- | ===== ===== | ||
- | |||
- | Section **Controller - Motor setup - Motor t°-sensor** \\ You can select a temperature range in which a smooth power limit will occur (parameter **Delta °t**) and specify **°t max**. It is recommended to install temperature sensor so close as possible on the stator windings, while not in contact with the stator iron. If you do not know what kind of sensor is in the motor, you can check all the options and choose the one that most closely to room temperature. Measured temperature is shown below. You can choose from sensors **KTY81(82), | ||
- | |||
- | ===== ===== | ||
- | |||
- | Clutch | ||
- | |||
- | ===== ===== | ||
- | |||
- | Section **Controller - Motor setup - Clutch** \\ Here you can set up a smooth motor start for soft engagement of the clutch or freewheel. Useful for gear motors or mid-drives. \\ Currently it works well only in the throttle mode **Torque**, since clutch there is always engaged. Another way is to setup acceleration limit on motor in advanced modes. | ||
- | |||
- | The parameter **Mode** | ||
- | |||
- | * **Accelerate** | ||
- | * **Accelerate and hold** | ||
- | **Start time** | ||
- | |||
- | TIP: Optimal setup for MAC motor: **Accelerate**, | ||
- | |||
- | ===== ===== | ||
- | |||
- | Manual angle setup | ||
- | |||
- | ===== ===== | ||
- | |||
- | In this section you can manually change hall sensor angle. \\ **Offset for square** | ||
- | |||
- | ===== ===== | ||
- | |||
- | Hall table | ||
- | |||
- | ===== ===== | ||
- | |||
- | Here hall index and angles are specified for forward and backward direction. | ||
- | |||
- | ===== ===== | ||
- | |||
- | Motor parameters | ||
- | |||
- | ===== ===== | ||
- | |||
- | **Pole pair** | ||
- | **Spin direction** | ||
- | |||
- | * **Square** | ||
- | * **Sensorless** | ||
- | * **Combined** | ||
- | * **FOC** | ||
- | * **Hz** | ||
- | * **Sine Hz** - 3Ф sine with fixed frequency | ||
- | Parameter **Control mode** | ||
- | |||
- | **Interpolate halls** | ||
- | |||
- | ====== | ||
- | |||
- | Battery | ||
- | |||
- | ====== | ||
- | |||
- | Section **Controller - Battery**, here you must specify the range of the supply voltage and current. \\ **Full charge** | ||
- | |||
- | ====== | ||
- | |||
- | Converter | ||
- | |||
- | ====== | ||
- | |||
- | Section **Controller - Converter**. Here you can configure charging mode from the power supply through the motor. Charging through the inductor is not currently supported. | ||
- | |||
- | **Enable** | ||
- | |||
- | ====== | ||
- | |||
- | I/O port configuration | ||
- | |||
- | ====== | ||
- | |||
- | Controller have 8 digital inputs that can be configured for many functions. Also available 8 CAN ports, signal source for that can be display or other device. \\ In menu **Port state** | ||
- | |||
- | Available port functions: | ||
- | |||
- | * **OFF** | ||
- | * **RV** | ||
- | * **CR** | ||
- | * **BK** | ||
- | * **DM** | ||
- | * **DTH** | ||
- | * **DPAS** | ||
- | * **SWSNS** | ||
- | * **N** - forces neutral mode, resets speed mode counter if used. If neutral by default activated you need to change speed mode again to exit neutral. | ||
- | * **nBK** | ||
- | * **S1** | ||
- | * **S2** | ||
- | * **S3** | ||
- | * **S1of3** | ||
- | * **S3of3** | ||
- | * **Scyc** | ||
- | * **S++** | ||
- | * **S—** | ||
- | * **SPSNS** | ||
- | * **Spec.** | ||
- | ===== ===== | ||
- | |||
- | Setup PWM output | ||
- | |||
- | ===== ===== | ||
- | |||
- | To activate pwm output port **P1** | ||
- | |||
- | * **Stop-light** | ||
- | * **Headlight** | ||
- | * **t° C motor** | ||
- | * **t° C controller** | ||
- | **PWM Pn Min/ | ||
- | |||
- | ====== | ||
- | |||
- | Extra parameters | ||
- | |||
- | ====== | ||
- | |||
- | Section **Controller- Extra parameters**. | ||
- | |||
- | ===== ===== | ||
- | |||
- | Disable button and auto shutdown | ||
- | |||
- | ===== ===== | ||
- | |||
- | Controller turns on when it is powers-up or the button contacts shorts. \\ There is a button in the display on the back, so an additional switch is usually not required. \\ In disabled mode, the controller consumes less than 100 μA, so if you reconnect the power without discharging capacitors, controller may not start again. | ||
- | |||
- | **Disable button** | ||
- | |||
- | * **None** | ||
- | * **Switch** | ||
- | * **Button** | ||
- | * **CAN** | ||
- | **Auto shutdown** | ||
- | |||
- | ===== ===== | ||
- | |||
- | Speed calculation | ||
- | |||
- | ===== ===== | ||
- | |||
- | **Speed calculation** | ||
- | |||
- | If you have a hub-motor, then you need to [[http:// | ||
- | For gear motors or mid-drives, it is recommended to install an external speed sensor that is connected to the display. | ||
- | |||
- | ===== ===== | ||
- | |||
- | Other | ||
- | |||
- | ===== ===== | ||
- | |||
- | **Master-controller** | ||
- | **Limit t° CPU** - maximum CPU temperature, | ||
- | |||
- | ===== ===== | ||
- | |||
- | PID regulators | ||
- | |||
- | ===== ===== | ||
- | |||
- | If you do not know what it is and why, it is better not to change it. \\ **Square** | ||
- | |||
- | ===== ===== | ||
- | |||
- | Additional Information | ||
- | |||
- | ===== ===== | ||
- | |||
- | Section **Controller - Debug information** | ||
- | |||