1. Find the positive and negative poles of the power supply and the electric door lock wire: the positive pole refers to the end of the power supply with higher potential (potential); the negative pole refers to the end of the power supply with lower potential (potential). So we can use a multimeter to find the positive and negative poles. First turn on the DC setting and see which potential is higher or lower to tell the difference.
2. Connect the power cord and the electric door lock wire: the thick black wire is the negative pole of the battery, the thick red wire is the positive battery pole, and there is a thin red wire next to these two wires, which is the electric door lock wire. The correct way is to find the lock wire and connect the two positive and negative wires directly to the lock. When wiring, check carefully whether there are other positive wires in the line from the car body to the controller that are controlled by the lock.
3. Connect the white learning wire: Unplug the reversing wire before connecting. If the reversing wire has been pulled out, just rotate the motor forward and then pull out the learning wire.
4. How to test the quality of Hall: Hall faces you (seal side), with the pins facing downwards. From left to right they are: positive pole (switching Hall 4.5V to 24V, linear Hall 5V), negative pole, For output (signal), connect a resistor (1 to 10K) between the positive pole and the output. Connect a light-emitting diode between the negative electrode and the output. Use a multimeter to measure the voltage. The high level is equal to the power supply voltage and the low level is approximately equal to zero. After connecting the power, use a magnet to move closer or farther away from the Hall to see whether the light emitting diode changes. If there is change, it is good; if there is no change, it is bad.
5. Connect the instrument wires and find out the handlebar wires: -Generally, the handlebar wires are red, black, and blue, and the brake wires are brown or white and yellow. The handlebar wire is easier to find. Look for the 3-pole plug terminal at the end of the harness. The ones in red, black, and blue are the handlebar wires. The brake signal wire is a 2-pole plug, usually brown and yellow. You can find it by looking at the color. If you really can't find it, you can use a multimeter to measure it.
6. Connect the broken brake wire: The brake wire is usually a single purple wire, and there are also purple and black wires together. Some electric vehicle controllers have two broken brake wires behind them. As long as these two brake wires are connected together, the car will lose power. There are also two broken wires on the front brake lever, which are connected to the rear brake lever. The controller's disconnect wires are connected. You only need to connect the rear disconnect wire to the front brake disconnect wire.
7. Start of self-learning: When the circuit is turned on, it will accelerate quickly. After starting, be sure to slowly twist the speed control valve and then unplug the learning line.
How to determine what each line on a tram means:
Follow the motor to find the 3 phase lines and 5 Hall lines of the motor. Remove the handle to find 3 handle lines. Remove the brake handle to find 2 brake lines. When you disassemble the battery, you can see the "+" positive terminal of the power supply and the "-" negative terminal of the power supply. Generally speaking, search by large items and install by large items, which is the easiest and most accurate way to understand.

