I am using the peristaltic pump. This pump will work both directions based on the positive and native terminal. I want to connect to Arduino want to change the positive and native connection based on the program.
is there any way to change the positive and native terminal.
I will assume Positive (+) and Negative (-) and yes. Reversing polarity using an Arduino or other uC is normally done using an H-Bridge which you can roll your own (build) or just buy a solution off the shelf. You choose an H-Bridge based on your motor's requirements, things like Voltage and Current come to mind. Know those parameters and Google H-Bridge.
I am using the peristaltic pump. This pump will work both directions based on the positive and native terminal. I want to connect to Arduino want to change the positive and native connection based on the program
The Arduino can't directly power a motor so you'll need a driver or relay anyway. An H-bridge motor driver is probably the "best" solution.
I'm assuming this not a stepper motor...
A DPDT relay can reverse the connections, plus you need another relay for on/off.
But, then you need a driver to power the relay coil. (You can get relay boards with built-in drivers, but most of them are SPTD so you'd need 3 relays. There are relay boards with 4 relays.)
I am using the peristaltic pump. This pump will work both directions based on the positive and native terminal. I want to connect to Arduino want to change the positive and native connection based on the program.
is there any way to change the positive and native terminal.
Please post datasheet for the pump, so we know what you have and can actually choose a plausible H-bridge
for you....
I don't have a datasheet for this. But i have below technical details
DC Motor
TECHNICAL DETAILS
Working Temperature: 0℃ - 40 ℃
Motor voltage: 12VDC
Motor current: 200-300mA
Flow rate: up to 100 mL/min
Weight: 200 grams
Dimensions: 27mm diameter motor, 72mm total length Mounting holes: 2.7mm diameter, 50mm center-to-center distance
Uses approx 4mm outer diameter, 2mm inner silicone tubing, the pump tube size has changed on us, so please measure the tubing that comes with your pump to verify!
You can PWM the motor to speed up or slow down the flow rate and if you connect the motor the other way it will move fluid the other direction. Works great with either a power transistor (basic on/off) or a motor driver chip such as the L293D.
Could you please suggest the right H-Bridge with PWM option?
Can I buy below. I don't know it has PWM option or not
Features :
2 interface for 5V Servo connected to the Arduino"s high-resolution dedicated timer - no jitter.
Can drive 4 DC motors or 2 stepper motors or 2 Servo. Up to 4 bi-directional DC motors with individual 8-bit speed selection.
Up to 2 stepper motors (unipolar or bipolar) with single coil, double coil or interleaved stepping.
4 H-Bridges: per bridge provides 0.6A (1.2A peak current) with thermal protection, can run motors on 4.5V to 25V DC.
Pull down resistors keep motors disabled during power-up. 2 external terminal power interface, for separate logic/motor supplies. Compatible for Arduino Mega, Diecimila and Duemilanove
Specifications:
Type:Module
Module Function:Board
Operating Voltage : 5V~12V
Current Sensing : 1.65V/A
Max current : 2A per channel or 4A max (with external power supply)
Kuman L293D Motor Drive Shield expansion board can drive 2 stepper motors or 2 Servo or 4 DC motors
Widely compatible: L293D Motor Drivecompatible compatible with Arduino Mega, Diecimila and Duemilanove, meet you need at most
2 external terminal power interface, for seperate logic/motor supplies
4 H-Bridges: per bridge provides 0.6A (1.2A peak current) with thermal protection, can run motors on 4.5V to 25V DC
L293D Motor Drive Shield is a monolithic integrated, high voltage, high current, 4-channel driver
All you need is something like a l298 motor driver dual h-bridge module. It will cover two motors up to 2 Amps. You can also use PWM with it. They are simple and inexpensive. Additionally there are plenty of Arduino code samples and examples of using it out there. I have seen the modules as inexpensive as $3.00 USD.
If I recall correctly the L293D chip is good for about 500 or 600 mA. You stated your pump current is 200 ~ 300 mA. All you need to do is look at what you need and what is available out there. It's all about data sheets.
This paragraph you posted yourself about the motor:
You can PWM the motor to speed up or slow down the flow rate and if you connect the motor the other way it will move fluid the other direction. Works great with either a power transistor (basic on/off) or a motor driver chip such as the L293D.
This already tells you that the L293D is perfect for the job, so go get a shield that uses this chip, or something beefier.