IDUINO for maker’s life User Manual For L298N Motor Driver Board (ST1112) www.openplatform.
IDUINO for maker’s life 1. Introduction Double H driver module uses ST L298N dual full-bridge driver, an integrated monolithic circuit in a 15- lead Multiwatt and PowerSO20 packages. It is a high voltage, high current dual full-bridge driver designed to accept standard TTL logic levels and drive inductive loads such as relays, solenoids, DC and stepping motors. Two enable inputs are provided to enable or disable the device independently of the input signals.
IDUINO for maker’s life “UR1” “UR2” “UR3” “UR4” “5V_EN” Pull up resistor Pull up resistor Pull up resistor Pull up resistor 5V source jumper. When the jumper is put on, The 78M05 supplies the 5V power for the logic circuit on the board from the VMS port(7V < VMS < 18V). The power of logic circuit of the board is supplied by the 5V port when this jumper put off. 3. Example This module can drive 2 channel DC motor or 2 phase stepper motor.
IDUINO for maker’s life _mRight(in1,in2); _mRight(in3,in4); int n=analogRead(A0)/4; _mSetSpeed(speedPinA,n); _mSetSpeed(speedPinB,n); } void _mRight(int pin1,int pin2) { digitalWrite(pin1,HIGH); digitalWrite(pin2,LOW); } void _mLeft(int pin1,int pin2) { digitalWrite(pin1,LOW); digitalWrite(pin2,HIGH); } void _mStop(int pin1,int pin2) { digitalWrite(pin1,HIGH); digitalWrite(pin2,HIGH); } void _mSetSpeed(int pinPWM,int SpeedValue { analogWrite(pinPWM,SpeedValue); } ********Code End******** For 2 stepper moto
IDUINO for maker’s life void setup() { stepper.setSpeed(90); } void loop() { int val = analogRead(0); stepper.step(val - previous); previous = val; } ******Code End****** www.openplatform.