Hi ! What is the best ( clean ) way to control a dc motor with potentiometer ( like a DIY servo )

MRL dc motor service ( pwm commands to hbridge ) and PID

or

Dedicated arduino with Dcmotor shield and library like this : https://github.com/HobbyComponents/HCMotor 

So the commands to the dedicated Arduino are send throught I2C ( do,t know how to use this )

Thank you

Mats

8 years 2 months ago

I think Motor service sending pwm to the hbridge, analog input and PID.

I started to build a DyiServo service but it's not finished / worky yet.

/Mats