November 23, 2024, 12:24:34 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Prop-1 and two motorized linear actuators.

Started by gadget-evilusions, September 14, 2009, 01:18:16 PM

Previous topic - Next topic

gadget-evilusions

I have tried, but am not able to figure this one out. I am controlling a 12v linear actuator, which has a built in potentiometer for position reference.

I need to:

turn on out0,
then monitor a 10k potentiometer until it reaches a certain point (of which I am uncertain at the moment)
turn off out0
watch the same potentiometer again until it reaches another point
repeat

The information for pot hook up is:
Feedback Wiring Schematic:
White - 10K Potentiometer Reference
Blue - 10K Potentiometer Wiper (Position Signal)
Yellow - 10K Potentiometer Reference

I would need to know which of these color wires would correspond to which color on P6 which I would want to use to monitor.

thanks.
Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

JonnyMac

September 14, 2009, 04:20:58 PM #1 Last Edit: September 14, 2009, 04:46:02 PM by JonnyMac
As I'm sitting in a jury waiting room and not in my office I can only give you description -- but if you reference the POT function in the online help you should be okay.

To use the POT fuction you only need to connections to the potentiometer: the wiper and one leg.  From the pin you use (e.g. P7.W as on the Prop-1 Trainer) you will connect a 0.1uF capacitor and the other leg of that capactior will go to the wiper of the pot.  Then connect one of the reference legs of the pot to P7.B (ground).  You'll have to do some incremental experimenting to make sure the POT values get bigger as the actuator moves away from "home"; if they get smaller then switch to the other reference leg.  With a 10K pot and a 0.1uF cap the Scale value for POT is about 100, but you may need to run the POT Scaling program (in the Run menu) to get the best results.  You'll usually need to move the pot to its maximum value to get the best Scale value using the POT Scaling program.

[Edit] No mater what pin you select for your POT input you need to remove the ULN influence from it -- this is why we typically use P7.  You'll also need to remove the SETUP jumper.
Jon McPhalen
EFX-TEK Hollywood Office

gadget-evilusions

Not a problem. I am sorry you have jury duty.

The main problem I have is the coding for reading to pot and then stoping at a particular point.
Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

JonnyMac

This is a little tricky, no knowing all the details of your setup.  In psuedo-code, it would look something like this:

Main:
  Read POT position
  IF direction is Reverse jump to Run_Reverse

Run_Forward:
  IF pot value is less than forward limit jump back to Main
    Set direction to Reverse
    Jump to Main

Run_Reverse:
  IF pot value is greater than reverse limit jump back to Main
    Set direction to Forward
    Jump to Main


This would cause the actuator to oscillate between the two set points.

Jon McPhalen
EFX-TEK Hollywood Office