- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- VDC2450 joystick control with motor using absolute potentiometer feedback
VDC2450 joystick control with motor using absolute potentiometer feedback
- jonshepley
- Topic Author
- Offline
- Posts: 17
- Thank you received: 0
I'm not even sure it’s going to be possible with the system but I really need to find a way of working round it, the motors are positioning a very large load, if this is done in open loop the load can move from where you position it dues to wind and other factors, when in closed loop position mode the position is maintained by the system and the motors fight any external forces. Given that can you think of any way to making it work? The only thing i can think of is to move under open loop when any input from the joystick is detected then when it returns to centre position it switches to closed loop position mode but that would require reading the current feedback position and tricking it into thinking that is the current joystick position. Does that make any sense to you? Would it help if I sent you my XML setup file? And a diagram of my system?
Thanks,
Jon
Please Log in or Create an account to join the conversation.
- Griffin Baker
Please Log in or Create an account to join the conversation.
- jonshepley
- Topic Author
- Offline
- Posts: 17
- Thank you received: 0
Thanks,
Jon
Please Log in or Create an account to join the conversation.
- Griffin Baker
So whatever the motor command equals, that is what you send.
So if feedback voltage is 3.5V and the Roborun determines that as motor command +750, then you would send setcommand(_g, 1, 750).
Please Log in or Create an account to join the conversation.
- jonshepley
- Topic Author
- Offline
- Posts: 17
- Thank you received: 0
But is there a command like: setcomman(gotoposition, 3500) which in closed loop would make set the motor to rotate to match 3500mv on the feedback?
One other thing as well, in closed loop positioning mode using a potentiometer as feedback do the speed and acceleration configurations have any effect or are they only used by the closed loop speed mode? i ask because i can't see how it's working out RPM without an encoder? but it does seem to effect the speed, not nessesarily predictable
Lastly would i make my life a lot easier if i added an encoder as well and the potentiometer? I realise the encoder could do both jobs but I cannot have it do a initialisation to find its limits every time it is turned on hence the need for an absolute feedback method, but i presume things like speed and acceleration only work if you have an encoder in the system? Then I could just use my potentiometers as analogy inputs for the script so it knows its position.
Thanks,
Jon
Please Log in or Create an account to join the conversation.
- jonshepley
- Topic Author
- Offline
- Posts: 17
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Griffin Baker
Please Log in or Create an account to join the conversation.
- jonshepley
- Topic Author
- Offline
- Posts: 17
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Griffin Baker
Please Log in or Create an account to join the conversation.
- Griffin Baker
Griffin Baker wrote: You might have to write a separate script to figure this out. You can query an analog input after conversion using ?AIC, or in scripting it is getvalue(_aic, # ) where # refers to analog channel. Another option is to use the run tab and query the motor command. The joystick analog input will take a voltage and it will converted into a motor command. You can find out what that motor command from there.
So whatever the motor command equals, that is what you send.
So if feedback voltage is 3.5V and the Roborun determines that as motor command +750, then you would send setcommand(_g, 1, 750).
Please Log in or Create an account to join the conversation.
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- VDC2450 joystick control with motor using absolute potentiometer feedback