bianchi77
Advanced Member level 4
- Joined
- Jun 11, 2009
- Messages
- 1,313
- Helped
- 21
- Reputation
- 44
- Reaction score
- 20
- Trophy points
- 1,318
- Location
- California
- Activity points
- 9,442
Friends,
How can I stop servo motor from stalling ?
Should I change the driver ? I used ULN2803
Code :
How can I stop servo motor from stalling ?
Should I change the driver ? I used ULN2803
Code :
Code:
output1=1;
output2=1;
output3=1;
output4=1;
//delay(2000);
//count=14;
while(1)
{
//motor begin
count=10;
//rotate left every 45 degree begin
for(i=0;i<50;i++) // 10 equal to 5 degree
{
output=1;
timer(count);
output=0;
timer(100);
//timer(70);
}
delay(30000);
//rotate left every 45 degree end
//rotate right every 45 degree begin
for(i=0;i<50;i++)
{
output=0;
timer(count);
output=1;
timer(100);
//timer(70);
}
delay(30000);
//rotate right every 45 degree end
//motor end