Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to interface dc motor using 8051 with pwm

Status
Not open for further replies.

pradeep23

Member level 5
Joined
Aug 20, 2012
Messages
86
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,866
how to interface dc motor with 8051.....i want to use the concept of PWM ..........I don't know how to use that can any one please tell me how to program for that ....or please provide any circuits for that

- - - Updated - - -

#include <reg52.h> /* special function register declarations */
/* for the intended 8051 derivative */

#include <stdio.h> /* prototype declarations for I/O functions */


//L293D Pin Defines

sbit E1 = P2^0;
sbit I1 = P2^1;
sbit I2 = P2^2;

void Delay(void); //Function prototype declaration



void main (void) {
E1 = 1; //Set E1 pin High to Enable Channel of L293D

while(1) //End less while so that program never ends
{
//Rotate in One Direction
I1 = 0;
I2 = 1;
Delay();
Delay();
Delay();
Delay();

//Rotate in Other Direction
I1 = 1;
I2 = 0;
Delay();
Delay();
Delay();
Delay();

}
}

void Delay(void)
{
int j;
int i;
for(i=0;i<10;i++)
{
for(j=0;j<10000;j++)
{
}
}
}

- - - Updated - - -

l293d.gif...............

- - - Updated - - -

i am using this circuit only ..........

- - - Updated - - -

and programs

- - - Updated - - -

for the above circuits....
 

lee_lxw

Newbie level 5
Joined
Dec 3, 2012
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,341
Okay!
The first, You can find a simply motor driven chip.I think you have found it(I uesd L298N). I think they are nearly.
The second,You can find some typical circuits.You can consult the circuit.QQ截图20121210220529.png.
The Third,If you want use a Micontrollers to control the montor.You'll be able to search the Internet for these keywords "light coupling isolation""the dead band".
I am also a beginer.
If I say wrong.Please forgive me.
Hope this can help you!
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top