I'm plan to do project robot just for fun/hobby. In driver circuit small brushed dc motor 1-2A 12-25VDC. I plan for H bridge and PWM for speed control. I used to do that H bridge sometime ago but not that speed control just "stop,brake,clockwise,counter-clockwise".
So I thinking of design in PWM for speed control into that so that I can even use PID. After I read some more series about H-bridge design and calculate: lock anti-phase drive, phase-magnitude drive, Sign-magnitude Drive , high-side transistor/fet drive...... etc. from
http://www.modularcircuits.com/blog/articles/h-bridge-secrets/h-bridges-the-basics/http://www.modularcircuits.com/blog/articles/h-bridge-secrets/sign-magnitude-drive/http://www.modularcircuits.com/blog/articles/h-bridge-secrets/lock-anti-phase-drive/http://www.modularcircuits.com/blog/articles/h-bridge-secrets/asynchronous-sign-magnitude-drive/(there are more in that web if you interest...)
I feel headache too much. I plan for future reading and understanding more when I have more time. But to make my life easier. I look for IC driver. So I look at ST Brushed DC Motor Drivers: L6227 look okay. But point is after I read datasheet question is : How can I speed control? There is no for PWM input?
All I can see is table logic: picture I have attached.
Or do I put is PWM in IN1, LOW in IN2??? But it doesn't mean motor: BRAK,STOP,BREAK,STOP,BREAK,STOP.....?
Or do I put PWM in EN then 1 in IN1, 0 in IN2??? So it mean FREE,RUN,FREE,RUN... then average current so that speed can adjusted??
Or I choose the wrong IC?
Or all is wrong? I miss any point? I just want to speed control the motor.
I know some simple transistor circuit in around internet might work on this small projects. Maybe not well maybe need some more adjust some calculate when should do when PWM off time , that I read from article... So that the point I choose the IC so maybe it solve annoy problem then I can more time in coding.
Please help/advice.
Thank you so much.