Motor to turn a pot for feedback

Post Reply
samwane
Posts: 4
http://meble-kuchenne.info.pl
Joined: Tue Aug 24, 2021 2:22 pm

Motor to turn a pot for feedback

Post 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

BenR
Matrix Staff
Posts: 683
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 137 times
Been thanked: 213 times

Re: Motor to turn a pot for feedback

Post 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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

samwane
Posts: 4
Joined: Tue Aug 24, 2021 2:22 pm

Re: Motor to turn a pot for feedback

Post 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

BenR
Matrix Staff
Posts: 683
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 137 times
Been thanked: 213 times

Re: Motor to turn a pot for feedback

Post 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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

samwane
Posts: 4
Joined: Tue Aug 24, 2021 2:22 pm

Re: Motor to turn a pot for feedback

Post by samwane »

Ok, thank you Ben. I have access to release 9 and will develop from there.
Thanks again,
Sam

steve001
Valued Contributor
Posts: 82
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 38 times
Been thanked: 8 times

Re: Motor to turn a pot for feedback

Post 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
Attachments
MICRONOR_DS_MPP.pdf
(698.67 KiB) Downloaded 22 times

Post Reply