GPIO.output(MotorEnable, GPIO.LOW) # motor stop Similar to the B engine.Īlso, the GND of the driver must be connected with the GND of the Arduino board to (GPIO.BCM) # Numbers GPIOs by BCM To reverse the meaning we write LOW, respectively HIGH on In1, In2. To control the direction of the engines: on In1 we write HIGH, and on In2 we write LOW and the engine will go forward. We will connect them to PWM pins 3 and 10 to control the engine speed. To control the DC motors with the L298N driver, we ensure that the EnA and EnB pins are not connected to 5 V. 5 V: 5 V input (if the source used is 7-35 V can be used as 5 V)ĮnB speed control : PWM for motor B - Pini speed control for speed and direction control:. This module uses large-capacity filter capacitors and freewheeling protection diodes to improve reliability.This module can use the built-in 78M05 to work through the drive power supply, but in order to avoid damage to the voltage regulator chip, when using a drive voltage greater than 12V, please use an external 5V logic power supply.This module uses ST's L298N as the main driving chip, which has the characteristics of strong driving ability, low heat generation and strong anti-interference ability.Using the L298N chip to drive the motor, the chip can drive a two-phase stepper motor or a four-phase stepper motor, or two DC motors. There is a logic power input terminal to make the internal logic circuit work at low voltage it can be connected with an external detection resistor to feed back the change to the control circuit. standard logic level signal control with two enable control terminals, Allow or prohibit the device to work without being affected by the input signal. A high-voltage and high-current full-bridge driver with two H-bridges, which can be used to drive inductive loads such as DC motors, stepping motors, relay coils, etc. The main features are: high working voltage, the highest working voltage can reach 46V the output current is large, the instantaneous peak current can reach 3A, the continuous working current is 2A the rated power is 25W. L298N is a high-voltage, high-current motor drive chip produced by ST. This module is capable to drive 2 DC motors independently or a single 4 phase stepper motor. This module can be controlled by standard TTL logic and it works with a wide range of input voltages, making it ideal for robots and other high power projects. This motor driver module uses the popular L298N integrated circuit, which contains two H-bridges, capable of currents up to 2 A each. Adjustable Step Up / Step Down Power Supplies.12 V Step Up / Step Down Power Supplies.3.3 V Step Up / Step Down Power Supplies.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |