deeplearns
Member level 4

Hi Friends ,
I have been trying to drive a motor through a Relay using ULN2803 , as current amplifier using micrcontroller AT89C51 for the relay but the ckt does not work when tried to simulate in Proteus .
Can someone please help I am newbie .
I have just setup a simple delay program so that the uln2803 gets i/p for a while which should ideally drive the relay but nothing happens .
I also tried to switch the motor with a lamp (12 v i/p ) and tried several things does not work at all .
Please help .
Following is the C program i am using for the uc ...
#include<reg51.h>
sbit latch = P2^0;
void msdelay()
{
unsigned int x,y;
for(x=0;x<3300;x++);
for(y=0;y<3300;y++);
}
void main()
{
while(1)
{
latch=~latch;
msdelay();
}
}

I have been trying to drive a motor through a Relay using ULN2803 , as current amplifier using micrcontroller AT89C51 for the relay but the ckt does not work when tried to simulate in Proteus .
Can someone please help I am newbie .
I have just setup a simple delay program so that the uln2803 gets i/p for a while which should ideally drive the relay but nothing happens .
I also tried to switch the motor with a lamp (12 v i/p ) and tried several things does not work at all .
Please help .
Following is the C program i am using for the uc ...
#include<reg51.h>
sbit latch = P2^0;
void msdelay()
{
unsigned int x,y;
for(x=0;x<3300;x++);
for(y=0;y<3300;y++);
}
void main()
{
while(1)
{
latch=~latch;
msdelay();
}
}
