Vous êtes sur la page 1sur 6

6 Electric Drive-2 Laboratory

Experiment No.-8
`

Experiment No.-8
Speed Control of DC Motor Using PWM H-Bridge converter
controlled by ARDUINO Microcontroller

1. Objective of the experiment:


Control the speed and direction of a DC motor using armature voltage control by
PWM H-Bridge converter controlled by ARDUINO Microcontroller in both directions of
rotation.

2. Equipment required:
1. PMDC Motor (Permanent magnet)
2. PWM H-Bridge converter (Motor driver L298)
3. ARDUINO Microcontroller as a control unit with LCD and Keypad
4. Storage Oscilloscope
5. Power supply

3. Block Diagram of the experiment:

ARDUINO Motor
Switches DC MOTOR
Microcontrolle Driver
r

Liquid Cristal Power Supply


Display LCD

- 40 -
6 Electric Drive-2 Laboratory
Experiment No.-8
`

Arduino UNO: is development kit works as the brain, has inputs, outputs and
processor execute the instructions that we give it by coding.
Motor driver L298: it have and H-Bridge circuit that can control motor right and left.
With speed control by PWM.
Liquid crystal display: it can display numbers, alphabetic and others by illuminate
some pixels and hide others.
4. Component details of the experiment
ARDUINO UNO Board

o Use digital IN/OUT pins to connect external devices, so we will connect the LCD
for a particular output pins.
o Use Analog pins to connect only input devices.
o Use USB to program the microcontroller by using the ARDUINO IDE.
o There are 3 ways to power the ARDUINO, use one why only to not damage the
board, so when use USB

- 41 -
6 Electric Drive-2 Laboratory
Experiment No.-8
`

LCD module

Switches schematics

- 42 -
6 Electric Drive-2 Laboratory
Experiment No.-8
`

L298 Driver

Out 1: Motor A lead out


Out 2: Motor A lead out
Out 3: Motor B lead out
Out 4: Motor B lead out
GND: Ground
5v: 5v input
In1: Enable Motor A
In2: Enable Motor A
In3: Enable Motor B
In4: Enable Motor B
EnB: Enables PWM signal for Motor B
EnA: Enables PWM signal for Motor A

PWM

Analogwrite: is a function of ARDUINO


C, enables ARDUINO to
out the PWM.

- 43 -
6 Electric Drive-2 Laboratory
Experiment No.-8
`

5. Steps of the experiment


1. Connect the Circuit to the main supply 220V AC
2. Press SELECT to set the desired speed ratio (%) by increase 10% at step
3. Press RIGHT to run the motor in forward, increase / decrease the speed or stop the
motor by Pressing the keys
4. Press LEFT to run the motor in forward, increase / decrease the speed or stop the
motor by Pressing the keys
5. Connect the Oscilloscope on the motor terminals on a series resistance terminal
6. Record the motor applied voltage (E W) and the motor current.
7. Load the motor at different cases
8. Record the current waveform
9. Connect a large external inductance in series with the motor
10. Record the current waveforms

6. Results
1. The motor runs in forward / reverse using the microcontroller by using the H-
Bridge converter.
2. The motor speed can be controlled by using the microcontroller to control PWM
of the converter.
3. Almost the motor current is discontinuous at no-load and will be continuous by
loading the motor or by increasing the inductance.

7. Waveforms:

- 44 -
6 Electric Drive-2 Laboratory
Experiment No.-8
`

- 45 -

Vous aimerez peut-être aussi