SlideShare a Scribd company logo
PRESENTED BY,
MANIKANDAN K
18EIR041
MPMC LABOURATORY
09.12.2020
INTERFACING OF DC MOTOR
INTERFACING OF DC MOTOR
AIM:
To develop Embedded C programming to interface 8051 microcontroller with DC motor
APPARATUS REQUIRED
S.No Item Specification Quantity
1 Microcontroller 8051 1
2 L293D motor driver - 1
3 DC Motor 12V 1
4 Oscillator crystal 12MHz 1
5 Power supply 5V 1
6 Capacitors 33pF, 10μF 2,1
7 Resistor 330kΩ 2
8 Software: Keil μ Vision 5 - -
9 Software: Proteus 8 - -
DC MOTOR
• A motor translates electrical pulses into
mechanical motion
• DC motor works on DC power
Magnitude F=B*l*v
• It follows Lorentz law and Faradays law of
electromagnetic induction principle
• Typical Operating voltages are 6V, 12V or 24V
• DC motors are bidirectional. We can control DC
motor diection by using H-Bridge concept
Principle: “When a current carrying conductor is placed in a
magnetic and electric field, the conductor experiences force”
and the force is the Lorentz force.
H-BRIDGE CONFIGURATION :
High Left High Right Low Left Low Right Description
ON OFF OFF ON Motor runs clockwise
OFF ON ON OFF0 Motor runs anti-clockwise
ON ON OFF OFF Motor stops
OFF OFF ON ON Motor stops
TRUTH TABLE OF
H-BRIDGE
CONFIGURATION
NEED OF DRIVER CIRCUITRY
 The power requirements of most of DC motor is higher
 Back emf produced by the motor may damage the microcontroller
 L293D is a motor driver IC. Supply voltage between 4.5 to 36V with maximum current
of 600mA
 16 pin H-Bridge driver IC
 Can drive two DC motors
 IN1,IN2- Control signals for M1, OUT1,OUT2-M1 connected
 EN1- enables M1
 IN3,IN4- Control signals for M2, OUT3,OUT4-M2 connected
 EN2- enables M2
 VSS- Supply of IC
 VS- Supply of motor
L293D PIN CONFIGURE
CIRCUIT DIAGRAM:
EMBEDDED C CODE:
#include<reg52.h>
#include<stdio.h>
void delay(void);
sbit motor_pin_1 = P2^0;
sbit motor_pin_2 = P2^1;
void main()
{
do
{
motor_pin_1 = 1;
motor_pin_2 = 0; //Rotates Motor Anti Clockwise
delay();
motor_pin_1 = 1;
motor_pin_2 = 1; //Stops Motor
delay();
motor_pin_1 = 0;
motor_pin_2 = 1; //Rotates Motor Clockwise
delay();
motor_pin_1 = 0;
motor_pin_2 = 0; //Stops Motor
delay();
}while(1);
}
void delay()
{
int i,j;
for(i=0;i<1000;i++)
{
for(j=0;j<1000;j++)
{
}
}
}
PROCEDURE
RESULT
Thus, Embedded C programming to interface 8051 microcontroller with
DC motor was developed and output was verified successfully

More Related Content

What's hot

Report on remote control home appliances.
Report on remote control home appliances.Report on remote control home appliances.
Report on remote control home appliances.
Sonal Bansal
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
Srikrishna Thota
 
POWER ELECTRONICS
POWER ELECTRONICSPOWER ELECTRONICS
POWER ELECTRONICS
ashutoshgupta1102
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
DominicHendry
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Jay Patel
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085
vishalgohel12195
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
Anurag Alaria
 
Interrupt in 8051
Interrupt in 8051Interrupt in 8051
Interrupt in 8051
ssuser3a47cb
 
Chopper
ChopperChopper
Current Source Inverter
Current Source InverterCurrent Source Inverter
Current Source Inverter
Rajendra Gharase
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
Pantech ProLabs India Pvt Ltd
 
