On Sunday 17 November 2019 05:18:14 andy pugh wrote:

> On Sat, 16 Nov 2019 at 21:39, Gene Heskett <[email protected]> 
wrote:
> > It turn out that a pwmgen module to control the on time of this pump
> > motor is not sufficient to adequately control the pump as I cannot
> > control the rep rate, even at its minimum rate, once the pump is
> > moving on a per step basis, the minimum rep rate is too fast and it
> > will dump an 8oz bottle of mist fluid in half an hour or less. What
> > I need is a multivibrator whose on and off time I can control
> > independently in order to be able to pause longer between on pulses.
>
> I don't really understand what problem you are describing. But I am
> guessing that this pump is not being driven by a stepper motor as I
> suggested?
>
> So, maybe you need a pwmgen to control the motor speed when it is on,
> and another pwmgen to control when the motor is on?
>
> So use one very slow (5 seconds period?) pwmgen to enable the existing
> pwmgen.

What I have that looks like its working, is a timedelay, turned on and 
off as an oscillator by an xor2 in the out to in feedback path, and a 
pair of spinboxes to set the on and off times independently from pyvcp. 
Biggest problem is the spinbox, no way to control its width and its 
HUGE.

Looks like this in the .hal file:
# output for coolant-mist air ctrl - WORKS! Valve coil gets HOT
net mist-on <= iocontrol.0.coolant-mist => hm2_5i25.0.7i76.0.0.output-01 
# turns on tool mister air
net mist-on => xor2.1.in0  # turn on pump motor for mist
net osc-fdbck  <= xor2.1.out => timedelay.3.in 
setp hm2_5i25.0.gpio.024.is_output true
net mister-out  <= timedelay.3.out => xor2.1.in1
net mister-out  => hm2_5i25.0.gpio.024.out # to pump pwr control>

Looks like this in postgui.hal:
# for mister pump motor speed ctrl
net mister-spdon        <= pyvcp.mist-on-adj  => timedelay.3.off-delay
net mister-spdoff       <= pyvcp.mist-off-adj => timedelay.3.on-delay

And looks like this in postgui.xml:
  <labelframe text= "mist motor speed">
    <vbox>
      <spinbox>
        <width>"10"</width>  
        <halpin>"mist-on-adj"</halpin>
        <min_>0.00</min_>
        <max_>1.00</max_>
        <initval>0.1</initval>
        <resolution>0.01</resolution>
        <format>"1.2f"</format>
        <font>("Helvitica",12)</font>
        <param_pin>0</param_pin>
      </spinbox>
      <spinbox>
        <width>"10"</width>
        <halpin>"mist-off-adj"</halpin>
        <min_>0.00</min_>
        <max_>0.50</max_>
        <initval>5.0</initval>
        <resolution>0.01</resolution>
        <format>"1.2f"</format>
        <font>("Helvitica",12)</font>
        <param_pin>0</param_pin>
      </spinbox>
    </vbox>
  </labelframe>
</pyvcp>

The width statements are being ignored. If it was active, I could put 5 
of those spinboxes in an hbox. Huge waste of screen real estate. 

The construction of this pump precludes an easy conversion to stepper 
drive. Its an internal gear reduction from a pmdc motor about 1" in 
diameter and around 1.5" long. Built by lowest bidder stuff. Motor 
Driver cost was $2. Basicly a to-220 vfet gate switched by the 7i76 
output.

Subject to change when I get it wet, but its working right now according 
to the halscope. I'm in the house, not in front of the machine. And way 
too early in the morning here. Had a minor earthquake about 200 miles SW 
of here yesterday, didn't feel a thing.
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1912
>
>
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to