![]() ![]() If you want the motor A to rotate in one direction, apply a HIGH pulse to IN1 and a LOW pulse to IN2. Input 1 and input 2 control motor A, and input 3 and 4 control motor B. The input pins control the direction the motors rotation. However, note that for small duty cycles, the motors might not spin, and make a continuous buzz sound. The motor speed is proportional to the duty cycle. If you send a PWM signal, you can control the speed of the motor.If you send a LOW signal to the enable 1 pin, motor A turns off.If you send a HIGH signal to the enable 1 pin, motor A is ready to be controlled and at the maximum speed.The enable pins are like an ON and OFF switch for your motors. Now, that you’re familiar with the L298N Motor Driver, let’s see how to use it to control your DC motors. The input pins are used to control the direction of your DC motors, and the enable pins are used to control the speed of each motor. If you supply more than 12V, you should remove the jumperĪt the bottom right you have four input pins and two enable terminals. Jumper removed: you need to provide 5V to the +5V terminal. Jumper: jumper in place – uses the motors power supply to power up the chip. ![]() Acts as a 5V output if jumper is in place +12V: The +12V terminal is where you should connect your power supply. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |