Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
Just for reference - the "mosfet diode thing" is there to protect against connecting the battery the wrong way around.
Quote from: Webbot on October 28, 2009, 11:19:52 AMJust for reference - the "mosfet diode thing" is there to protect against connecting the battery the wrong way around.Thanks for the clarification! A diode is not enough?Chelmi.
Method 1:For motor 1 - send a PWM signal to PWMA and use AIN1 and AIN2 to control the direction of the motor. You need to make sure that if AIN1 is high then AIN2 is low, and if AIN1 is low then AIN2 is high - one combination gives clockwise rotation and the other is anti-clockwise. To brake then set AIN1=high and AIN2=high.