geofft said:
Just tried this, things don't seem quite right.
Initially had rough startup, changed MOTOR_ROTOR_ERPS_START_INTERPOLATION_DEGREES from 20 to 0. This smoothed out startup but motor would frequently startup in reverse. Set this back to 20.
Changed MOTOR_ROTOR_OFFSET_ANGLE from 0 to 20, this again smoothed out startup and ran smoothly, but was noticeably down on torque compared to previous fw version and controller was very hot after a short test ride.
Please try the following process. I wrote it to install firmware instructions and if they are ok to you, I will put online:
Hall sensor connections
With the motor phase wires disconnected (it is recommended to insulate with tape the phase wires) and the hall sensor wires connected to the motor controller, use a multimeter to measure the voltage of each hall sensor wires.
Rotate the wheel slowly by hand in the backward direction and the motor will rotate (if you are using a geared motor, it is the only direction which the motor will rotate).
For the hall sensors to be correctly connected, you must make sure the voltages sequence is the following (and repeats over and over) - if not, you will need to exchange the wires up to get the right sequence:
Position | Blue wire: hall sensor C | Green wire: hall sensor B | Yellow wire: hall sensor A
2 | 0 volts | 5 volts | 0 volts
6 | 5 volts | 5 volts | 0 volts
4 | 5 volts | 0 volts | 0 volts
5 | 5 volts | 0 volts | 5 volts
1 | 0 volts | 0 volts | 5 volts
3 | 0 volts | 5 volts | 5 volts
Phase wires connections
Yellow wire: motor phase A
Green wire: motor phase B
Blue wire: motor phase C
After having hall sensors with the right sequence and with the motor controller turned off, connect the motor controller green wire phase B (middle wire on controller board, being the yellow and blue on the extreme to run the sides) to the motor green wire. Now connect the other wires with the same colors and finally try to run the motor starting with a low throttle value and with a protected lab power supply or battery pack with a BMS. If the motor don't work, makes noise, ask to much current, etc, exchange the yellow and blue wires between them, keeping the green wire - try again to run the motor.
If the previous ways was not ok for running the motor, you can try other motor phases combinations.