Рет қаралды 44,849
Linear Actuator Arduino Control using L298N Motor Control Board
In this tutorial I will show you how to use the L298N motor control board and write simple Arduino code to control a linear actuator. The L298N is a compact and inexpensive H bridge motor control board that easily interfaces with microcontrollers such as the Arduino or Raspberry Pi. Though it costs a little more than the L9110, it is capable of much higher power and can also provide 5V for your Arduino. It is also capable of dc motor speed control.
In a previous video I used an L9110 and a magnetic proximity sensor to control an industrial linear actuator. In this video, I use an L298N with a 3 button switch to extend, retract, and stop a linear actuator. I also describe the Arduino code used to interface with the L298N. In a future video, I will use and RC transmitter and receiver to control the speed and direction of the linear actuator. Please subscribe to my channel and help me reach my goal of 1,000 subscribers by the end of 2020.
Pin Connections:
L298N 12V to Battery +
L298N GND to Battery -
L298N GND to Breadboard GND Rail
L298N 5V to Breadboard 5V Rail
L298N OUT1 to Linear Actuator +
L298N OUT1 to Linear Actuator -
L298N In1 to Arduino Pin 9
L298N In2 to Arduino Pin 10
Button Common to Breadboard GND Rail
Retract Button to Breadboard 5V through 10k resistor and to Arduino Pin 2
Extend Button to Breadboard 5V through 10k resistor and to Arduino Pin 3
Stop Button to Breadboard 5V through 10k resistor and to Arduino Pin 4
Arduino GND to Breadboard GND Rail
Arduino 5V pin to Breadboard 5V Rail