Page 1 of 1

Motor to turn a pot for feedback

Posted: Tue Aug 31, 2021 11:38 am
by samwane
Hi,
I'd like to emulate a servo system using a DC motor and potentiometer as feedback.
I have placed these components onto the 3D panel.
Is there a way to link the motor and the pot so as the motor turns it also rotates the pot?
Note:-I have tried linking the motor to the pot through the 'target object' property but this moves the whole pot body around the 3D panel as the motor moves.
Many thanks,
Sam

Re: Motor to turn a pot for feedback

Posted: Tue Aug 31, 2021 12:11 pm
by BenR
Hi Sam,

You might be better off using an encoder rather than a pot. Pots can be a bit mechanically difficult to turn and will generally have hard end stops whereas an encoder wont.

If you need to use a pot then let me know and I'll see if I can make it work with the motors for you.

Re: Motor to turn a pot for feedback

Posted: Wed Sep 08, 2021 1:05 pm
by samwane
Hi Ben,
Yes I can use an encoder instead, the learning outcomes will be the same.
I take it there is a motor-encoder pair set up in Flowcode? (I'm using 8).
Also, is it possible to control the motor speed? I was trying to do this using the PWM output from an Arduino Uno and a motor driver (all in simulation) but didn't manage to see the speed change.

Regards,
Sam

Re: Motor to turn a pot for feedback

Posted: Fri Sep 10, 2021 9:52 am
by BenR
Hello Sam,

The motor joining to encoder and varyable motor speed were things that were added for the release of v9 and so are not available in the v8 simulation.

Re: Motor to turn a pot for feedback

Posted: Tue Sep 14, 2021 9:00 am
by samwane
Ok, thank you Ben. I have access to release 9 and will develop from there.
Thanks again,
Sam

Re: Motor to turn a pot for feedback

Posted: Sat Sep 18, 2021 8:35 am
by steve001
Morning,

In a previous employment we used to used motorised pots extensively

The speed was controlled by gearboxes and the also increases the torque available
The pot had 2 cams fitted to the shaft for the max and min limit switches,
these where not wired it was up to you to wire them in to interrupt the motor supply at the limits of travel

i have attached the data sheet, hope this gives you some idea of how it is assembled

as ben says quite difficult to turn.

Steve