Beginner help

Hi

I want to control a motor at 2 speeds and use feedback to maintain the speed.

Ive been told i need to use pid but cant seem to find anything that will help me.

Any help or suggestions

Thank you

You will need a shaft encoder to report the speed.

What i want to control is a old turntable.

It has a optical pickup underneath with 90 teath on the table then a 12v dc motor attached with a belt to the table.

I want the table to maintain a steady 33rpm or 45rpm depending on which setting it is in

Would the rough and ready approach work for this godivaprima.

So does it sound like a job for pid.

You may be interested in the code in Replies #72 and #75 in this PID Thread.

And there is plenty of additional reading if you feel like it :)

...R