Jrk 21v3 position control

hello…
I just purchased a jrk 21v3 and have been using it as a direction controller for a smalll dc motor. This works just fine but i have been looking at the user guide and can’t find too much on position control… maybe i missed it… i don’t know what i need to change in order to go from direction control to position control…
could someone please point me in the right direction?
thank you in advance

Hello.

To do position control, the jrk motor controllers need feedback from a sensor to control the position of the motor. For example, in hobby servos, the motor is connected to a potentiometer which detects the position of the shaft. Potentiometers are usually only good for less than one rotation of the shaft (or maybe a couple like on sail winch type servos). [size=85]If you want your motor to be able to spin around freely and have position control, you will need some kind of encoder. The jrk accepts feedback signals as serial, analog, or pulse width.
[/size]

-Ryan

edit:
I made the wrong parts of this post small and yellow.

Thanks Ryan!
This makes sense now. Do i need an encoder for velocity control or can I use a potentiometer using analog voltage?

nevermind… i figured it out
thanks again!!

Hello,

What I said about an encoder is probably not going to work for position control, unless you have an encoder module that can output an analog voltage that corresponds to the position of the shaft. Also, what I said about feedback signal being serial or PWM is wrong. You cannot use serial or PWM commands for feedback control on the jrk. Please see section 3.c of the user’s guide for more details on the different feedback modes.

Are you trying to do speed or position control? You have asked about both. A pot is not usually good for speed control.

- Ryan

HI Ryan,
Thanks for those clarifications. I was initially trying to do position control but I noticed that speed control is more important ( I am doing a lot of experimenting on this project).
I was able to have speed control fairly easily by reading the user’s guide. The only problem i am having is adjusting the range of the pot to the speed. When I lower the max speed, I just get a max limit speed. The range is unaffected. I used the “learn” feature as stated in the user’s guide, but i guess i still have to work out a few bugs. I would like the max speed to be around 30% and move the pot so the limits would be 30% and - 30%. The way it is now is that it goes to 30% then as I keep on turning the pot the speed remains at 30%. There is no difference in the spreading of the range. I’m not sure if my explanation is clear.
Thanks

Hello.

Just to clarify: the Jrk 21v3 is not capable of doing position control with continuous turning. There is a mode for position control, where you can use a multi-turn potentiometer or an appropriate mechanical setup to get up to a few rotations of the output shaft with position control. There is a separate mode in which speed can be controlled without any position control; this is for continuously turning motors such as fans or turntables where speed control is desirable without any need for position control.

- Jan

I put my previous post up before seeing your last reply, mgaribaldi. I’m not sure I understand your latest question, but it sounds like you need to change what the target gets set to for the learned max and min for your potentiometer.

- Jan

Thanks Jan!
I’ll give that a try. I was confused by the video on the products web-site regarding position control but now it is clear.
Thanks again for everyone’s prompt replies!

Hello,
I have a screen shot of the plot to try to clarify. I want the motor to run at 30% (not 100%) when I have m potentiometer turned all the way in one direction. The plot shows that the 30% of the motor speed occurs when the potentiometer isn’t turned all the way, and when i increase the potentiometer i stay at that speed. To the sensitivity of the pot is not increased. I use the learn feature but this did not help. I will try what you recommended.
Thanks!


The 30% limit you’ve set is a hard limit that gets applied in all kinds of situations. You should leave that there, but you should also change the scaling on the tab where you set your potentiometer range. You still have it mapped to a target range of 0 to 4095, right? You need to set the target range to 30% of the 0 to 4095 range, and centered it at 2048. 30% of 4095 is about 1228, so you should go 614 to each side of 2048, for values of 1434 and 2662 for the min and max, respectively.

- Jan

Sorry, I have a small correction. If you’re using a mode without feedback, the full range is just ±600 around the center, so 30% of that would be ± 180 around the center, so you should set the max and min to 2228 and 1868, respectively.

- Jan

awesome it works!
thank you so much!

mgaribaldi: That’s good that you got it to work! In what way were you confused by the video on the Jrk’s product web page?

For anyone who was confused by this thread, it’s probably because we changed topics in the middle. mgaribaldi started by asking about position control, but what he ended up building in the end is a non-feedback system that drives the motor at a duty cycle specified by an analog input (from his potentiometer). Along the way, we also talked about velocity control and speed control, which are ambiguous terms which could refer to two things the jrk supports:

  • Frequency Feedback mode, which allows you to command your jrk/motor to move at a certain speed provided that you have a tachometer mechanism attached to the motor.
  • No Feedback mode, which allows you to simply command the jrk to drive the motor at a certain duty cycle. (This is what mgaribaldi used in the end, in combination with Analog Input).

–David

Hi David,
I was just a bit confused with the analog control portion of the video. It looks like there is position control. However, now i see that this is a servo motor, which explains how this is possible. I am using a basic DC motor, so i thought the video was just the driver and a small DC motor. I doubt other people would make this mistake. I am pretty knew to this but I am learning a lot through my mistakes and the forum.
Thanks again for everyone’s help and quick replies!