Hi I want to do position control of dc motor with encoder. Is there any link I can Start from. I am using SN755410 driver IC and pololu motor with arduino Mega.
///////////////////////////////////////
The Motor specs are :
19:1 Metal Gearmotor 37Dx52L mm with 64 CPR Encoder
1200 counts per revolution of the gearbox’s output shaft
Key specs at 12 V: 500 RPM and 300 mA free-run, 84 oz-in (5 kg-cm) and 5 A stall.
Red motor power (connects to one motor terminal)
Black motor power (connects to the other motor terminal)
Green encoder GND
Blue encoder Vcc (3.5 – 20 V)
Yellow encoder A output
White encoder B output
/////////////////////////////////////////
How Can I do this, I have seen some codes online but I am not able to program.
I have seen some codes online but I am not able to program.
Then you need to learn. You need to learn to make the motor move. You need to learn to read the encoder output. You need to learn to stop the motor when the count gets to where you want. You may need to learn to slow the motor so you don't overshoot. More likely, though, you may need to buy the right kind of motor, instead.