Hello guys, Welcome back to my channel. Today we are going to talk about motor control. Motor control is a very important topic in learning Arduino. In this article, we will talk about rotating the motor left or right and controlling the speed. This topic is especially important for making robot cars. These motor control functions cannot be performed directly through the Arduino board. We can use a special method for that. That is, using an H-bridge circuit.
What is the H-bridge circuit?
A circuit consisting of four transistors is called an H-bridge circuit. If we want to turn the motor left or right, the potential given to the motor must be given by switching from anode to cathode. For this purpose, we can use the H-bridge circuit. Today we do not need to make this circuit. The IC made with these H-bridge circuits are available for purchase. We can buy these. There are two major ICs in the market. They are L298N and L293D. Today we will be using L298N IC for this project. This IC includes two H-bridge circuits. So we can control two motors. A motor control board with this IC is available for purchase in the market. We can use that motor control board for this project.
This board can be controlled by two motors. So it is controlled 2A current. We can supply 5-36v supply voltage to this motor control board. If you supply more than 12v, the jumper must be removed.
The board is fitted with a heat sink with L298N IC to withstand a large current. The board includes four terminals for connecting the two motors and three terminals for powering. This board includes six pins for giving inputs through the Arduino board. One motor has three pins and the other three pins use another motor. The pins of one motor are ENA, IN1, and IN2. This ENA pin is used to control motor speed. Uses IN1 and IN2 pins to control motor direction. The same goes for another motor.
Okay, let’s see how to use a single gear motor with this motor control board in practically. The required components are given below.
This component is more important for making robot cars.
Jumper wires
Three FEMALE to MALE jumper wires and two MALE to MALE jumper wires are used for this project.
Step 2
Connect these components using the circuit below.
Connect the Arduino pin D3 pin with the ENA pin. Connect pins D4 and D5 with pins IN1 and IN2. The Arduino board is used to power the motor control board. If the motor does not rotate due to the power provided by the Arduino board, apply external power
Hello and welcome back. In this tutorial, we will learn How to make a Full Home Automation system using the Nodemcu board and the New Blynk app. This system includes…
Hello, welcome back to another tutorial from the SriTu Hobby. In this tutorial, we will learn how to make a home security system using the Nodemcu ESP8266 board and the…
Automatic irrigation and plant watering system using Arduino and soil moisture sensor Hello, welcome back. In this tutorial, I will show you how to make automatic…
Hello, and welcome back. In this project, we will learn how to make a servo motor tester using an Arduino pro-mini board. I used simple methods for that. Therefore, everyone…
Hello, welcome back. In this tutorial, we will learn what is the flame sensor and how to work with an Arduino. These types of sensors are mainly used for fire…
Hello, welcome back. In this tutorial, we will learn how to program Arduino boards using the Arduino droid application. This tutorial is important for those who do not have a…