Lishui Controller Programming <TRENDING>

| Symptom | Likely Cause | Programming Fix | |---------|--------------|------------------| | Motor stutters at start | Wrong hall angle | Not adjustable – replace controller | | Weak acceleration | Current limit too low (P12) | Increase P12 by 5A max | | Overly strong regen | Regen level = 5 or 4 | Set P14 to 2 (smooth street) | | Speed limited to 25 km/h | Speed limit (P08) set to 50% | Raise to 100% | | Battery cuts off at half charge | LVC too high (overprotective) | Lower LVC by 2V only (e.g., 42V → 40V for 48V system) |


For the technically minded, the most powerful way to program a Lishui controller is to wipe the stock firmware and install Open Source firmware (often found on GitHub, developed by contributors like casainho or stancecoke).

  • Toolchain: You will need an ST-Link V2 programmer hardware and software like ST-Link Utility or OpenOCD to flash this firmware.
  • Goal: Go from 25km/h to 35-45km/h. Method: Find the hex value 0x19 (25 decimal) in the firmware. Replace with 0x32 (50km/h). Re-flash. Risk: Motor may overspeed beyond its mechanical limits (bearing failure).

    After programming:

    Lishui controllers are surprisingly capable once unlocked. A 35A tune on a 48V system can transform a sluggish scooter into a torque-monster. However, always monitor your motor temperature and battery BMS limits.

    Community resources:

    Have you successfully reprogrammed a Lishui controller? Share your parameter table in the comments below!


    Disclaimer: Modifying your controller may void warranties and violate local vehicle regulations. Proceed at your own risk.

    Lishui controllers are widely used in e-bikes and can be programmed using official tools or open-source alternatives. Programming typically involves adjusting hardware parameters or flashing new firmware to modify performance characteristics like speed limits and current levels Endless Sphere DIY EV Forum Official Programming Methods Official programming is generally done using the Lishui Controller Programmer software and a dedicated USB-to-serial adapter. opensourceebikefirmware.bitbucket.io Software & Hardware Lishui Programmer : The official Program Downloader is used to upload firmware files provided by the manufacturer or tech teams. USB Programmer

    : A standard USB-to-TTL adapter or a specific Lishui programmer is used to connect the computer to the controller's display port. Bluetooth App

    : Some modern Lishui controllers support programming via a smartphone app (iOS/Android), allowing users to adjust settings like current and language through a user-friendly interface. Key Programming Steps

    Install the necessary USB drivers for your programming device.

    Connect the programmer to the controller's display connector (ensure the battery is disconnected initially unless using a newer USB boost-powered programmer). Load the desired file into the software.

    Execute the "Program" command. Some versions require turning on battery power mid-process to initiate the flash. www.pedelecs.co.uk Open Source Firmware (OSF)

    Many enthusiasts use open-source projects to bypass factory restrictions, such as speed locks or rigid throttle mapping. Endless Sphere DIY EV Forum EBiCS Firmware : A popular open-source project on

    specifically for Lishui FOC (Field Oriented Control) controllers. It allows for highly customized motor control and removes standard speed limits. Alternative Tools : A specialized display that can directly modify Lishui settings

    (LSW settings) without a PC, including current limits and assist levels.

    : For advanced firmware modifications or if the controller is read/write protected, a hardware programmer like an ST-Link V2 may be required to flash the microcontroller directly. Endless Sphere DIY EV Forum Key Settings Often Modified Current Limit

    : Adjusts the maximum power output (measured in Amps) the controller will pull from the battery. Voltage Cutoff

    : Sets the low-voltage limit to protect the battery from over-discharging. Assistance Levels

    : Defines how much motor power is provided at various pedal-assist stages. Speed Limit

    : Lishui controllers often come with a factory limit that can be adjusted or removed via the firmware update tools. Endless Sphere DIY EV Forum wiring guide for the USB adapter or instructions on how to set up the EBiCS open-source firmware Lishui Controller Program Downloader Instruction

    Lishui controllers are widely used in ebikes and can be programmed through two primary methods: standard parameter adjustment via the display and deeper firmware flashing using dedicated hardware. 1. Standard Parameter Adjustments (Display)

    Most Lishui-based ebikes (like those using SW900 or KT-LCD displays) allow you to modify basic performance settings through a built-in menu. Common parameters include: lishui controller programming

    P01–P03: Screen brightness, units (km/h vs. mph), and battery voltage (24V, 36V, 48V, etc.).

    P06–P08: Wheel diameter, motor magnet count, and the maximum speed limit. P13: Controller amperage setting to adjust power output. 2. Firmware Programming (Advanced)

    For deeper customization (e.g., Field Oriented Control (FOC) tuning or current limits), you must flash the controller directly using a computer.

    Official Tools: Lishui provides a "LSH Programmer" tool and specific .lsh encrypted firmware files. To use these, you typically need a Lishui-specific USB programming stick (FPS2) or a compatible USB-to-UART adapter connected to the display cable's RX/TX pins.

    Open Source Alternatives: Projects like EBiCS_Firmware and the Flexible OpenSource Firmware allow you to bypass factory restrictions. These often require an ST-Link V2 programmer to connect directly to the controller’s internal STM32 pins.

    Custom Settings: By unchecking "Keep Current Settings" in official Lishui tools, you can sometimes manually set new maximum current and low-voltage cutoff values. 3. Necessary Hardware Connection Point Display Buttons Handlebar Display Basic speed and PAS level limits. USB-to-UART Adapter Display Connector Parameter adjustment and .lsh firmware updates. ST-Link V2 Internal PCB Pins Complete open-source firmware replacement.

    Safety Warning: Always use a fuse in your power supply when flashing firmware to prevent permanent damage to the controller or battery if a short circuit occurs.

    Lishui controllers (LS), manufactured by the Nanjing Lishui Electronics Research Institute, are widely used in e-bikes for their smooth Field-Oriented Control (FOC) performance. Programming these units allows riders to fine-tune torque delivery, adjust current limits, and even install custom open-source firmware. Essential Programming Tools

    To interface with a Lishui controller, you need specific hardware to bridge the gap between your computer and the controller’s display or programming port:

    USB-to-Serial Adapter: A standard FT232RL-based adapter is the industry standard for stable communication.

    Programming Cable: Depending on your controller model, you may need a Julet 5-pin or 4-pin waterproof connector cable that breaks out into RX, TX, GND, and VCC.

    ST-Link V2 (Optional): Required for flashing deep firmware or unbricking controllers that do not have a bootloader accessible via the display port. The Official Programming Process

    Official programming is typically done using the Lishui LSH_File_Update_Tools. This utility allows you to upload .lsh firmware files provided by manufacturers or tech teams.

    Driver Setup: Install the appropriate USB serial drivers. If the software shows a COM port number, the connection is successful.

    Connection: Connect the adapter to the controller's display port. Most modern controllers can be "self-powered" by the USB port, but older versions require the e-bike battery to be connected and switched on during the process.

    Loading Firmware: Use the "Local File" button to load your .lsh file.

    Adjusting Basic Settings: By unchecking the "Keep Current Settings" box, users can often manually adjust the maximum current and undervoltage cutoff limits before flashing.

    Flashing: Press Program (F5) and wait for the "Write successful" confirmation. Third-Party & Open-Source Options

    For advanced users, the official software can be restrictive. Several community-driven alternatives exist:

    EggRider V2 Display: A popular aftermarket display that allows you to configure Lishui settings directly from a smartphone app via Bluetooth.

    EBiCS Open Source Firmware: A community project on GitHub that provides free FOC firmware for Lishui controllers, offering features like regenerative braking and customized torque sensing.

    XPD (Extended Parameter Designer): Older software used for some sine wave controllers to adjust ramp times and PAS (Pedal Assist) sensitivity. I have a Lishui Controller .lsh firmware file lets mod it

    To program a Lishui controller, you typically use a dedicated USB programmer and the official LSH_File_Update_Tools software. This allows you to flash firmware files (with a .lsh extension) or adjust critical parameters like current and voltage limits. 🛠️ Hardware Requirements | Symptom | Likely Cause | Programming Fix

    Lishui USB Programmer: A specialized stick that connects your PC to the controller's display port.

    Connection Cable: Typically a 5-pin extension or adapter cable.

    Computer: Running Windows to host the Lishui programming software. 💻 Software Setup

    Install Drivers: Run the device driver installer provided by Lishui before plugging in the USB stick.

    Verify Connection: Open the programming software; the "Ports" area should show a COM number (e.g., COM3) if the driver is correctly installed.

    Load Firmware: Click "Local File" to select your .lsh firmware file.

    Tip: Uncheck "Keep Current Settings" if you want to manually adjust max current or undervoltage limits before flashing. ⚡ The Programming Process

    Power Source: Newer USB programmers (post-2015) often use "USB boost power" and don't require the e-bike battery during flashing. Older versions require you to switch on the battery power after hitting the program button. Flash Action: Press Program (F5) to begin the upload.

    Completion: Once finished, power cycle the controller (turn the display off and on) to save and activate the new settings permanently. 🔓 Advanced Customization

    Open Source Firmware: For deep customization (like Sine Wave/FOC control), some users flash EBiCS/EBiCS_Firmware from GitHub using an STLink V2 instead of the standard USB tool.

    Hidden Menus: On some Lishui-compatible LCDs, holding "+" and "-" simultaneously enters a parameter menu (often P08 for speed limits). If you'd like to dive deeper, let me know: What is your specific controller model? (e.g., LSW1250)

    Are you trying to increase speed, change PAS levels, or fix a bug? Do you have the USB programming stick?

    Lishui Controller LSH Programmer User's Manual Hardware List

    Programming a Lishui (LS) controller typically involves three levels: adjusting basic parameters via an LCD display, using the official Lishui software for firmware updates, or installing open-source firmware for advanced control. 1. Basic Parameter Setup (via Display)

    Most Lishui-powered e-bikes use standard displays (like the SW900 or KT-LCD3) to modify system behavior without a computer. Accessing the Menu : Hold the UP and DOWN buttons simultaneously for 2-3 seconds. Key Parameters : System voltage (e.g., 36V, 48V). : Wheel diameter in inches (crucial for speed accuracy). : Speed limit (set to 100 for no limit). : Drive mode (0 = PAS only, 1 = Throttle only, 2 = Both). : Controller current limit in Amps. 2. Official Firmware Updates

    Lishui provides a proprietary tool for flashing new firmware files (usually in Endless Sphere DIY EV Forum Required Hardware : A dedicated USB stick (FPS2)

    or a USB-to-TTL adapter connected to the controller's display port. LSH File Update Tool Lishui Official Website

    : Connect the RX/TX pins of the adapter to the TX/RX pins of the controller, select the

    file, and power on the controller when prompted by the software. Endless Sphere DIY EV Forum 3. Advanced Open-Source Programming

    For users wanting Field Oriented Control (FOC) or silent motor operation, open-source alternatives are available on GitHub. EBiCS Firmware

    : A popular FOC firmware that supports Bafang and Kunteng displays. Flexible OpenSource Firmware

    : Provides high efficiency and custom torque/speed control modes. Hardware for Flashing : These typically require an ST-Link V2

    programmer because you are overwriting the original STM32-based chip firmware rather than just updating parameters. Summary of Connection Pins For the technically minded, the most powerful way

    When making a custom programming cable, use the standard 5-pin display connector pinout: (Red): Battery Positive (Blue): Lock/Signal Wire (Black): Ground (Green): Receive (Yellow): Transmit Are you trying to unlock the speed limit reflash the entire firmware for better motor performance?

    Programming a Lishui controller typically involves two paths: using the official Lishui parameter setting software for minor adjustments or flashing custom open-source firmware for advanced control. 1. Official Lishui Programming (LSH Files)

    Most modern Lishui controllers (like the LSW-675) come with a pre-installed bootloader that allows firmware updates via the display connector.

    Hardware Required: A USB-to-UART serial adapter or the official Lishui "USB program device". Software: The Lishui Controller Programmer utility. Connection: Disconnect the display from the controller.

    Connect the USB adapter to the controller's display cable. Ensure RX connects to the controller’s TX and TX to the controller’s RX.

    The "Secret" Menu: Clicking the "Clear Info" button multiple times in the programmer software unlocks a hidden File Conversion tab. This allows you to convert standard hex files into .LSH files, which are compatible with the Lishui bootloader.

    Power Tip: If your programmer was made after Sept. 2015, it may be "USB boost powered" and won't require the e-bike battery to be connected during flashing. Otherwise, you must power on the battery when the software prompts you. 2. Advanced Open-Source Firmware (OSFW)

    For total control over motor performance (like Field Oriented Control/FOC), enthusiasts use custom firmware such as EBiCS or CloneYCRS. Lishui "Open Source Firmware" project / KingMeter 5S

    Lishui controllers are a staple in the e-bike industry, known for their versatility and smooth Field-Oriented Control (FOC). Whether you're looking to tweak speed limits, adjust pedal assist (PAS) sensitivity, or completely overhaul the system with open-source firmware, understanding Lishui controller programming is the key to unlocking your bike's full potential. Programming Methods: From Basic to Advanced

    There are three primary ways to modify a Lishui controller, ranging from simple display settings to deep firmware flashing. 1. Display-Based Parameter Tuning

    For most riders, "programming" happens via the e-bike’s LCD display (e.g., SW900, EN06, or KingMeter). This method allows you to change behavior without extra hardware.

    Access: Usually involves holding the "Up" and "Down" buttons simultaneously for a few seconds. Key Parameters: P03/P08: Voltage and Speed limits. P05/P09: PAS levels and magnet counts. P13: Maximum amperage (current) for the controller. 2. Official Lishui Programming Software

    If display settings aren't enough, you can use Lishui’s official LSH_File_Update_Tools. This requires a dedicated USB-to-serial programming cable (often called a "USB Stick FPS2") that connects to the 5-pin display port on the controller.

    The .LSH File: Official firmware updates come in .lsh format.

    Secret Menus: Users have discovered that clicking the "Clear Info" button multiple times in the official tool can unlock a "File Conversion" menu for advanced configurations. 3. Open Source Firmware (EBiCS)

    For enthusiasts who want total control—like adding torque sensor support or regenerative braking—the EBiCS (Lishui Open Source Firmware) project is the gold standard.

    Hardware Required: An ST-Link V2 programmer is needed to flash the STM32 chip inside the controller directly.

    Key Advantage: You can bypass manufacturer restrictions, customize throttle curves, and even optimize for specific motors using a user-friendly GUI. Step-by-Step: Programming via USB Tool I have a Lishui Controller .lsh firmware file lets mod it



    Title: Mastering Lishui Controller Programming: A Practical Guide to Unlocking Performance

    Introduction: The Heart of Modern E-Mobility If you’ve ever torn down an electric scooter, golf cart, or an entry-level EV, chances are you’ve encountered a Lishui controller. As one of the world’s largest OEM manufacturers, Lishui powers millions of vehicles. But out of the box, these controllers are often locked down for safety and compliance.

    To truly optimize throttle response, adjust speed limits, or fine-tune regenerative braking, you need to learn the art of Lishui controller programming.

    In this guide, we’ll break down the hardware requirements, software setup, and step-by-step process to safely reprogram your Lishui controller.


    Most Lishui programmable controllers do not use a standard USB port. Instead, they utilize a UART interface converted to USB.