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 / 7148
7147  |  7149
Subject: 
Re: servo program
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Mon, 29 Nov 1999 19:15:09 GMT
Viewed: 
796 times
  
Here's a simple program that will make a servo move as the knob on the
Handyboard is turned:

int i;
void main()
{
init_expbd_servos(1);
while(1)
   {
     i= knob();
     i = (i*10)+1000;
     printf("val %d\n",i);
     msleep(20L);
     servo0 = i;
   }
}

In lugnet.robotics.handyboard, "T.C." <dab8rs_85@yahoo.com> writes:
Can anyone please write me a brief servo motor program
that will control two servos from the expansion board?

This the one I had to control one, but did not work:

void main(void)
{
   while(1)
       {
               init_expbd_servos(1)
                servo0 = 1000
       }

    return(0);
}

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com



Message is in Reply To:
  servo program
 
Can anyone please write me a brief servo motor program that will control two servos from the expansion board? This the one I had to control one, but did not work: void main(void) { while(1) { init_expbd_servos(1) servo0 = 1000 } return(0); } (...) (25 years ago, 29-Nov-99, 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