Control a Kamoer DIP1500 V2 peristaltic pump over RS485 using Modbus RTU.
- Forward / backward rotation
- Adjustable RPM
- ESP32 or compatible board (e.g. SparkFun ESP32 ThingPlus)
- MAX485 RS485 transceiver module
- Kamoer DIP1500 V2 peristaltic pump
- ModbusMaster Arduino library
Connect to RS485 A/B and GND lines as follows:
Pump Pin | Function | Connects To |
---|---|---|
2 | RS485 B | MAX485 B |
3 | RS485 A | MAX485 A |
6 or 8 | Signal GND | ESP32 GND / MAX485 GND |
MAX485 Pin | Connects To ESP32 |
---|---|
VCC | 3.3V |
GND | GND |
RO | RX pin (e.g. GPIO 33) |
DI | TX pin (e.g. GPIO 32) |
DE/RE | Control pin (e.g. GPIO 5) |
A/B | To Pump Pins 3/2 |
Note: Tie DE and RE together and control both with one GPIO.
Ensure the following settings on the pump display:
C006
: Set to RS485 modeC012
: Modbus address = 1C013
: Baud rate = 9600 (option 3)
#include <SlipPump.h>
SlipPump pump(1, Serial1, 5, 32, 33); // address, serial, DE/RE, TX, RX
void setup() {
Serial.begin(115200);
pump.init();
pump.forward(100);
}
void loop() {
// your loop code
}