Professional Documents
Culture Documents
Project Report Interfacing DC Motor With 8051 Microcontroller
Project Report Interfacing DC Motor With 8051 Microcontroller
PROJECT REPORT
INTERFACING DC MOTOR WITH 8051
MICROCONTROLLER
MEMBERS
ROLL # 18ES-03 (GROUP LEADER)
ROLL # 18ES-40
ROLL # 18ES-41
ROLL # 18ES-37
ROLL # 18ES-07
1
Table of Content
Introduction…………………………………….……………………..3
Working…………………………………………….…………….…..3
Coding………………………………………………………………..3
How to Operate……………………………………………..………..6
Applications…………………………………………………...……..7
Circuit Diagram……………………………………………….……..7
Hardware Interface…………………………………………..………8
Conclusion…………………………………………………………...8
2
INTRODUCTION
WORKING
CODING
#include<reg51.h>
3
sbit mot2 = P0^1;
void main()
mot1=0;
mot2=0;
forward=1;
backward=1;
stop=1;
while(1)
if(forward==0)
{
4
mot1=1;
mot2=0; while(forward==0);
else if(backward==0)
mot1=0;
mot2=1; while(backward==0);
else if(stop==0)
mot1=0;
mot2=0;
while(stop==0);
5
}
while(1);
HOW TO OPERATE?
Press first button, you can observe that motor will rotate
in clockwise direction.
6
APPLICATIONS
CIRCUIT DIAGRAM
7
HARDWARE INTERFACE
CONCLUSION