Hello. Ive bought a VMA421 waterpump. I searched the Web and see that the POWERAdapter doesn’t exist anymore? What should i do? How can i connect the VMA421 to Arduino?
Hi @jhelbling,
The VMA421 has a working voltage range of 5 VDC to 12 VDC.
We have several adaptors on our website who can provide this voltage. We do recommend at least 5W.
You can use a mosfet module (VMA411) or motor drive board (VMA207) to control the pump via the Arduino.
Kind regards,
VEL342
Hi @jhelbling,
Have a look at the manual of the VMA207 https://www.velleman.eu/downloads/29/vma207_a4v01.pdf
You will need to download the library https://www.velleman.eu/downloads/29/vma207_afmotor.zip
Connect the shield like this
And use this code:
#include <AFMotor.h>
AF_DCMotor motor(3); //number of motor (we use M3)
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Motor test!");
// turn on motor
motor.setSpeed(200);
motor.run(RELEASE);
}
void loop() {
uint8_t i;
Serial.print("tick");
motor.run(FORWARD);
for (i=0; i<255; i++) {
motor.setSpeed(i);
delay(10);
}
for (i=255; i!=0; i--) {
motor.setSpeed(i);
delay(10);
}
Serial.print("tock");
motor.run(BACKWARD);
for (i=0; i<255; i++) {
motor.setSpeed(i);
delay(10);
}
for (i=255; i!=0; i--) {
motor.setSpeed(i);
delay(10);
}
Serial.print("tech");
motor.run(RELEASE);
delay(1000);
}
Regards,
VEL342
1 Like