Position control of a DC motor - arduino
Uploader Comments (Andrewinadoghat)
All Comments (10)
-
@momavalencia lol. Position is controlled by comparing the real position (sensor's feedback) versus desired position. In this case, sensor feedback is a quadrature encoder (the transparent plastic wheel), and the control is the potentiometer (or joystick) in the guy's hand. Who does all this? a microcontroller with running software on it. Yes you can also attach a pot to mechanism, acting as sensor (feedback). In fact RC servos work like that while desired input is PWM. Pro servos are brushless.
-
If you want more precision, you would put the encoder directly on the motor shaft.
-
Sir how do you control the position of the motor? How do you check the position error? Connecting a potentiometer to the shaft of the dc motor?
-
Sir how do you control the position of the motor? How do you check the position error? Connecting a potentiometer to the shaft of the dc motor?
-
I am looking to do something very similar with a dc motor with an encoder attached. Can you please share the code with me so I can get started. I will be controlling it with a pot as you did also. I ant find any code in the link you posted. I would appreciate any help at all.
what do you call that circle transparent plastic?
rhonmanalo 1 year ago
@rhonmanalo I would call it an encoder code wheel.
Andrewinadoghat 1 year ago