Author Topic: Arduino, Processing and water pumps  (Read 4379 times)

0 Members and 1 Guest are viewing this topic.

Offline benonezTopic starter

  • Newbie
  • Posts: 4
Arduino, Processing and water pumps
« on: July 23, 2014, 05:34:45 pm »
 I am running a sketch in Processing 2.0 that sends MIDI out. The MIDI drives my patch in Ableton Live. It sends three control change per "frame" (this is Processing I’m talking about, so the action in my code occurs in the draw() loop, so 30 times a second the program spits out this MIDI info). So, I just want to mention that I’m not running the Arduino.ino, and want to use Processing’s Serial library to communicate with the Arduino.
OK, this is where you come in:

For my project I need to control the speed of three water pumps with the Processing sketch. I think I’m going with 120V AC pumps like this one:

http://www.ebay.com/itm/210-GPH-Submersible-Pump-Aquarium-Fish-Tank-Powerhead-Fountain-Water-Hydroponic-/251400348354?pt=LH_DefaultDomain_0&hash=item3a88a0e2c2

One solution I thought might work was to pulse a digital out pin on the Arduino and connect that to a SSR connected to the pump but I also see tutorials on using the Arduino program with a triad and an optocoupler circuit.

That’s the gist of my problem. My first question is:

Is there a solution where I can just use Processing?
Also, any ideas on pumps would be appreciated.

Thank you,
Ben
 

Offline retrolefty

  • Super Contributor
  • ***
  • Posts: 1648
  • Country: us
  • measurement changes behavior
Re: Arduino, Processing and water pumps
« Reply #1 on: July 23, 2014, 06:04:57 pm »
That pump product page doesn't mention the voltage and current requirements for that pump? If AC then applying variable speed via an arduino has lots of possible problems. Even with a phase controlled SSR (as used in light dimmers) often have problem when used with inductive loads like motors. A DC motor would be a lot easier to control with an arduino via a logic level power mosfet for either just on/off control or variable speed via PWM output.

 

Offline benonezTopic starter

  • Newbie
  • Posts: 4
Re: Arduino, Processing and water pumps
« Reply #2 on: July 24, 2014, 12:14:08 am »
 

Offline xuio

  • Contributor
  • Posts: 46
  • Country: de
Re: Arduino, Processing and water pumps
« Reply #3 on: July 24, 2014, 12:29:58 am »
The pump you bought has a brushless motor in it, brushless motors (BLDC) can not simply be driven off a DC voltage.
They have 3 phases and need some sort of controller to run, the controller is driven by the input voltage, so if you try to regulate the pump with PWM, the controller has not enough time to power on, and the motor wont run.
You could try very slow PWM (1-2Hz) or use a pump with a controller that has a speed control or (if you find any) use a brushed DC motor pump.
 

Offline Paul Moir

  • Frequent Contributor
  • **
  • Posts: 926
  • Country: ca
Re: Arduino, Processing and water pumps
« Reply #4 on: July 24, 2014, 01:00:19 am »
Throttling the pump may make more sense with a valve attached to a servo.  It might mean you would only need one pump?  Or if you didn't have to change speeds fast and have space, you can use an accumulator and pulse the pump every few seconds - like a 15 second PWM.  (Think of a domestic water supply system.)

However, I *know* I've seen windshield washer pumps that were brushed DC motors.  They're not designed for continuous duty but I don't know if longevity is important in your design.  Those you can PWM.
« Last Edit: July 24, 2014, 01:02:33 am by Paul Moir »
 

Offline benonezTopic starter

  • Newbie
  • Posts: 4
Re: Arduino, Processing and water pumps
« Reply #5 on: July 24, 2014, 01:34:51 am »
Thank you all for your informative replies. One question I have is can I use a digital potentiometer (as I have some lying around) to control the cool side of a dimer circuit?
 

Offline Paul Moir

  • Frequent Contributor
  • **
  • Posts: 926
  • Country: ca
Re: Arduino, Processing and water pumps
« Reply #6 on: July 24, 2014, 04:47:22 am »
Most dimmers don't have a "cool" or isolated side, so no.  The way to interface with one is to use an optocoupler.  The easiest/dumbest is to use an LED paired with a CdS cell because in the classic TRIAC/DIAC dimmer circuit the voltage across the pot alternates.  You PWM the brightness of your LED with your Arduino and replace the pot in the dimmer with the CdS cell.

Once CdS cell optocouplers were fairly common, but the restrictions on Cd seem to have put an end to that.  Plus you can design around them and use phototransistor optocouplers which are cheaper anyway. 

EDIT:  There are photoFET optocouplers which can be used for AC, but only for very low voltages. 
« Last Edit: July 24, 2014, 04:53:59 am by Paul Moir »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf