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
Motor to turn a pot for feedback
-
- Posts: 6
- http://meble-kuchenne.info.pl
- Joined: Tue Aug 24, 2021 2:22 pm
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: Motor to turn a pot for feedback
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.
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 Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Motor to turn a pot for feedback
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
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
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: Motor to turn a pot for feedback
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.
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 Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Motor to turn a pot for feedback
Ok, thank you Ben. I have access to release 9 and will develop from there.
Thanks again,
Sam
Thanks again,
Sam
-
- Valued Contributor
- Posts: 185
- Joined: Wed Jan 13, 2021 7:15 pm
- Has thanked: 81 times
- Been thanked: 30 times
Re: Motor to turn a pot for feedback
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
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 272 times