SIMULATION ilima pump demo — the real unit's web interface, running on invented data. No unit is attached. ← all ilima demos
KPJ Automation

KPJ Pump Controller

KPJ Automation
WiFi Blynk MQTT Uptime
⚡ Quick Start
  1. Power the unit: 12-24V DC on VIN / GND terminals.
  2. First boot starts AP: KPJ-Pump-Ctrl (password: kpjpump1)
  3. Connect your phone/laptop to that network, open http://192.168.4.1
  4. Tap WiFi in the nav bar, enter your network credentials, save.
  5. After restart visit http://kpjpump.local (or check router for IP).
  6. Go to Settings, choose mode, calibrate sensor, set setpoint.
  7. Switch to AUTO mode on the dashboard. Done.
🔌 Hardware Connections
TerminalGPIOFunctionNotes
VIN/GND--Power (12-24V DC)Polarity protected. Use clean industrial PSU.
OUT1/COM1/NC127Pump Relay (10A SPDT)Connect pump to NO-COM for normally-open.
IN119Float Switch (NPN pull-up)Switch between IN1 and GND. LOW = tank full.
IN218Fault Reset ButtonMomentary switch to GND. Clears latched faults.
IN35Flow Sensor (pulse)Hall-effect meter. Signal to IN3, power from 5V/GND.
VI136Pressure/Process Sensor4-20mA or 0-10V selectable in Settings.
VO1/IO125VFD Analog Setpoint0-10V or 4-20mA via SW1 DIP switch on board.
A+ / B-1/3/22RS485 BusModbus RTU. Add termination at end of cable run.
⚠ Never exceed 10A / 250VAC on relay contacts.
💡 NPN digital inputs are optocoupler-isolated. Industrial 24V sensors connect directly to IN1-IN4 with common/negative to GND.
⚙ Operating Modes
Pressure Control PRESSURE ▼

Maintains constant pressure using sensor feedback and pump start/stop.

  • Setpoint: Target pressure in your engineering units.
  • Hysteresis: Pump starts at setpoint - dead-band, stops at setpoint. Prevents rapid cycling.
  • VFD Output (VO1): Tracks setpoint as speed reference when enabled.
  • Float switch: Can act as overflow stop. Disable in Settings if not connected.
Supply Fill - Float Mode SUPPLY/FLOAT ▼

Simple level control. Pump runs when float says EMPTY, stops when FULL.

  • Float switch on IN1: LOW signal = FULL (NPN inversion)
  • Suitable for storage tanks, reservoirs, dams
Supply Fill - Timer Mode SUPPLY/TIMER ▼

Runs the pump for a fixed duration, a set number of times per day.

  • Set Run Duration (minutes) and Runs Per Day
  • Cycles are evenly spaced through 24 hours
  • Float switch pauses the pump without resetting the timer
  • Best for irrigation schedules or timed top-up systems
Supply Fill - Volume Mode SUPPLY/VOLUME ▼

Pumps a precise volume per cycle, measured by the flow meter.

  • Set Target Volume (litres) and Wait Interval (hours)
  • Requires flow meter on IN3 calibrated in Settings
  • Float switch pauses dispensing without losing count
  • Best for dosing, chemical injection, metered delivery
🛡 Safety System

Dry-Run Protection

Stops the pump if no water is detected while running. In Pressure mode: trips if pressure stays below Min Pressure for the Dry-Run Time. In Supply mode: trips if flow stays below 0.1 L/min (requires flow meter enabled). Only active while the pump relay is energised.

Overpressure Protection

Stops the pump if pressure exceeds the trip level for longer than the trip delay. Pressure mode only.

Sensor Fault Protection

Stops the pump if the analog input voltage is outside the expected range (open wire, short circuit, wrong type).

Auto-Restart

After a fault, waits the Restart Delay then retries automatically up to the configured number of Attempts. After 60 s clean running, the counter resets. Fault card shows RETRY 1/3, RETRY 2/3 etc.

⚠ Always investigate the cause before resetting. Repeated dry-run faults usually mean the water supply is exhausted or the inlet is blocked.
🌐 Remote Connectivity

MQTT Topics

TopicDirectionPayload
pump/statusPublish (5s)JSON with all live values
pump/cmd/setpointSubscribeNumeric value
pump/cmd/runSubscribe1 or 0
pump/cmd/modeSubscribeAUTO or MANUAL
pump/cmd/resetfaultSubscribe1

OTA Firmware Updates

In Arduino IDE go to Tools > Port and select the kpjpump network port. OTA password: kpjota1

Blynk Virtual Pins

PinDirValue
V0RPressure
V1R/WSetpoint
V2R/WPump (0/1)
V3R/WMode (0=AUTO)
V4WReset fault (send 1)
V5RFlow rate L/min
V6RTotal litres
V7RState string
🔧 Troubleshooting
SymptomLikely CauseFix
SENSOR_FAULT on startupNo sensor wired or wrong typeCheck VI1 wiring or disable Sensor Fault in Settings
DRY_RUN immediatelyFlow meter not connectedDisable Flow Meter in Settings > Connected Hardware
Pressure reads zeroWrong calibration or wiringCheck VI1, verify voltages in Settings sensor section
Float not workingWrong polarity or disabledNPN: switch to GND. Enable float in Settings.
WiFi not reconnectingCredentials not savedRe-enter via AP mode (connect to KPJ-Pump-Ctrl)
Dashboard shows --Browser cannot reach /statusCheck WiFi, try http://kpjpump.local directly
Pump short-cyclingHysteresis too smallIncrease dead-band in Settings > Pressure Setpoint

KPJ Automation - Technical Support

📞 +27 67 630 5732 ✉ KPJmachines@gmail.com

KPJ Pump Controller V8.1  |  ESP32 + ES32C14 Expansion Board