I'm sorry, Blimpyway. I neglected to post the entire link to manuals and data sheets because I thought it was so much that people would not want to sift through all of it.....I wasn't trying to be lazy.
DrDiettrich:
A link to the data sheet would be nice.As indicated in #15, the CLOCK can/should be connected to CLK_INT (internal clock), and AMPLITUDE can/should be connected directly to a PWM output. Then the PWM duty cycle defines the flow rate. Right?
pwm is run through a filter to create an analogue value. ? no ?
Why add a RC filter and fiddle with analogous values and timings, if PWM can be used as well?
blimpyway:
Since the OP didn't bothered to provide a link for it, I admit I haven't bothered to search and read that datasheet ,
that manufacture just sucks when it comes to conveying information.
the board is the -oem board per the OP's post.
googling mp6-oem offers a link to the data sheet.
with a simple voltage divider, an alalog voltage can be input to the driver board and a pump ?speed? can be attained.
the OP wanted two different speeds with the abily to swtich between them. the manual offers how to do that as well.
alas, we do expect some effort on the OP to provide links and read the data sheets.
[ note to CashDS - an X/Y Problem is where you make a few wrong assumptions then withhold that information and then expect others to resolve a problem without all the information and a problem that cannot be resolved with the information given and often are asked to solve a problem that does not exist. as a note the data sheet for the Atmet 328 chip is about 660 pages long. there is no way on this Earth that a newbie can be expected to read and comprehend that. that is why we are here. to help you read and understand the data sheets and avoid problems. ]
in this case, the manufacture listed all products on one manual and you have to be careful that you are only using the data outlined for that specific driver.
6.6.3 Operation with variable settings via microcontroller
Using a microcontroller to operate the micropump, a quadruplicated frequency of the final micropumps frequency has to be connected to the CLOCK Pin. With this procedure, single-digit frequencies can be achieved.
Please take into account to set the pulse-width of the frequency duty cycle at a level of 95% when
operating at frequencies lower than 25 Hz.
The amplitude can be set either with an analogue voltage between 0.35 V to 1.3 V, or with an equivalent pulse-width modulation (PWM) at a voltage level of 5 V and a pulse frequency of 0.2 to 1 MHz at the pin
AMPLITUDE.
The PWM signal must have an amplitude of at least 1.3 V and maximal the same as the supply voltage to ensure that the output voltage is only dependent on the duty cycle!
For minimizing the power consumption, the mp6-OEM can be switched off. One way is to set the
mp6-OEM into the Shutdown Mode; then AMPLITUDE and SHUTDOWN have to be set to 0 V. The
other way is to interject the power supply.
the schematic shows a low-pass filter and NOT how to connect for a PWM. just a horrible document !
as for the PUMP, and NOT the driver :
frequency and amplitude to the micropump are predefined to 270 V and 100 Hz
WE are not using line voltage, but the DRIVER is ! that means the OP has to make those connections as well.
Since we are not really discussing the PUMP, but rather the interface to the DRIVER, this is moot.
however, since the OP listed pump data as if it applied to the driver, there has been much confusion on this thread.
DrDiettrich:
Why add a RC filter and fiddle with analogous values and timings, if PWM can be used as well?
why indeed !
to satisfy the OP's request for 2 speeds, one only needs to have a SPDT switch and two voltage dividers.
to use an Arduino, one can just PWM the driver.
horrible document that, and bad communiton from the manufacture proving that informative writing is an endeavour all on it's own !
7 red lines, all perpendicular, one some of the red lines are to be green, some clear and one in the shape of a kitten....
dave-in-nj:
that manufacture just sucks when it comes to conveying information.the board is the -oem board per the OP's post.
googling mp6-oem offers a link to the data sheet.
with a simple voltage divider, an alalog voltage can be input to the driver board and a pump ?speed? can be attained.
the OP wanted two different speeds with the abily to swtich between them. the manual offers how to do that as well.alas, we do expect some effort on the OP to provide links and read the data sheets.
[ note to CashDS - an X/Y Problem is where you make a few wrong assumptions then withhold that information and then expect others to resolve a problem without all the information and a problem that cannot be resolved with the information given and often are asked to solve a problem that does not exist. as a note the data sheet for the Atmet 328 chip is about 660 pages long. there is no way on this Earth that a newbie can be expected to read and comprehend that. that is why we are here. to help you read and understand the data sheets and avoid problems. ]
in this case, the manufacture listed all products on one manual and you have to be careful that you are only using the data outlined for that specific driver.
6.6.3 Operation with variable settings via microcontroller
Using a microcontroller to operate the micropump, a quadruplicated frequency of the final micropumps frequency has to be connected to the CLOCK Pin. With this procedure, single-digit frequencies can be achieved.
Please take into account to set the pulse-width of the frequency duty cycle at a level of 95% when
operating at frequencies lower than 25 Hz.
The amplitude can be set either with an analogue voltage between 0.35 V to 1.3 V, or with an equivalent pulse-width modulation (PWM) at a voltage level of 5 V and a pulse frequency of 0.2 to 1 MHz at the pin
AMPLITUDE.
The PWM signal must have an amplitude of at least 1.3 V and maximal the same as the supply voltage to ensure that the output voltage is only dependent on the duty cycle!
For minimizing the power consumption, the mp6-OEM can be switched off. One way is to set the
mp6-OEM into the Shutdown Mode; then AMPLITUDE and SHUTDOWN have to be set to 0 V. The
other way is to interject the power supply.the schematic shows a low-pass filter and NOT how to connect for a PWM. just a horrible document !
as for the PUMP, and NOT the driver :
frequency and amplitude to the micropump are predefined to 270 V and 100 Hz
WE are not using line voltage, but the DRIVER is ! that means the OP has to make those connections as well.
Since we are not really discussing the PUMP, but rather the interface to the DRIVER, this is moot.
however, since the OP listed pump data as if it applied to the driver, there has been much confusion on this thread.
I'm sorry Dave. Thank you for being patient with me. It is a lot to digest and I thank you so very much for your help....in fact, thank ALL of you who gave attention here....
You were all new once, too...and a helping hand goes a long way when learning.
here-s a manual for anyone interested.
The pump (via oem module) can be controlled for both amplitude and frequencies of pulses. The module is capable to work with either preset values (through voltage divider/capacitors) for these or externally from an external microcontroller. You can can choose whichever is convenient, the example microcontroller setup is used to control both amplitude (via PWM) and frequency (via clock), but for only two levels at 1/5 ratio between min/max only one of them is sufficient.
That means you can either preset the clock at 100Hz (or other frequency using an external capacitor) and provide a variable voltage or PWM to control amplitude, or you can preset amplitude with a voltage divider and have the microcontroller give a pulse at variable frequency. You need to use both only if you need to control a very large range between min/max pump flows and between.
What they recommend in the manual is to use variable frequency.
My feeling is this is overcomplicated for most needs. Assuming one needs 1ml/min flow it is enough to adjust a predefined continuous flow (via passive resistors/capacitors) at 6ml/minute and have the pump powered 1 sec. on / 5 sec off cycle. When you need a 5x increase in flow, have the pump powered on for 5 seconds / 1 sec off cycle. To make sure there is no backflow during off times, use their recommended check valve.
From the specs, the module will draw only 30mA from a 5V power source.
blimpyway:
My feeling is this is overcomplicated for most needs.
assuming only two speeds are needed, one could have a resistor as part of a voltage divider, and connect that to the common side of a spdt switch.
then each of the poles has a different resistor, now you have two voltage dividers. one for each setting.
blimpyway:
From the specs, the module will draw only 30mA from a 5V power source.
again the manufacturer allows some confusion.
the driver module consumes about 30mA while in operation and the driver module consumes about 1.6 micro-amps when shutdown.
the pump consumes about 200mA, but that is from the mains supply.
and of course any voltage dividers and/or a microcontroller would add to the load on the 5v supply.
Cashdds:
I'm sorry Dave. Thank you for being patient with me. It is a lot to digest and I thank you so very much for your help....in fact, thank ALL of you who gave attention here....
You were all new once, too...and a helping hand goes a long way when learning.
we are trying to help. even if we (meaning me) sound more like a teacher whose student did not turn in last nights homework. !
as I said in post #5, I was surprised not one told you to post links to the bits, or post your code or such. those requests are frequent on this forum.
The manual offers that all you need is a voltage.
connect one resisgtor to ground, and to the common on a spdt switch, or to the common on onde side of a dpdt switch.'
each leg of the dp side of the switch should be connected to a different resistor in order to create two voltages. one for your higher desired voltage, one for your lower desired voltage.
if you want you could add a trimmer pot to either one. or both legs.
or just use a pot, connect the wiper to the driver module and turn the dial. I would offer that a 15 k resistor from 5v to the pot and a 5k pot. that would keep you in a decent range.
dave-in-nj:
again the manufacturer allows some confusion.
the driver module consumes about 30mA while in operation and the driver module consumes about 1.6 micro-amps when shutdown.
the pump consumes about 200mA, but that is from the mains supply.
and of course any voltage dividers and/or a microcontroller would add to the load on the 5v supply.
Only the mp-x bench-top driver module is powered to mains via a 750mA/7.5V adapter.
200 mA from mains supply would mean 24-46watt, (120-230V AC).
All manual says about pump consumption is it's less than 200mwatt. There are no mA (nor micro Amp) specified for the pump alone.
Punp is powered directly by the driver module which gives the high voltage low power pulses to the pump's two piezos from it's own 3.3-5V supply.
Since it is dedicated for driving a pump and nothing else, makes little sense to have specified a the current used by the driver alone, without a driven pump.
@Cashdds - I don't know why this pump was selected you may find peristaltic pumps with higher flow in the same power range. They-re likely cheaper, and with some magnetic or optical encoder you can get a quite precise measurement of pumped volume, within a wide range of fluid viscosities, temperature or pressure head. The mp6 pumps only advantage is they are much lighter.
E.g. this one can be driven from an arduino pin with only a transistor.
One parameter is the pump frequency, the higher the required frequency, the higher the required voltage and/or current. That's a trade off between precision (volume) and flow rate. Due to the capacity of piezos, or the inductance of coils, bidirectional driving may be required.
blimpyway:
@Cashdds - I don't know why this pump was selected you may find peristaltic pumps with higher flow in the same power range. They-re likely cheaper, and with some magnetic or optical encoder you can get a quite precise measurement of pumped volume, within a wide range of fluid viscosities, temperature or pressure head. The mp6 pumps only advantage is they are much lighter.E.g. this one can be driven from an arduino pin with only a transistor.
It was selected for its size...I have already used Welco WPM peristaltic pumps and stepper programs are abundant, but I need a very miniscule pump for portability....this meets that requirement....plus I want to learn how to manipulate amplitude and frequency....
blimpyway:
@Cashdds - I don't know why this pump was selected you may find peristaltic pumps with higher flow in the same power range. They-re likely cheaper, and with some magnetic or optical encoder you can get a quite precise measurement of pumped volume, within a wide range of fluid viscosities, temperature or pressure head. The mp6 pumps only advantage is they are much lighter.E.g. this one can be driven from an arduino pin with only a transistor.
In addition, the application I am doing does not require a greater volume. .5 to 2 ml/min is all I need....AND it has to be portable....ultra portable.... so I am trying this version.
Also....there are a lot of stepper programs to run those motors but I have never played with running a Piezoelectric one. The dosing control looks like it will be as or better than the stepper and peristaltic pump.
As far as the cost of this....the mp6 pump is only $38.00 and the driver board is $68.00. So $116.00 for both..plus 20.00 for Sparkfun redboard programmed for uno= $136.00.
The Welco WPM peristaltic with stepper motor is $110.00 (if u buy 10)... add to that a redboard and a Rugged Circuit Driver for $30.00 we are at $160.00....and the stepper is a 24v bipolar system much larger than the piezoelectric...so...I figured dive her a chance....(my experiment has to meet all FDA food/medical as well as USP Class VI criteria.
dave-in-nj:
we are trying to help. even if we (meaning me) sound more like a teacher whose student did not turn in last nights homework. !as I said in post #5, I was surprised not one told you to post links to the bits, or post your code or such. those requests are frequent on this forum.
The manual offers that all you need is a voltage.
connect one resisgtor to ground, and to the common on a spdt switch, or to the common on onde side of a dpdt switch.'
each leg of the dp side of the switch should be connected to a different resistor in order to create two voltages. one for your higher desired voltage, one for your lower desired voltage.if you want you could add a trimmer pot to either one. or both legs.
or just use a pot, connect the wiper to the driver module and turn the dial. I would offer that a 15 k resistor from 5v to the pot and a 5k pot. that would keep you in a decent range.
[/quot
dave-in-nj:
we are trying to help. even if we (meaning me) sound more like a teacher whose student did not turn in last nights homework. !as I said in post #5, I was surprised not one told you to post links to the bits, or post your code or such. those requests are frequent on this forum.
The manual offers that all you need is a voltage.
connect one resisgtor to ground, and to the common on a spdt switch, or to the common on onde side of a dpdt switch.'
each leg of the dp side of the switch should be connected to a different resistor in order to create two voltages. one for your higher desired voltage, one for your lower desired voltage.if you want you could add a trimmer pot to either one. or both legs.
or just use a pot, connect the wiper to the driver module and turn the dial. I would offer that a 15 k resistor from 5v to the pot and a 5k pot. that would keep you in a decent range.
Thanks Dave. I know you are trying to help and I thank you.... I just got this from customer service....make sense to you?
"I'm assuming you're using the mp6 to pump liquids. In that case, we're limited to about 7ml/min max. with a single pump pumping water. If your liquid is more viscous, the flow rate will drop.
Are you looking at a continuous flow, or dispensing certain volumes at specific rates?
The simplest way to control it with an Arduino is by controlling the clock rate to the mp6-OEM. One of the timers in the Arduino can be set up to provide a square-wave clock at 4 times the pump clock rate. If you're looking at continuous flow, you just leave the clock running freely. If you're looking to dispense a certain volume, you can count the number of clock cycles you apply and stop when the limit is reached.
Typically, with no significant backpressure, each pump cycle dispenses about 1.1uL, so you can get a starting point by dividing the dispensed volume by 1.1uL and multiply by 4 to get the number of clock cycles you need the Arduino to provide to the mp6-OEM.
Let me know how I can help."
Thanks Dave. I know you are trying to help and I thank you.... I just got this from customer service....make sense to you?
The simplest way to control it with an Arduino is by controlling the clock rate to the mp6-OEM.
One of the timers in the Arduino can be set up to provide a square-wave clock at 4 times the pump clock rate.
If you're looking at continuous flow, you just leave the clock running freely.
If you're looking to dispense a certain volume, you can count the number of clock cycles you apply and stop when the limit is reached.Typically, with no significant backpressure, each pump cycle dispenses about 1.1uL, so you can get a starting point by dividing the dispensed volume by 1.1uL and multiply by 4 to get the number of clock cycles you need the Arduino to provide to the mp6-OEM.
Let me know how I can help."
looks like there are charts on the manual to guide you. from 7mL to 3mL, you keep the amplitude full (1.3 volts?)
and just vary the clock. under that, you need to vary both.
well, that is simple enough.
what is your fluid ? do you have any idea of the viscosity ? viscosity of water is easy to find.
that goes to the volume you want to pump.
a square wave is simple . set a timer, wait till it times out. bring the pin high.
set a timer, wait till it times out, bring the pin low, set a timer (see step 1 above)
for your two speeds, all you need to do is alter the length of the timer. another simple (beginners) step.
blimpyway:
Only the mp-x bench-top driver module is powered to mains via a 750mA/7.5V adapter.200 mA from mains supply would mean 24-46watt, (120-230V AC).
All manual says about pump consumption is it's less than 200mwatt. There are no mA (nor micro Amp) specified for the pump alone.
Punp is powered directly by the driver module which gives the high voltage low power pulses to the pump's two piezos from it's own 3.3-5V supply.
Since it is dedicated for driving a pump and nothing else, makes little sense to have specified a the current used by the driver alone, without a driven pump.
you caught my mistake. I said 200mA
nice catch.
dave-in-nj:
looks like there are charts on the manual to guide you. from 7mL to 3mL, you keep the amplitude full (1.3 volts?)
and just vary the clock. under that, you need to vary both.well, that is simple enough.
what is your fluid ? do you have any idea of the viscosity ? viscosity of water is easy to find.that goes to the volume you want to pump.
a square wave is simple . set a timer, wait till it times out. bring the pin high.
set a timer, wait till it times out, bring the pin low, set a timer (see step 1 above)for your two speeds, all you need to do is alter the length of the timer. another simple (beginners) step.
Thank you for being patient with this....you are a good teacher. I will try this info an let you know...
Oh...the fluid is normal saline