To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 7527
7526  |  7528
Subject: 
Re: servo motors
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 2 Mar 2000 14:48:10 GMT
Viewed: 
646 times
  
wrote the following very simple code, and it doesnt work. can anyone spot
the problem.


void main()
{
servo_on(); /* on servo */
servo(3800); /* full left turn */
servo_off(); /* off servo */
fd(0);          /* motor 0 on */
        sleep(2.0); /* for 2 secs */
servo_on(); /* on servo */
servo(2500); /* mid position */
servo_off();
}

What is it supposed to be doing?  When you say _it_ doesn't work, what
exactly is not working?  I'm not that familiar with the routines but it
looks like you're shutting off the servos before they can move.  I also
believe once you turn off the servo it won't hold it's position any
longer.

-Jim Munro
<jimmn@xnet.com>



Message is in Reply To:
  servo motors
 
hi all i connected a servo to the digital 9 port, downloaded the servo.icb and servo.c files. from the command line i can control the servo. but then i wrote the following very simple code, and it doesnt work. can anyone spot the problem. void (...) (25 years ago, 2-Mar-00, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR