adafruit_support_bill wrote:There is an interesting thread on the topic here: http://forum.arduino.cc/index.php?topic=89484.0Just wondering what the proper way of hooking up the diodes are.
Peristaltic Pump Setup
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Wed Jun 12, 2013 12:13 am
Re: Peristaltic Pump Setup
Thanks =)
-
- Posts: 1
- Joined: Thu Jun 13, 2013 3:36 pm
Re: Peristaltic Pump Setup
I am planning on purchasing several of these pumps and running them off of the 16 channel PWM driver (along with some LEDs). Does each pump need an individual N4001 Diode? Or would I be able to connect one to the driver's power terminals?
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Peristaltic Pump Setup
Yes. The diode is there to bleed off 'flyback' current generated in the coil when the PWM signal is OFF. Each coil needs its own diode.msleeper wrote:Does each pump need an individual N4001 Diode? Or would I be able to connect one to the driver's power terminals?
In terms of basic theory, an electric motor and an electric generator are built exactly the same way. They both have an electrical connection at one end and a rotary mechanical connection at the other end. The only difference is which one you use as input and which one you use as output. In fact, your motor acts as a generator any time the shaft is rotating and there's no electricity coming in through the terminals.
PWM motor control turns the current on and off really fast, so your motor flips between acting like a motor while the current is flowing, and acting like a generator when the current is cut off. If you don't do something with the generated current, it will build up voltage and eventually arc somewhere.
Flyback diodes give the generated current somewhere to go. You need one for each coil because each coil acts as a generator depending on its own PWM signals and load.
-
- Posts: 1
- Joined: Wed Oct 09, 2013 2:38 am
Re: Peristaltic Pump Setup
Hi,
I'd like to connect the pump to this relay cycle timer: http://www.anly.com.tw/english/pdf/ATDV_GA.pdf
Do you think it'll work well?
I'd like to connect the pump to this relay cycle timer: http://www.anly.com.tw/english/pdf/ATDV_GA.pdf
Do you think it'll work well?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Peristaltic Pump Setup
Yes, you can control it with that relay.
- krisfr92
- Posts: 3
- Joined: Mon Jul 01, 2013 2:18 pm
Re: Peristaltic Pump Setup
Hi,
i've read carefully this thread but cannot find clear answer.
So i have posted something similar here http://forum.arduino.cc/index.php?topic=199233.0
Your advice would be usefull.
Regards
i've read carefully this thread but cannot find clear answer.
So i have posted something similar here http://forum.arduino.cc/index.php?topic=199233.0
Your advice would be usefull.
Regards
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Peristaltic Pump Setup
@krisfr92 - Please feel free to start a topic and post your question on this forum. Controlling these pumps is not difficult with a relay or power MOSFET.
- dbenedi2
- Posts: 7
- Joined: Mon May 19, 2014 4:37 pm
Re: Peristaltic Pump Setup
Hello,adafruit_support_bill wrote:Here is a wiring diagram - including a kickback diode:
I was hoping you could point me in the right direction for an external power supply for the peristaltic pumps. Are there pre-made cords which will wire directly into the pumps or do I need to create my own? Thanks!
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Peristaltic Pump Setup
Most 12v DC power supplies will work: https://www.adafruit.com/products/798
The pump itself has just solder-lugs for connection. You will need to make your own cable for connection. This adapter will help: https://www.adafruit.com/product/368
The pump itself has just solder-lugs for connection. You will need to make your own cable for connection. This adapter will help: https://www.adafruit.com/product/368
- ethanol
- Posts: 12
- Joined: Tue Sep 23, 2014 1:08 pm
Re: Peristaltic Pump Setup
Will an NPN transistor (such as 2N2222) work instead of the MOSFET?
I have an external 12V supply and a couple of pumps, but didn't understand your wiring diagram. Where does the ground from the power supply go? Does it go in the Arduino ground? Any help is much appreciated!
I have an external 12V supply and a couple of pumps, but didn't understand your wiring diagram. Where does the ground from the power supply go? Does it go in the Arduino ground? Any help is much appreciated!
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Peristaltic Pump Setup
A 2N2222 should work. But you will need to add a base resistor. You wire it the same way you would wire any brushed DC motor:
https://learn.adafruit.com/adafruit-ard ... -dc-motors
If you are using an external supply for the motor, circuit be sure to connect the ground to the Arduino ground.
https://learn.adafruit.com/adafruit-ard ... -dc-motors
If you are using an external supply for the motor, circuit be sure to connect the ground to the Arduino ground.
- ethanol
- Posts: 12
- Joined: Tue Sep 23, 2014 1:08 pm
Re: Peristaltic Pump Setup
Thanks for the help. I had it working for a moment but then my transistor got burnt. I turned on the power supply and the motor started without being prompted by arduino, and didn't respond to commands from arduino at all...I had the ground from my power supply (12V) go into Arduino ground, as well as the emitter part of the transistor. What am I doing wrong? Again your help is very much appreciated!
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Peristaltic Pump Setup
If you are using a T092 (plastic) version, the pump is right at the upper limit of what it can handle (~300mA). The TO-18 metal can style can handle quite a bit more (~800mA)
This MOSFET is my go-to solution. It has plenty of power, is simpler to wire (no resistor needed) and more efficient as well. https://www.adafruit.com/products/355
This MOSFET is my go-to solution. It has plenty of power, is simpler to wire (no resistor needed) and more efficient as well. https://www.adafruit.com/products/355
- ethanol
- Posts: 12
- Joined: Tue Sep 23, 2014 1:08 pm
Re: Peristaltic Pump Setup
Hi. So the MOSFET worked but I'm seeing some strange behavior. I have two pumps (connected to separate 12V power supplies) running via Arduino. When I turn on the power supply they will both turn on without any prompt from arduino. If I unplugged them and unplug and plug back in the arduino, and THEN turn on the power supply I was able to stop that, and they could be controlled fine via the computer, etc. But that doesn't always work. Why are they being turned on randomly? How can I make that stop? Thanks so much for your help!
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Peristaltic Pump Setup
Is the Arduino on at the time?When I turn on the power supply they will both turn on without any prompt from arduino
Please be positive and constructive with your questions and comments.