Hello, I apologize if this question is trivial
My robot uses 2 DC motors as wheels and is controlled by a PIC18. I am using the L298 Dual Full-Bridge driver. My voltage supply is 10x1.5 V alkaline batteries in series and I then produce the 12V input to the L298 using a 7812 regulator. The L298 is capable of providing 1A (more if properly sinked) per bridge, however the maximum current the 7812 can provide is 1 A.
My concern therefore is how to limit the current drawn by the motors. Do I do this with PWM? I researched the datasheet of the L298 and there is a current sensing resistor, however this only allows me to measure the current supplied to the load, not to limit it. 500 mA per motor should be enough, but how do I limit my load currents to this value?
Thank you for your help
My robot uses 2 DC motors as wheels and is controlled by a PIC18. I am using the L298 Dual Full-Bridge driver. My voltage supply is 10x1.5 V alkaline batteries in series and I then produce the 12V input to the L298 using a 7812 regulator. The L298 is capable of providing 1A (more if properly sinked) per bridge, however the maximum current the 7812 can provide is 1 A.
My concern therefore is how to limit the current drawn by the motors. Do I do this with PWM? I researched the datasheet of the L298 and there is a current sensing resistor, however this only allows me to measure the current supplied to the load, not to limit it. 500 mA per motor should be enough, but how do I limit my load currents to this value?
Thank you for your help