friendchooser
Newbie level 5
I want to open a door to be opened with 89c51 as after 90 degree the motor should be of automatically and after A smaalll delay it should close the door
this is the circuit i am using and the motor does not stops
plz give an urgent suggestion or ammendments in the code
---------- Post added at 01:26 ---------- Previous post was at 01:25 ----------
The frequency i am giving is through the microcontroller
Code:
#include <reg51.h>
void MSDelay(unsigned int);
void main(void)
{
P1=0x55;
MSDelay(15);
P1=0xAA;
MSDelay(15);
}
void MSDelay(unsigned int itime)
{
unsigned int i,j;
for (i=0;i<itime;i++)
for (j=0;j<80;j++);
}
this is the circuit i am using and the motor does not stops
plz give an urgent suggestion or ammendments in the code
---------- Post added at 01:26 ---------- Previous post was at 01:25 ----------
The frequency i am giving is through the microcontroller