Lishui Controller Programming -
Lishui controllers are a cornerstone of the electric bike (e-bike) industry, renowned for their versatility, reliability, and robust performance in brushless DC (BLDC) motors. Widely used by brands like Rad Power Bikes, Juiced Bikes, and numerous DIY conversion kits, these controllers provide essential power management. However, a controller is only as good as its programming. Understanding Lishui controller programming —or specifically, the KT-series (KunTeng) controllers often manufactured by Lishui—allows you to unlock hidden speed, customize acceleration, manage battery efficiency, and tailor your riding experience. This guide explores the essentials of Lishui controller programming, focusing on user-accessible settings via a LCD display. Understanding the Basics Most Lishui-based controllers used in consumer e-bikes are programmed through a compatible LCD display (such as the KT-LCD3, LCD5, or LCD8). How to Enter Programming Mode: Turn on your display. Hold down both the Up and Down buttons simultaneously for 3–5 seconds. The screen will shift to the parameter settings menu (usually showing P1 flashing). Core Parameter Settings (P-Settings) The P-Settings handle the basic communication between the motor, battery, and controller. P1: Motor Magnet Configuration (Crucial) Purpose: Configures how the speed is read based on the number of motor magnets. Setting: For geared motors, it is typically set to 87 . For direct drive motors, it is often 46 . P2: Speed Sensor Pulses Purpose: Determines how many pulses the motor gives per revolution. Setting: Generally set to 0 for direct drive, or 1–6 for geared motors, depending on the magnet count. P3: Power Assist Control Setting 1: Provides full throttle power regardless of the current assist level. Setting 0: Limits throttle power based on the chosen PAS (Pedal Assist) level. P4: Throttle Startup Setting 0: Throttle works from a dead stop (0 km/h). Setting 1: Throttle only works after pedal assist starts (requires pedaling first). P5: Battery Voltage Management Purpose: Calibrates the battery display for accuracy. Setting: 12 for 36V, 15 for 48V, 22 for 52V systems. Advanced Configuration Settings (C-Settings) After finishing P-settings, navigating further (or entering again) often reveals C-settings , which control deeper functionality. C1: Pedal Assist Sensor (PAS) Input Purpose: Selects the sensitivity of your pedaling sensor. Setting: Generally 02 or 07 for standard split sensors. C5: Current Management Purpose: Limits the overall motor current to manage battery draw or offer a gentler startup. Setting: 10 is maximum power. Lowering it reduces max current. C7: Cruise Control Purpose: Enables or disables the ability to hold a constant speed. Setting: 1 enables cruise, 0 disables it. Activated by holding 'Down' while riding. C12: Low Voltage Cutoff Purpose: Protects the battery from over-discharging. Setting: Adjustable based on your specific battery pack chemistry. C13: Regenerative Braking (Direct Drive Only) Purpose: Sets the strength of motor braking to charge the battery. Setting: 0 (off) to 5 (maximum). Tips for Customizing Your Lishui Controller Always Note Original Settings: Before changing anything, take a photo or write down the factory settings for P1–P5 and C1–C14. Save Your Changes: Press and hold the Up and Down buttons again for 3 seconds to exit and save the new parameters. Optimize Speed: If your speed reading is wrong, adjust P1 . Increase Acceleration: Set P3 to 1 and C5 to 10 for maximum, immediate power. Summary Table of Common Parameters Common Settings P1 Motor Magnets 87 (Geared) / 46 (Direct) P3 PAS/Throttle Logic 1 (Independent) / 0 (Linked) P4 Throttle Startup 0 (Instant) / 1 (Pedal First) P5 Battery Level 12 (36V), 15 (48V), 22 (52V) C1 PAS Sensor Type C5 Max Current 10 (Highest) C7 Cruise Control 1 (On) / 0 (Off) C13 Regen Brake 0-5 (0=Off) Disclaimer: Improper programming can damage the controller or motor. Always ensure settings are within the safety limits of your battery and motor components. To get the most out of your Lishui controller, it's often worth checking if your KT-LCD3 User Manual has specific notes for your motor type. If you'd like, I can: Help you interpret the specific error codes your screen might be showing. Suggest the best settings for maximizing battery range vs. maximum speed . Walk you through the wiring diagram for a custom installation. What specific aspect of your e-bike's performance are you trying to improve?
Lishui Controller Programming — A Practical Guide Introduction Lishui controllers (also spelled LiShui or Li Shui) are programmable motion/temperature/controllers used in industrial automation and embedded applications. This guide covers typical hardware and software concepts, programming workflows, common features, and a step‑by‑step example to get you started building reliable control programs.
Assumption: you are working with a typical Lishui programmable controller that supports ladder logic (LD), function block diagram (FBD), and/or structured text (ST), and offers serial/USB/Modbus communication and standard I/O. Adapt specifics to your exact model and firmware.
1. Typical capabilities and architecture lishui controller programming
CPU module: runs control logic, stores programs and parameters. I/O modules: digital inputs (DI), digital outputs (DO), analog inputs (AI), analog outputs (AO). Communication: RS‑232/RS‑485 (Modbus RTU), Ethernet (Modbus TCP), USB, sometimes CAN. Programming languages: Ladder Diagram (LD), Function Block Diagram (FBD), Structured Text (ST), Instruction List (IL) depending on model. HMI/Operator panels: built‑in or external via protocols (Modbus). Timers/counters, PID loops, math functions, data logging, alarms, and recipe handling.
2. Tools and setup
Manufacturer's IDE (Windows common): download and install the specific Lishui programming software for your model. USB/Serial drivers: install FTDI/CH340/Prolific if required. Communication settings: baud rate, parity, stop bits, Modbus address for serial. Safety: power down wiring when changing I/O; follow lockout/tagout and local electrical codes. Lishui controllers are a cornerstone of the electric
Checklist before programming:
Model and firmware version of controller. Wiring diagram for inputs/outputs and power supply. Device addresses for networked peripherals. Backup of existing program (if present).
3. Programming workflow
Create new project in IDE — select controller model and CPU slot. Configure I/O mapping and communication ports. Define global variables/tags (names, data types: BOOL, INT, REAL, STRING). Build logic using chosen language (LD/FBD/ST). Add PID controllers or math blocks as needed. Implement alarms, interlocks, and safety conditions. Simulate (if IDE supports) or compile to check errors. Download program to controller and run in test mode. Monitor variables online, adjust tuning and setpoints. Save project and document version/revisions.
4. Programming patterns and best practices