NMOS PPT for 2nd year
NMOS PPT for 2nd yearNMOS PPT for 2nd year
NMOS PPT for 2nd year
faltuthings
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adcPRADEEP
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
embdnew
 
Power supplies & regulators
Power supplies & regulatorsPower supplies & regulators
Power supplies & regulators
Dr.YNM
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
Monica Gunjal
 
function generator
function generatorfunction generator
function generator
Himanshu Singh
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
LIght Dimmer Circuit Using DIAC And TRIAC
LIght Dimmer Circuit Using DIAC And TRIACLIght Dimmer Circuit Using DIAC And TRIAC
LIght Dimmer Circuit Using DIAC And TRIAC
Parth Patel
 

What's hot (20)

Report on remote control home appliances.
Report on remote control home appliances.Report on remote control home appliances.
Report on remote control home appliances.
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
 
POWER ELECTRONICS
POWER ELECTRONICSPOWER ELECTRONICS
POWER ELECTRONICS
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
 
Interrupt in 8051
Interrupt in 8051Interrupt in 8051
Interrupt in 8051
 
Chopper
ChopperChopper
Chopper
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Current Source Inverter
Current Source InverterCurrent Source Inverter
Current Source Inverter
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
NMOS PPT for 2nd year
NMOS PPT for 2nd yearNMOS PPT for 2nd year
NMOS PPT for 2nd year
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
 
Power supplies & regulators
Power supplies & regulatorsPower supplies & regulators
Power supplies & regulators
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
 
function generator
function generatorfunction generator
function generator
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
LIght Dimmer Circuit Using DIAC And TRIAC
LIght Dimmer Circuit Using DIAC And TRIACLIght Dimmer Circuit Using DIAC And TRIAC
LIght Dimmer Circuit Using DIAC And TRIAC
 

Similar to Interfacing of dc motor with 8051 micro controller ,L293D

BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLERBIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
Shanmukha S. Potti
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
Tridib Bose
 
Hbridge
HbridgeHbridge
Hbridge
Ritesh Kakkar
 
Automated load shedding using microcontroller
Automated load shedding using microcontrollerAutomated load shedding using microcontroller
Automated load shedding using microcontroller
RajVerma175
 
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLERFOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
shiv kapil
 
Ppt
PptPpt
AUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLAUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROL
shiv kapil
 
Obstacle avoiding robot(Lab report)
Obstacle  avoiding  robot(Lab report)Obstacle  avoiding  robot(Lab report)
Obstacle avoiding robot(Lab report)
Захір Райхан
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Journal For Research
 
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...moiz89
 
Wifi controlled rover prototype
Wifi controlled rover prototypeWifi controlled rover prototype
Wifi controlled rover prototype
MLV Textile & Engineering College
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Ronza Sameer
 
Speed Control of DC Motor
Speed Control of DC MotorSpeed Control of DC Motor
Speed Control of DC Motor
Mafaz Ahmed
 
Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...
eSAT Journals
 
DREAM QUADCOPTER
DREAM QUADCOPTERDREAM QUADCOPTER
DREAM QUADCOPTER
AJILMON
 

Similar to Interfacing of dc motor with 8051 micro controller ,L293D (20)

BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLERBIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
 
Hbridge
HbridgeHbridge
Hbridge
 
03 TOTAL REPORT
03 TOTAL REPORT03 TOTAL REPORT
03 TOTAL REPORT
 
Automated load shedding using microcontroller
Automated load shedding using microcontrollerAutomated load shedding using microcontroller
Automated load shedding using microcontroller
 
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLERFOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
 
Manual fsr'14
Manual fsr'14Manual fsr'14
Manual fsr'14
 
Ppt
PptPpt
Ppt
 
AUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLAUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROL
 
