• Hello ES! We could use some help to get us past the finish line on building the new knowledgebase for the forum.
    Can you donate? Please see our fundraising page. Thank you!

Lishui "Open Source Firmware" project / KingMeter 5S

Then I have another question. Maybe you know which pins on the PCB are responsible for the PAS sensor or the throttle input.
Is it possible to add these connections so that they work without changing the firmware code?
 
I took photos of all the connectors on the controller (except the battery power and motor wires), as well as the pin labels on the PCB. Hopefully this will help identify the pinout.27811.jpg
 

Attachments

  • 27812.jpg
    27812.jpg
    2.6 MB · Views: 2
Please don't spam this Lishui thread with Mivice issues.
There is an own thread for the Mivice controllers:

@DocMAX uses Lishui controllers meanwhile ;)
 
This is no limitation of the firmware, but the characteristics (Kn constant) of your motor. You will have to increase the battery voltage to get higher speeds.
You can check this with your lab power supply easily by varying the voltage at full throttle.
Can I ask you a question regarding the PAS (pedal assist) speed control?
I tested several displays with the No.2 protocol: S866 and LCD-L5. With all of them, I have the same problem: the PAS always runs at maximum speed, regardless of the PAS level selected.
The second problem is the throttle. The throttle has a very short travel range — I only need to press it slightly, and the speed already reaches maximum. It seems that the whole throttle range is not being used.
Is there any way to fix these problems?
Thank you very much for your answer!
 
As written before. Don't test without load. The firmware controls the motor current, not the speed.
Without load, the max speed is reached with minimum current. If you don't want to test on the road, I recommend a roller trainer to apply load on the motor.

I received your answer regarding the PAS system, thank you very much!

And regarding the throttle: is there a way to adjust it so that the full throttle range is used? The throttle reaches maximum speed after only a small amount of movement, so the whole range of the handle is not being utilized.

Thank you again for your help!
 
The throttle reaches maximum speed after only a small amount of movement,
Third time: the throttle position defines the setpoint for the motor current, not for the speed.
We just had a discussion about the throttle voltage output in dependence on the throttle travel, there are throttles, that are only providing signal changes on a half of the mechanical travel....
 
Last edited:
Third time: the throttle position defines the setpoint for the motor current, not for the speed.
We just had a discussion about the throttle voltage output in dependence on the throttle travel, there are throttles, that are only providing signal changes on a half of the mechanical travel....
Thank you very much! I'll read through the earlier discussion. I just thought the throttle sensitivity could be adjusted in the GUI.

Have a great day!
 
I'll read through the earlier discussion
As mentioned before, you don't have to read through hundreds of posts, but just read the Wiki :)


1784117016158.png

throttle settings​

Throttle offset​

this is the ADC-value at closed throttle. Print out adcData[1] in debug mode, to see the value. Set Throttle offset to a little higher value to prevent the motor starting, if the value drifts a little with time or temperature. Read adcData[6] for the torque signal on AD1.

Throttle max​

this is the ADC-value at full throttle. Set a little lower than the printed value to get the full current.
 
Last edited:
Как уже упоминалось, вам не нужно читать количество сообщений, достаточно просто почитать Вики.:)


View attachment 390519
Entschuldigung Sie, ich bin wahrscheinlich kein aufmerksamer Mensch:)
 
As mentioned before, you don't have to read through hundreds of posts, but just read the Wiki :)


View attachment 390519
I’m sorry, but I don’t understand how to perform the step for determining the minimum and maximum throttle values.

I connected the controller to the PC, flashed the Debug firmware using the GUI, and then connected the controller to USB again with the power supply connected.

However, the Offset and Max values in the GUI do not change.

Could you please explain how I can see the ADC values for the closed and full throttle positions?
 
The voltage supplied to the throttle is 4.31V.
Throttle voltage at rest: 0.81V.
Voltage when the motor starts: 0.86V.
Voltage at maximum speed: 0.96V.
Voltage with the throttle fully pressed: 3.55V.
Could you please advise what values I should enter in the Lishui firmware GUI for the throttle settings?
 
Back
Top