Go to Post Of course our robot can fly! - Bill_B [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-03-2005, 16:26
scitobor 617's Avatar
scitobor 617 scitobor 617 is offline
More nerd than you can handle!
AKA: Alan Meekins
FRC #0617 (HSHS 617 "DUKE")
Team Role: Programmer
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Richmond, VA
Posts: 153
scitobor 617 will become famous soon enoughscitobor 617 will become famous soon enough
Send a message via AIM to scitobor 617
PC control of a Victor884/883

I'm working on a project that will require me to control several Victors with a PC parrellel port. I was thinking that this will be easy to do but I have a few questions. What is the purpose of all three connectors on a PWM cable, are only the ground and postive connectors used? Aslo, what is the range of duty cycles the Victor 883 and 884 can handle? And finally how much time does one cycle take?

Thanks in advance.
__________________
Beta testers needed!
http://www.nullagent.no-ip.com

Your kidding, there are other operating systems besides Linux?!
  #2   Spotlight this post!  
Unread 16-03-2005, 16:47
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: PC control of a Victor884/883

I don't have experience with a victor but other similar speed controls I've used like to take pulses between 1.0 and 2.0 milliseconds in length with a 1.5 ms pulse being the neutral throttle posititon. These pulses should occur every 20 ms.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #3   Spotlight this post!  
Unread 16-03-2005, 17:13
scitobor 617's Avatar
scitobor 617 scitobor 617 is offline
More nerd than you can handle!
AKA: Alan Meekins
FRC #0617 (HSHS 617 "DUKE")
Team Role: Programmer
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Richmond, VA
Posts: 153
scitobor 617 will become famous soon enoughscitobor 617 will become famous soon enough
Send a message via AIM to scitobor 617
Re: PC control of a Victor884/883

I have an osciliscope at my displosal, could I use it to find the length of the pulses the RC sends to a Victor? However, I have never used an osciliscope other than just playing around. How can I use it to measure length of the pulses?
__________________
Beta testers needed!
http://www.nullagent.no-ip.com

Your kidding, there are other operating systems besides Linux?!
  #4   Spotlight this post!  
Unread 16-03-2005, 17:14
Shu Song's Avatar
Shu Song Shu Song is offline
Melodious Footware
AKA: *Crash!* Shuuuuuuuuuuuu
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Ithaca, NY
Posts: 539
Shu Song has much to be proud ofShu Song has much to be proud ofShu Song has much to be proud ofShu Song has much to be proud ofShu Song has much to be proud ofShu Song has much to be proud ofShu Song has much to be proud ofShu Song has much to be proud of
Send a message via AIM to Shu Song
Re: PC control of a Victor884/883

The red and black wires on the PWM cables are +7.2 volts and ground respectively. The white wire is what you use to vary the pulse length.
__________________
Code Red Robotics - Team 639
Ithaca High School| Ithaca | New York | USA | Earth | Sol System | Milky Way | Universe | Some Alien's Locker

WINNER of the 2005 Finger Lakes Regional, thanks to teams 191 and 494.
WINNER of the 2004 Canadian Regional, thanks to teams 33 and 1112
WINNER of Delphi: Driving Tomorrow's Technology Award at the 2007 Finger Lakes Regional.
  #5   Spotlight this post!  
Unread 16-03-2005, 17:50
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Rolling your own...

This Kit shows how to access a printer port via the various languages. I can vouch for the I/O box too. Very impressed. Using this box and the example code, you should be able to control a Victor tolerably well. I would not do anything safety critical because I would guess it could freak out when the PC gets too busy or Windows gets flakey.

If you REALLY want to control a Victor using a PC, I would recommend either THIS from Scott Edwards which uses an RS-232 port and controls up 16 servos (8 per board, 2 boards per USB) or even better THIS from Parrallax Inc. which uses USB to control 16 servos on one board.

I have used the Scott Edwards board and vouch for it. Old FIRSTer may know that FIRST used Scott's SSC code to run a PIC that was inside the old Stamp2 based controllers (why this explains the 127=OFF set up by the way it is a legacy from Scotts boards).

I have the Parallax board on order (it hopefully ships Friday). I have high hopes for it. By the way, do not be fooled, the Parrallax Serial Servo Controller is not the same as the Scott Edwards board. The Parallax Serial board is essential made to interface to a STAMP2. It requires other glue to interface to a PC RS-232 port.

Good luck.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #6   Spotlight this post!  
Unread 16-03-2005, 18:44
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: Rolling your own...

Quote:
Originally Posted by Joe Johnson
even better THIS from Parrallax Inc. which uses USB to control 16 servos on one board.

I have the Parallax board on order (it hopefully ships Friday). I have high hopes for it. By the way, do not be fooled, the Parrallax Serial Servo Controller is not the same as the Scott Edwards board. The Parallax Serial board is essential made to interface to a STAMP2. It requires other glue to interface to a PC RS-232 port.
Wow, thanks for the link. That board is incredible, and incredibly cheap (which is probably why it is backordered). The manual isn't yet available for donwload. Can you tell me some more about it? Does it plug right into the USB port on a PC? If so, what (program) controls it? Is there software that runs on windows to control all the servos?

You could make a really walking robot with that. What do you plan to do with it?
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #7   Spotlight this post!  
Unread 16-03-2005, 19:58
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Rolling your own...

Quote:
Originally Posted by sanddrag
Wow, thanks for the link. That board is incredible, and incredibly cheap (which is probably why it is backordered). The manual isn't yet available for donwload. Can you tell me some more about it? Does it plug right into the USB port on a PC? If so, what (program) controls it? Is there software that runs on windows to control all the servos?

You could make a really walking robot with that. What do you plan to do with it?
It is not yet in from their (Asian) manufacturing source. Their tech support claim production delays are the issue not too many orders.

I THINK that the USB will make a virtual COM port that you can access via whatever you want. BUT... ...I too am not clear on this. I am inferring much from THIS page (and so experience I have with USB Bluetooth Dongles). Look at this picture that shows and USB to COM port chip and then look at this picture of the USB Servo Controller. Suspicious no?

Stay tuned...

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 16-03-2005 at 20:02.
  #8   Spotlight this post!  
Unread 16-03-2005, 20:57
scitobor 617's Avatar
scitobor 617 scitobor 617 is offline
More nerd than you can handle!
AKA: Alan Meekins
FRC #0617 (HSHS 617 "DUKE")
Team Role: Programmer
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Richmond, VA
Posts: 153
scitobor 617 will become famous soon enoughscitobor 617 will become famous soon enough
Send a message via AIM to scitobor 617
Re: PC control of a Victor884/883

Quote:
Originally Posted by TierraDelDiablo
The red and black wires on the PWM cables are +7.2 volts and ground respectively. The white wire is what you use to vary the pulse length.
So the yellow signal cable is unused? I suspected this.

Quote:
Originally Posted by Joe Johnson
I would not do anything safety critical because I would guess it could freak out when the PC gets too busy or Windows gets flakey.
Oh. I should have mention that this project is to show the power of Linux, so I SHOULD have little to worry about the OS being unstable. However the operating conditions could get kinda rough. 100 degree Virginia days are not exactly the best operating conditions for a PC, although the water cooling system should take care of this.

Quote:
Originally Posted by Joe Johnson
If you REALLY want to control a Victor using a PC, I would recommend either THIS from Scott Edwards which uses an RS-232 port and controls up 16 servos (8 per board, 2 boards per USB) or even better THIS from Parrallax Inc. which uses USB to control 16 servos on one board.
Due to the fact that I am using Linux I think it will be easier just to use a printer port to control the Victors, as the USB kits do not seem to offer Linux drivers(no surprise there). From what I have read a parrallel port should allow me to control 5-8 servos or Victors, is this correct?

-Scitobor
__________________
Beta testers needed!
http://www.nullagent.no-ip.com

Your kidding, there are other operating systems besides Linux?!
  #9   Spotlight this post!  
Unread 16-03-2005, 21:58
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,015
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
Re: PC control of a Victor884/883

Quote:
Originally Posted by scitobor 617
So the yellow signal cable is unused? I suspected this.

-Scitobor
The yellow and white cables on 'pwm' wires are the same. Some cables happen to use yellow for signal, others use white. The signal carried is the same.

-Andy A.
  #10   Spotlight this post!  
Unread 16-03-2005, 22:59
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: PC control of a Victor884/883

Quote:
Originally Posted by scitobor 617
Due to the fact that I am using Linux I think it will be easier just to use a printer port to control the Victors, as the USB kits do not seem to offer Linux drivers(no surprise there). From what I have read a parrallel port should allow me to control 5-8 servos or Victors, is this correct?

-Scitobor
A lot depends on if you are willing to use extra glue chips to make this work. With a serial in, parallel out latch, you could essentially shift in as many bits as you like and controll a TON of servos. But... ...if you are trying to more or less plumb a DB-25 connector to a printer port, you've got 6 control lines and 8 data lines.

The control lines are STROBE, AUTOFD, SLCTIN,PE & SLCT, but looking at the data sheet, PE, SLCT & ACK are inputs. SO...

I think you are limited to 11 Servos max just based on hardware. With a stable OS and some flexibility to set priorities of tasks you should be in good shape controlling 11 servos. The timing is really not that critical compared to other tasks.

Oh yeah, I would not be so sure about the lack of a Linux driver. See the quote below from here:
Quote:
These chips have proven their abilities under multiple operating systems with FTDI’s free, top-notch virtual COM port drivers for PCs, Macs, Linux and CE operating systems. The virtual COM port drivers interface just like a serial port with extended data rates. FTDI chips are state-machine based and require no firmware. They can access an optional external EEPROM upon power-up which contains your own USB vendor and product ID should you require this feature.
It seems to me that the FTDI chip that, based on the picture of the board, is used on the Parallax USB servo controller is THE thing that turns a standard Parallax Serial controller into a USB Serial controller.

If I am right, then the FTDI just makes the USB port generate a virtual COM port. AND FTDI claims (above) that they have FREE (as in "free beer" for you Open Source folks reading this) drivers for "multiple operating systems" including Linux.

Look at these two boards:


The only difference really is that the one on the right (the USB one) has the FDTI chip on it. I am pretty sure the the differnence is that one gets it's serial data directly an the other gets it from the FDTI chip. In that case, a Linux driver that gets you a "virtual COM" essentially IS a Linux driver for the whole kit and kaboodle.

But... ...as usual, I could be wrong.

Wrong or no, Good luck. Let us know how it turns out.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 16-03-2005 at 23:16.
  #11   Spotlight this post!  
Unread 18-03-2005, 14:06
scitobor 617's Avatar
scitobor 617 scitobor 617 is offline
More nerd than you can handle!
AKA: Alan Meekins
FRC #0617 (HSHS 617 "DUKE")
Team Role: Programmer
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Richmond, VA
Posts: 153
scitobor 617 will become famous soon enoughscitobor 617 will become famous soon enough
Send a message via AIM to scitobor 617
Re: PC control of a Victor884/883

I think I will buy one of the Pallax boards, they seem like a good solution. Thanx for the help, I will keep you all posted when I start getting parts in.
__________________
Beta testers needed!
http://www.nullagent.no-ip.com

Your kidding, there are other operating systems besides Linux?!
Closed Thread


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
2005 RadioShack® Innovation in Control Award! dez250 General Forum 10 10-03-2005 21:29
Invacare control system, UI? Jacob Morgan Control System 0 24-10-2004 16:54
What do you wish you knew about the new control system? Joe Ross Control System 2 09-01-2004 21:47
Need a FIRST Robotics control system kershawrobotics General Forum 3 07-07-2003 09:49
more control options smokescreen Technical Discussion 17 05-03-2002 15:41


All times are GMT -5. The time now is 06:00.

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