Go to Post We know that the real goal of FIRST is not for this robot to win, but that we learn something. If i was on robotics to win, it wouldn't be nearly as fun. - Nin_estarSaerah [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 05-03-2006, 17:08
Schmitty!'s Avatar
Schmitty! Schmitty! is offline
Ever issue is an opportunity to...
AKA: Mike Schmitt
FRC #0093 (N.E.W. Apple Corps)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Appleton WI
Posts: 7
Schmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to behold
Direct control of a Servo or Speed Controller

Is it possible to control a servo directly from the digital output of the NI USB 6009? I did some rough timing calculations and based on what I determined I believe the NI USB 6009 system does not have a fine enough timing resolution to accurately control a servo.

Here's what I've got:
The standard servo signal pulse width varies from 1mS to 2mS to correlate from a 0 position to a full-deflection position. I've also measured systems that use a 2mS to 4mS and 4mS to 8mS pulse but it's not critical for this discussion. Assuming 256 steps of resolution and a 1mS to 2mS pulse width there is 3.9uS of time per step.

Unless I'm doing something wrong (which is highly possible), the fastest timed loop I could create was 1kHz (1mS loop time). This is about an order of magnitude slower than I was hoping to obtain.

I have two questions:
1) Has anybody tried to directly control the servos from the digital output of the USB 6009?
2) If so, can you either post your code or point me in the direction of sample code to complete this?

The end goal was to work with Josh (a student on Team 93) to create a stand-alone control system with the custom gyro board. At this point we can effectively read the analog and digital feedback signals from the custom board, but without effective servo (or in this case speed controller) output from the USB 6009 we still need a robot controller involved in the loop. This is less than ideal because of the added delays that will be added into the control loop that are caused by conversions of data within the robot controller.

Once we’ve got the control loop optimized through the USB 6009 the plan is to implement a similar loop though software on the robot controller. If we get this to function we will gladly present any/all data along with the custom gyro board information.

At this point any feedback would be greatly appreciated.
Thanks!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can We Use A N64 Controller To Control The Robot pobots Electrical 25 18-04-2003 12:48
Ugh...PWM pin vs. Speed Controller archiver 2001 1 24-06-2002 00:27
making speed controller digital CharlieWilken Electrical 4 01-03-2002 20:15
Prgm4 2 joystics control 1 speed cntrl??? punarhero Programming 7 21-02-2002 09:57
speed control punarhero Technical Discussion 11 24-01-2002 18:03


All times are GMT -5. The time now is 21:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi