Skip to main content
Firmware Stable

Pinout and I/O specification

Board pin list

The AM controller board has 30 signal pins, plus power terminals for battery and motor phases.

Board pinout - top

Board pinout - bottom

PinNameDescriptionDirection
1USB+5VUSB 5 VPower input
2USBGNDUSB ground, internally connected to BATT-Power input
3USBDMUSB data -I/O
4USBDPUSB data +I/O
5KEYInternally connected to BATT+Power output
6VBATSWInternally connected to BATT+ when controller is ONPower output
7GNDInternally connected to BATT-Power output
8POWERController ON/OFF input, active highInput
9DOUT2Generic digital outputOutput
10DOUT1Generic digital outputOutput
11HALLGNDHall sensors supply groundPower output
12HALLWHall sensor WI/O
13HALLUHall sensor UI/O
14HALLVHall sensor VI/O
15HALL+5VHall sensors supply voltagePower output
16CANLCAN Bus LOWI/O
17CANHCAN Bus HIGHI/O
18CANGNDCAN Bus groundPower output
19AGNDAnalog supply groundPower output
20GPIO1Analog input 1Input
21GPIO0Analog input 2Input
22AVCCAnalog supply voltagePower output
23DIN1+Digital input 1 +Input
24DIN1-Digital input 1 -Input
25DIN2+Digital input 2 +Input
26DIN2-Digital input 2 -Input
27COMRXDUART RXInput
28COMTXDUART TXOutput
29COMGNDUART groundPower output
30COM+10VUART supply 10 VPower output
BATT+Battery / power source input +Power input
BATT-Battery / power source input -Power input
AMotor phase APower output
BMotor phase BPower output
CMotor phase CPower output

Power connectors pinout

Amass XT60, MT60 (variant A)

Battery is connected via Amass XT60 male connector. Motor phases are connected via Amass MT60 female connector.

Amass XT60

Amass MT60

Signal connector pinouts (JST JWPF, variant J)

USB connector

JWPF_04T

JST JWPF 4-pin male (JM4_USB)

PinNameWire colourFunction
1USBDPWhiteUSB data+
2USBDMGreenUSB data-
3USBGNDBlackUSB ground
4USB+5VRedUSB 5 V supply

Power connector

JWPF_03R

JST JWPF 3-pin female (JF3_PWR)

PinNameWire colourFunction
1KEYBrownSupply in/out
2POWERYellowPower control input
3GNDBlackGround

Digital OUT1 connector

JWPF_02R

JST JWPF 2-pin female (JF2_DO1)

PinNameWire colourFunction
1VBATSWBrownSwitched battery output
2DOUT1GreenOpen-drain output

Digital OUT2 connector

JWPF_02R

JST JWPF 2-pin female (JF2_DO2)

PinNameWire colourFunction
1VBATSWBrownSwitched battery output
2DOUT2BlueOpen-drain output

UART COM connector (10 V variant)

JWPF_04R

JST JWPF 4-pin female (JF4_UARTCOM10)

PinNameWire colourFunction
1COMGNDBlackCommunication ground
2COMTXDWhiteUART TX
3COMRXDBlueUART RX
4COM+10VOrange+10 V output

Control I/O 1 (analog) connector

JWPF_04R

JST JWPF 4-pin female (JF4_CNTRL1)

PinNameWire colourFunction
1AGNDBlackAnalog ground
2GPIO1BlueAnalog input (brake)
3GPIO0GreenAnalog input (throttle)
4AVCCRedAnalog supply

CAN connector

JWPF_03T

JST JWPF 3-pin male (JM3_CAN)

PinNameWire colourFunction
1CANGNDBlackCommunication ground
2CANHYellowCAN high
3CANLGreenCAN low

PAS connector

JWPF_03T

JST JWPF 3-pin male (JM3_PAS)

PinNameWire colourFunction
1AGNDBlackAnalog ground
2DIN1-YellowPAS signal
3DIN1+RedPAS supply

Digital IN1 connector

JWPF_02T

JST JWPF 2-pin male (JM2_DI1)

The digital input can be used in three modes depending on configuration:

PinNameWire colourDifferential modePull-up modePull-down mode
1GreenDIN1- (signal-)GND (ground)DIN1+ (signal-)
2OrangeDIN1+ (signal+)DIN1- (signal+)AVCC (supply)

Digital IN2 connector

JWPF_02T

JST JWPF 2-pin male (JM2_DI2)

PinNameWire colourDifferential modePull-up modePull-down mode
1BlueDIN2- (signal-)GND (ground)DIN2+ (signal-)
2OrangeDIN2+ (signal+)DIN2- (signal+)AVCC (supply)

Motor sensors connector -- variant h (Hall)

JWPF_08T

JST JWPF 8-pin male (JM8_MSENS_H)

PinNameWire colourFunction
1HALLVGreenHall V signal
2HALLUBlueHall U signal
3HALLWYellowHall W signal
4Not connected
5HALL+5VRedHall supply
6Not connected
7HALLGNDBlackGround
8Not connected

Motor sensors connector -- variant r (Resolver / Digital)

JWPF_08T

JST JWPF 8-pin male (JM8_MSENS_RD)

PinNameWire colourFunction
1GPIO0GreenCos+ signal
2GPIO1BlueSin+ signal
3HALLWYellowSin- / Cos- signals
4Not connected
5HALL+5VRedSensor supply
6HALLUBrownData / Excitation-
7HALLGNDBlackGround
8HALLVOrangeClock / Excitation+

Signal connectors pinout (HIGO, variant H)

Combined wiring connector -- HIGO Z812AM P

HIGO Z812AM P

Connector pinAM pinFunction
BLUE21 GPIO0Accelerator input
RED22 AVCCPower for accelerator / brake controls
YELLOW28 COMRXDDisplay communication
WHITE20 GPIO1Brake input
GREEN29 COMTXDDisplay communication
ORANGE8 POWERActivation input
BROWN5 KEYPower output to switch
BLACK7 GNDGround
note

Not all functions of the AM controller can be covered by HIGO connectors. Some functions can be added by JST JWPF connectors. Usually USB, PAS sensor and lights are used on e-bikes in addition.

Motor connector -- HIGO Z910AM P

HIGO Z910AM P

Connector pinAM pinFunction
BIG YELLOWBMotor phase B
WHITE26 DIN2-Speed sensor
BIG BLUECMotor phase C
GREEN14 HALLVHall sensor A
BIG GREENAMotor phase A
YELLOW12 HALLWHall sensor C
BLUE13 HALLUHall sensor B
RED15 HALL+5VHall sensors power
BLACK11 HALLGNDHall sensors ground

Pin detailed specifications

Power supplies in the controller

The AM controller has several power supplies, each intended for specific use:

Power supplies block schematic

  • Battery power supply (pins 05 KEY and 07 GND) -- connected to BATT+ via internal fuse. Voltage is present even if the controller is powered off. Voltage equals V_BATT, maximum current 1 A. Sum of currents from KEY and VBATSW must not exceed 1 A.
  • Switched battery power supply (pins 06 VBATSW and 07 GND) -- connected via non-reversible 1 A fuse and switch. Active only when controller is powered on. Voltage equals V_BATT, maximum current 1 A.
  • DOUTs switched ground (pins 10 DOUT1 and 09 DOUT2) -- two open-drain power outputs, each with 1 A current capability. Designed to cooperate with pin 06 VBATSW.
  • Motor sensors power supply (pins 15 HALL+5V and 11 HALLGND) -- 5 V, maximum 50 mA. Not galvanically isolated from battery.
  • Analog power supply (pins 22 AVCC and 19 AGND) -- 5 V, maximum 20 mA. Not galvanically isolated from battery.
  • CAN power supply (pin 18 CANGND) -- galvanically isolated from battery, but connected with UART power supply.
  • UART power supply (pins 30 COM+10V and 29 COMGND) -- galvanically isolated, 10 V, maximum 100 mA.

Galvanic isolation

Some interfaces of the AM controller are galvanically isolated from the rest of the controller. Galvanic isolation (for isolated supply and for DINs) has a withstand voltage of 100 V DC.

Galvanic isolation block schematic

The AM controller may be equipped with up to three independent galvanically isolated sections:

  1. Isolated power supply -- output accessible on pins 29 COMGND and 30 COM+10V. CAN Bus and UART are powered from this supply.
  2. DIN1 -- when operating in differential mode, DIN1 is isolated from the rest of the controller.
  3. DIN2 -- when operating in differential mode, DIN2 is isolated from DIN1 and the rest of the controller.
note

DINs can be galvanically connected to the rest of the controller using internal pull-up/pull-down jumpers. This configuration is done during manufacturing and reflected in the MPN (Internal HW configuration). By default, pull-up jumpers are used for both DINs, so they are not galvanically isolated.

Power control circuit

Control electronics of the AM controller is powered from pin 5 KEY, connected to BATT+ via internal fuse. The power state is controlled by pin 8 POWER.

Preferred method. Switch connected between pins 5 KEY and 8 POWER. When the switch is closed, controller is powered on and remains on until the switch is opened. POWER pin is configured as activation input.

Pin 8 POWER is active high: controller is ON when voltage exceeds 5 V relative to GND, OFF when below 2 V or left unconnected (internal pull-down).

ON/OFF switch powering

Image generated by Eeschema-SVG12on / off switchGNDPowerstagebatt++batt--phase_AAphase_BBphase_CCheatsinkhbatteryPLUSMINUSphase_AAphase_BBphase_CCGNDPoweringPOWER19POWERGND21KEY22fuse insidethe controllersiliXcon controllerbatt++batt--phase_AAphase_BBphase_CCheatsinkhPOWER19POWERGND21KEY22

Power control pin specification

PinNameDescriptionDirectionParameters
5KEYInternally connected to BATT+Power output0 -- V_NOM, max 1 A
6VBATSWInternally connected to BATT+ when ONPower output0 -- V_NOM, max 1 A
7GNDInternally connected to BATT-Power output0 V, max 1 A
8POWERController ON/OFF input, active highInput0 -- V_NOM, max 10 mA
note

V_NOM is the upper limit of the operating voltage range.

Internal fuse

Pin 5 KEY is connected internally to BATT+ via an internal fuse in the default configuration. If the internal fuse is not present or is blown, connect pin 5 KEY to BATT+ via an external fuse rated at 1 A max. For correct battery voltage measurement, pins 5 KEY and BATT+ must be connected by low impedance.

Capacitor discharge

High quality capacitors with low ESR and low self-discharge are used in the AM controller power stage. No discharge resistors are used. Power stage capacitors may remain charged long after battery disconnection.

warning

Always check the voltage between BATT+ and BATT- terminals before handling the controller. Capacitors should be discharged by connecting a resistor between BATT+ and BATT- after battery disconnection.

USB communication interface

PinNameDescriptionDirectionParameters
1USB+5VUSB 5 VPower input5 V, max 300 mA
2USBGNDUSB ground, internally connected to BATT-Power input0 V
3USBDMUSB data -I/O0 -- 3.3 V, 5 V tolerant, max 10 mA
4USBDPUSB data +I/O0 -- 3.3 V, 5 V tolerant, max 10 mA
warning

USB pins are not galvanically isolated from the power stage. It is recommended to use a USB isolator. USB is intended for system maintenance (firmware update, off-line settings) and is not intended for run-time settings. Power off the controller and disconnect it from battery before connecting USB.

CAN Bus communication interface

The AM controller is equipped with one galvanically isolated CAN Bus interface, supporting speeds up to 1 Mbps. A 120 Ohm terminator can be connected during manufacturing (reflected in the MPN Internal HW configuration).

CAN Bus connection

PinNameDescriptionDirectionParameters
16CANLGalvanically isolated CAN LOWI/O0 -- 5 V, max 10 mA
17CANHGalvanically isolated CAN HIGHI/O0 -- 5 V, max 10 mA
18CANGNDGalvanically isolated CAN groundPower output0 V, max 100 mA
note

CAN is present in connectivity variants x and c.

UART communication interface (galvanically isolated)

Galvanically isolated serial communication interface. Typical usage is communication between the AM controller and a display on e-bikes. Can also be used with a UART-to-USB adapter for run-time diagnostics.

PinNameDescriptionDirectionParameters
27COMRXDGalvanically isolated UART RXInput0 -- 5 V, max 20 mA
28COMTXDGalvanically isolated UART TXOutput0 -- 5 V, max 20 mA
29COMGNDGalvanically isolated UART groundPower output0 V, max 100 mA
30COM+10VGalvanically isolated supplyPower output10 V, max 100 mA

Analog inputs (GPIO)

Two analog inputs with 12-bit resolution, synchronous operation, and up to 20 kHz sampling rate. Not galvanically isolated, but proper use of AGND and AVCC pins suppresses ground loops and reduces noise.

Analog input pins are equipped with internal pull-up and pull-down resistors configurable by software. Analog pins may also be used by some types of motor sensors; if so, they are not available for other functions.

