0% found this document useful (0 votes)
62 views

A Report DC Motor Control

This document summarizes a project to control the direction of a DC motor wirelessly via Bluetooth from a smartphone. The circuit uses an Arduino, DC motor, Bluetooth module, L293D IC, and breadboard. The Arduino code allows pressing buttons on the smartphone to turn the motor clockwise, counterclockwise, or off. Applications mentioned include use in robots, machinery, fans, defense systems, and antennae. Testing showed the system could control the motor from various distances reliably.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

A Report DC Motor Control

This document summarizes a project to control the direction of a DC motor wirelessly via Bluetooth from a smartphone. The circuit uses an Arduino, DC motor, Bluetooth module, L293D IC, and breadboard. The Arduino code allows pressing buttons on the smartphone to turn the motor clockwise, counterclockwise, or off. Applications mentioned include use in robots, machinery, fans, defense systems, and antennae. Testing showed the system could control the motor from various distances reliably.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

A REPORT

ON
Direction Control of DC Motor

Electrical Machines

Submitted To:
Engr. Safdar Ali Abro

BY:
FARHANULLAH SARKI
ABSTRACT

We have built and tested a DC motor in way that its direction is controlled through Smartphone via
Bluetooth. The system is tested against the rotation of motor on both sides clockwise and anticlockwise.
And all the controls such as clockwise rotation and anticlockwise rotation of motor and shutting down of
motor is wireless through smartphone. The testing is done with different ranges of distance the system
works well within the wide ranges of connection with smartphone. Display of controls is also assisted
and can easily be monitored on smartphone.

INTRODUCTION

There are many applications for dc motors where control of direction is important such as
Robotic application – to change direction of moving robot, Domestic application – to change
direction of battery (DC) operated portable fan. The motor’s direction is controlled by selecting
option on smartphone using Bluetooth connected to Bluetooth sensor in circuit motor is supplied
and its current is provided through an integrated circuit. The system works in this way that when
“1” is pressed on smartphone the motor rotates clockwise and when “2” it rotates anticlockwise
and shuts off when “0” is pressed on smartphone.

Components Used

S.No Item

1. Arduino
2. DC Motor

3. HC-05 Bluetooth
sensor

4. L293D IC

5. Bread board
6. WIRES

7. Smartphone
Circuit

Circuit snaps
Arduino Code:
int motorPin1 = 3; // pin 2 on L293D IC
int motorPin2 = 4; // pin 7 on L293D IC
int enablePin = 5; // pin 1 on L293D IC
int state;
int flag=0; //makes sure that the serial only prints once the state

void setup() {
// sets the pins as outputs:
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(enablePin, OUTPUT);
// sets enablePin high so that motor can turn on:
digitalWrite(enablePin, HIGH);
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}

void loop() {
//if some date is sent, reads it and saves in state
if(Serial.available() > 0){
state = Serial.read();
flag=0;
}
// if the state is '0' the DC motor will turn off
if (state == '0') {
digitalWrite(motorPin1, LOW); // set pin 2 on L293D low
digitalWrite(motorPin2, LOW); // set pin 7 on L293D low
if(flag == 0){
Serial.println("Motor: off");
flag=1;
}
}
// if the state is '1' the motor will turn right
else if (state == '1') {
digitalWrite(motorPin1, LOW); // set pin 2 on L293D low
digitalWrite(motorPin2, HIGH); // set pin 7 on L293D high
if(flag == 0){
Serial.println("Motor: right");
flag=1;
}
}
// if the state is '2' the motor will turn left
else if (state == '2') {
digitalWrite(motorPin1, HIGH); // set pin 2 on L293D high
digitalWrite(motorPin2, LOW); // set pin 7 on L293D low
if(flag == 0){
Serial.println("Motor: left");
flag=1;
}}}
What are the Applications of DC Motor’s Direction control?

Applications:

 Robotic application – to change direction of moving robot.

 Industrial application – to change direction of rotating machinery

 Domestic application – to change direction of battery (DC) operated portable fan

 Defense application – to rotate radar, automatic gun, tank gun in either direction

 Communication application – rotate dish antenna upward – downward or clockwise –


anticlockwise.

Conclusion

As we can control the direction of DC motor and this capability of DC motor can be used in
numerous applications of controlling the direction of DC motor. DC motor is considered as cost-
effective and practical to use in most industries control the direction.

Reference:

 http://www.instructables.com/id/Arduino-Control-DC-Motor-via-Bluetooth/
 http://www.instructables.com/id/How-to-control-a-DC-motor-to-run-in-both-direction/
 www.electroons.com/8051/electroons/dc_motor_control.html

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy