Parallel Pump Control with Arduino

I am using fuelab prodigy series pump. Pumps are parallel to each others. I want to control speed of them. This pumps include electronic circuit driver. So I dont need any driver. I add the pictures of my system and datasheet. How I can control parallel pumps with one pot. I want to control their speeds at the same time simultaneously. Is it possible to achieve with arduino ? What I should add to code for that purpose ? Happy days

I add the pictures of my system and datasheet

Where ?

aliduran: What I should add to code for that purpose ?

What code?

The pictures of system and datasheet were added. Code :

#include <Wire.h> //I2C lib
#include <LiquidCrystal.h> // LCD lib
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

int pot_pin = A2;
int pump1_pwm= 5;

int pot_init= 0;
int pump1_init= 0;

void setup() {

Serial.begin(9600);

pinMode(A2,INPUT);
pinMode(5,OUTPUT);
lcd.begin(20,4); // A4 - A5 connection SDA - SCL
lcd.backlight();

}

void loop() {

void pump_control(void){

pot_init = analogRead(pot_pin);

pump1_init = map(pot_init, 0, 1023, 0, 255);

analogWrite(pump1_pwm, pump1_init);

Serial.print(“Pot = " );
Serial.print(pot_init);
Serial.print(”\t motor = ");
Serial.println(pump1_init);
delay(2);

}

The pictures of system and datasheet were added

I still can't find them.

As to the code, did you read read this before posting a programming question at the top of the forum page ? It has some useful advice on how to format and post code to make it easy to read and copy to an editor for examination

You appear to have the definition of the pump_control() function inside the loop() function and have made a mistake with the name of the library when creating an instance of it.

I reorganized the code. I also added pictures again.



#include <Wire.h> //I2C lib
#include <LiquidCrystal.h> // LCD lib
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

int pot_pin = A2;
int pump1_pwm= 5;

int pot_init= 0;
int pump1_init= 0;

void setup() {

Serial.begin(9600);
pinMode(A2,INPUT);
pinMode(5,OUTPUT);
lcd.begin(20,4); // A4 - A5 connection SDA - SCL
lcd.backlight();

}

void loop() {

pump_control();

}
void pump_control(void){
pot_init = analogRead(pot_pin);
pump1_init = map(pot_init, 0, 1023, 0, 255);
analogWrite(pump1_pwm, pump1_init);}

I reorganized the code. I also added pictures again.

You seem to have posted the code incorrectly by not using code tags and I still can't find where you added the pictures. How and where are you adding them ?

UKHeliBob:
How and where are you adding them ?

Access to i.hizliresim.com was denied
You don’t have authorization to view this page.
HTTP ERROR 403