Analog input connection

PinNameDescriptionDirectionParameters
19AGNDAnalog supply ground, connected to BATT-Power output0 V, max 20 mA
20GPIO1Analog input 1Input0 -- 6 V, max 10 mA (no pull-up/down)
21GPIO0Analog input 2Input-0.5 -- 6 V, max 10 mA (with pull-up)
22AVCCAnalog supply voltagePower output5 V, max 20 mA

Digital inputs (DIN1, DIN2)

Two digital inputs that can be galvanically isolated from the rest of the controller when operated in differential mode. Inputs DIN+ and DIN- are connected directly to an optocoupler diode with a 10 kOhm series resistor.

Digital input solder jumpers

Operating modes:

  • Differential -- galvanically isolated, triggered when DIN+ is more than 2 V above DIN-
  • Pull-up (default) -- activated by connecting DIN- to ground
  • Pull-down -- activated by connecting DIN+ to 5 V

Trigger voltage of the optocoupler is approximately 3.3 V.

Digital inputs can be used for communication with PLCs, for PWM/PPM measurement (up to 1 kHz, 1 us resolution), or for reading A/B encoder or STEP signals.

PinNameDescriptionDirectionParameters
23DIN1+Differential optocoupler input 1Input-5 V to V_BATT, max 5 mA
24DIN1-Differential optocoupler input 1Input-5 V to V_BATT, max 5 mA
25DIN2+Differential optocoupler input 2Input-5 V to V_BATT, max 5 mA
26DIN2-Differential optocoupler input 2Input-5 V to V_BATT, max 5 mA

Digital outputs (DOUT1, DOUT2)

Two power digital outputs, designed to cooperate with pin 6 VBATSW. Open-drain type: in ON-state, DOUT is connected to controller ground; in OFF-state, the pin is floating. Load should be connected between DOUT and VBATSW.

Open-drain output

warning

If a digital output is used for switching an inductive load (such as a contactor), a recirculation diode must be added to protect the board from voltage spikes. The diode should be placed as close as possible to the controller.

PinNameDescriptionDirectionParameters
6VBATSWInternally connected to BATT+ when ONPower output0 -- 60 V, max 1 A
7GNDInternally connected to BATT-Power output0 V, max 1 A
9DOUT2Generic digital outputPower outputOpen drain, max 1 A
10DOUT1Generic digital outputPower outputOpen drain, max 1 A

Motor position sensors

Three Hall sensors placed inside the motor in 120� span along one electrical revolution. Produces three digital signals (U, V, W) with two switchpoints per electrical revolution.

Hall signal

Electrical interface parameters:

  • Sensor supply: 5 V, 50 mA
  • Input type: with pull-up resistor (compatible with open-collector and push-pull sensor output)
  • Input impedance: 1 kOhm

Recommended Hall switches: Infineon TLE4946-L2 or similar bipolar Hall switches

Hall sensor connection to AM

UVW Hall sensor connection

PinNameFunction
11HALLGNDSensor ground
15HALL+5VSensor +5 V supply
13HALLUHall U digital input
14HALLVHall V digital input
12HALLWHall W digital input

Motor sensor pin specification

PinNameDescriptionDirectionParameters
11HALLGNDHall sensors supply ground, connected to BATT-Power output0 V, max 50 mA
15HALL+5VHall sensors supply voltagePower output5 V, max 50 mA
12HALLWHall W / Clock / Excitation / Enc REFI/O0 -- 3.3 V, 5 V tolerant
13HALLUHall U / Data / Excitation / Enc BI/O0 -- 3.3 V, 5 V tolerant
14HALLVHall V / Clock- / Common / Enc AI/O0 -- 3.3 V, 5 V tolerant
20GPIO1Resolver COS / Sin-Cos COS+Input0 -- 6.6 V, max 10 mA
21GPIO0Resolver SIN / Sin-Cos SIN+Input0 -- 6.6 V, max 10 mA

Winding temperature measurement

The AM controller can measure motor winding temperature using a temperature sensor connected between pin TEMP and pin HALLGND. Various sensor types are supported (resistance-based: NTC, PTC, KTY81).

Temperature sensor connection

Electrical specifications:

  • Maximum voltage: 3.3 V
  • Short-circuit output current: 0.5 mA
  • Resistance measurement range: 15 Ohm -- 10 kOhm

Recommended temperature sensors: KTY81, any NTC or PTC with suitable resistance value