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 / 598
597  |  599
Subject: 
Re: Servo Motor
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 18 Jul 1996 03:53:07 GMT
Original-From: 
Prabal Dutta <dutta@cis.ohio-state.#saynotospam#edu>
Viewed: 
1608 times
  
Hi Hajime,

Here's the rundown for connecting the servo to the Handy Board:

1) Assuming you're using digital port 9, you will need a connector like this:

      _
=====| |== <--- connect the WHITE wire from the servo here
     | | <--- remove pin to polarize plug
=====| |== <--- connect the RED wire from the servo here
=====|_|== <--- connect the BLACK wire from the servo here

2) Edit the file lib_hb.lis to include the following line:
servo.lis

3) Make sure you have a file called servo.lis.  If not, make one and include:
servo.icb
servo.asm

4) Make sure IC is configured to load up lib_hb.lis as the default library
   by typing:
ic -config

5) After everything is set up, you can run IC to test your servo.
servo_on(); <- enables the servo
servo(int period); <- period is in useconds (center = 1520)
servo_deg(float angle); <- angle is float in degrees (i.e. 90.0)
servo_rad(float angle); <- anlge is float in radians
servo_off(); <- disables the servo


The drawback to this approach is the servo runs off the same regulated
power that the processor runs from.  I've never had problems with the servo
disrupting the 6811 but it could happen.

Hope that helps!

- Prabal



Hello!

Could anybody please tell me the proper step in controlling
the servo motor by HB ?                     ^s

I connected the servo motor to the HB and typed in the servo motor
control functions but none of them are working...

Thanks in advance.




Message is in Reply To:
  Servo Motor
 
Hello! Could anybody please tell me the proper step in controlling the servo motor by HB ? ^s I connected the servo motor to the HB and typed in the servo motor control functions but none of them are working... Thanks in advance. (28 years ago, 17-Jul-96, to lugnet.robotics.handyboard)

2 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