How to Use a DC Motor as a Servo with PID Control

Printer machine is one of the essential gadgets, in either home or office. However, have you ever opened up any printer before and maybe do some modification on it?

Well, if you never try it before, today’s the perfect time to perform the task, as you’re learning on how to use a DC motor as a servo with PID control!

Did you know that the newer ink jet printers are mostly use a combination of a DC motor and an optical encoder? The main purpose of using the two components is to take the place of stepper motors for print head positioning and paper feed.

PID motor control with an Arduino from Josh Kopel on Vimeo.

Normally, the motors themselves are a very good option, if you want to make something move and control its speed. When you’re combining it with the encoder, you can use them as a free alternative to a hobby servo.

For this project, you must pay attention on some of the following fields:

  1. You have to figure out the simplest way to use the difference between where the motor should be and where it is (error),

  2. The speed, which the error is changing,

  3. The sum of past errors (It’s to manage the speed and direction that the motor is turning).

Take the above notes and you’ll be fined with this project! Good luck and see you again…

[..Source link..]

Bookmark the permalink.

Comments are closed.