controlling two servo with 8051
Mon Sep 07 2009, 04:52 pm
hi,my project is to control steering of a toy car with one servo motor (using p89v51rd2) through a remote control.if i do not press any key (set for steering-one for left and one for right) then the servo should stay at centre.if i press left key then it should turn 25 degree to left .if i press right key then it should turn right 25 degree.else it should stay at centre(90 degree).
also i want to use enother servo for braking system.can you suggest any ideas for this. please help.coding in assembly language please.please please please help......................................
also i want to use enother servo for braking system.can you suggest any ideas for this. please help.coding in assembly language please.please please please help......................................
Mon Sep 07 2009, 04:57 pm
Can you just sent the ckt and code of it plz? I am trying to run a servo motor using at89c51.
Mon Sep 07 2009, 05:05 pm
i dont know code....n also i m using 11.0592 mhz crystal n my servo motors are both (fatuba s3003).
can any body please give me the code for this. please help.............
i will be very thankful to that helpful guy............please
can any body please give me the code for this. please help.............
i will be very thankful to that helpful guy............please
Tue Sep 08 2009, 07:11 am
thanks ajay,
i want that servo 1 should control steering n servo 2 for brake.
when i press key 1(asigned for left) than servo should move 25 degree to left . when i relese the botton than it should come back to centre(90 degree) n same with right.......
for brake when i press key 3 (asigned for brake) than servo 2 should turn 25 degree to left.when i relese the key than it should come back to normal.
please help me.....................i will be very thankful to you.
i want that servo 1 should control steering n servo 2 for brake.
when i press key 1(asigned for left) than servo should move 25 degree to left . when i relese the botton than it should come back to centre(90 degree) n same with right.......
for brake when i press key 3 (asigned for brake) than servo 2 should turn 25 degree to left.when i relese the key than it should come back to normal.
please help me.....................i will be very thankful to you.
Wed Sep 09 2009, 11:30 am
all you need is to generate correct pulse in correct time to keep motor in right angle.
check this..
http://www.seattlerobotics.org/guide/servos.html
check this..
http://www.seattlerobotics.org/guide/servos.html
Wed Sep 09 2009, 12:54 pm
ya but in this website ita only about changing angle to 90 or 180 or 0.
i want to shift either side to 25 degree from 90.
i want these states:-
centre:- 90
left:- 90+25
right:- 90-25
if no input than at centre.........
can u please give me the ful program for this purpose....(asembly)
my details are:-
crystal i m using is 11.0592 mhz
ucontroller:-p89v51rd2
servo:-fatuba s3003
i want to shift either side to 25 degree from 90.
i want these states:-
centre:- 90
left:- 90+25
right:- 90-25
if no input than at centre.........
can u please give me the ful program for this purpose....(asembly)
my details are:-
crystal i m using is 11.0592 mhz
ucontroller:-p89v51rd2
servo:-fatuba s3003
Powered by e107 Forum System