In this Arduino Tutorial we will learn how to control DC motors using Arduino. We well take a look at some basic techniques for controlling DC motors and make two example through which we will learn how to control DC motors using the L298N driver and the Arduino board.
Jump to different section of this video:
00:00 Start
01:28 Introduction
02:06 Hardware Explained
09:10 Wiring explained
11:43 Code Explained
18:42 L298N 2 motor demonstration
20:40 Larger motor demonstration
22:10 Connecting motor into parallel mode
25:12 Parallel mode demonstration
►Arduino Uno:
Arduino Uno is a microcontroller board based on the ATmega328P. It has got 14 digital input/output pins(of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button.
►Motor Driver L298n:
The l298n motor driver is based on the L298 Dual H-Bridge Motor Driver IC. This module allows us to easily and independently control two motors of up to 2A each in both directions.
It has got the ability to control the speed of the motors and this is achieved using ENA and ENB pin provided on the motor driver.
►PWM:
Pulse Width Modulation (PWM), is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between 5 Volts and 0 Volts by changing the portion of the time the signal spends 'on' versus the time that the signal spends 'off', Basically, we take out the average of the signal over a certain time period.The average voltage will be closer to the 5V if the pulse width, that is the time when it is switched 'on' is greater than the 'off' time. If we repeat this on-off pattern fast enough with a LED, the result is as if the signal is not fluctuating but is steady between 0 and 5v controlling the brightness of the LED.
In this Arduino Tutorial we will learn how to control DC motors using Arduino. We well take a look at some basic techniques for controlling DC motors and make two example through which we will learn how to control DC motors using the L298N driver and the Arduino board.
Jump to different section of this video:
00:00 Start
01:28 Introduction
02:06 Hardware Explained
09:10 Wiring explained
11:43 Code Explained
18:42 L298N 2 motor demonstration
20:40 Larger motor demonstration
22:10 Connecting motor into parallel mode
25:12 Parallel mode demonstration
►Arduino Uno:
Arduino Uno is a microcontroller board based on the ATmega328P. It has got 14 digital input/output pins(of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button.
►Motor Driver L298n:
The l298n motor driver is based on the L298 Dual H-Bridge Motor Driver IC. This module allows us to easily and independently control two motors of up to 2A each in both directions.
It has got the ability to control the speed of the motors and this is achieved using ENA and ENB pin provided on the motor driver.
►PWM:
Pulse Width Modulation (PWM), is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between 5 Volts and 0 Volts by changing the portion of the time the signal spends 'on' versus the time that the signal spends 'off', Basically, we take out the average of the signal over a certain time period.The average voltage will be closer to the 5V if the pulse width, that is the time when it is switched 'on' is greater than the 'off' time. If we repeat this on-off pattern fast enough with a LED, the result is as if the signal is not fluctuating but is steady between 0 and 5v controlling the brightness of the LED.
No comments:
Post a Comment