Obstacle avoiding robot(Lab report)
Obstacle  avoiding  robot(Lab report)Obstacle  avoiding  robot(Lab report)
Obstacle avoiding robot(Lab report)
 
Microchip motor
Microchip motorMicrochip motor
Microchip motor
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
 
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
 
Wifi controlled rover prototype
Wifi controlled rover prototypeWifi controlled rover prototype
Wifi controlled rover prototype
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)
 
Speed Control of DC Motor
Speed Control of DC MotorSpeed Control of DC Motor
Speed Control of DC Motor
 
Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...
 
DREAM QUADCOPTER
DREAM QUADCOPTERDREAM QUADCOPTER
DREAM QUADCOPTER
 
Part 2 master
Part 2 masterPart 2 master
Part 2 master
 
Part 2 master
Part 2 masterPart 2 master
Part 2 master
 

Recently uploaded

NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 

Recently uploaded (20)

NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 

Interfacing of dc motor with 8051 micro controller ,L293D

  • 1. PRESENTED BY, MANIKANDAN K 18EIR041 MPMC LABOURATORY 09.12.2020 INTERFACING OF DC MOTOR
  • 2. INTERFACING OF DC MOTOR AIM: To develop Embedded C programming to interface 8051 microcontroller with DC motor APPARATUS REQUIRED S.No Item Specification Quantity 1 Microcontroller 8051 1 2 L293D motor driver - 1 3 DC Motor 12V 1 4 Oscillator crystal 12MHz 1 5 Power supply 5V 1 6 Capacitors 33pF, 10μF 2,1 7 Resistor 330kΩ 2 8 Software: Keil μ Vision 5 - - 9 Software: Proteus 8 - -
  • 3. DC MOTOR • A motor translates electrical pulses into mechanical motion • DC motor works on DC power Magnitude F=B*l*v • It follows Lorentz law and Faradays law of electromagnetic induction principle • Typical Operating voltages are 6V, 12V or 24V • DC motors are bidirectional. We can control DC motor diection by using H-Bridge concept Principle: “When a current carrying conductor is placed in a magnetic and electric field, the conductor experiences force” and the force is the Lorentz force.
  • 4. H-BRIDGE CONFIGURATION : High Left High Right Low Left Low Right Description ON OFF OFF ON Motor runs clockwise OFF ON ON OFF0 Motor runs anti-clockwise ON ON OFF OFF Motor stops OFF OFF ON ON Motor stops TRUTH TABLE OF H-BRIDGE CONFIGURATION
  • 5. NEED OF DRIVER CIRCUITRY  The power requirements of most of DC motor is higher  Back emf produced by the motor may damage the microcontroller  L293D is a motor driver IC. Supply voltage between 4.5 to 36V with maximum current of 600mA  16 pin H-Bridge driver IC  Can drive two DC motors  IN1,IN2- Control signals for M1, OUT1,OUT2-M1 connected  EN1- enables M1  IN3,IN4- Control signals for M2, OUT3,OUT4-M2 connected  EN2- enables M2  VSS- Supply of IC  VS- Supply of motor L293D PIN CONFIGURE
  • 7. EMBEDDED C CODE: #include<reg52.h> #include<stdio.h> void delay(void); sbit motor_pin_1 = P2^0; sbit motor_pin_2 = P2^1; void main() { do { motor_pin_1 = 1; motor_pin_2 = 0; //Rotates Motor Anti Clockwise delay(); motor_pin_1 = 1; motor_pin_2 = 1; //Stops Motor delay(); motor_pin_1 = 0; motor_pin_2 = 1; //Rotates Motor Clockwise delay(); motor_pin_1 = 0; motor_pin_2 = 0; //Stops Motor delay(); }while(1); } void delay() { int i,j; for(i=0;i<1000;i++) { for(j=0;j<1000;j++) { } } }
  • 9. RESULT Thus, Embedded C programming to interface 8051 microcontroller with DC motor was developed and output was verified successfully