Thread: General Q's
View Single Post
  #4   Spotlight this post!  
Unread 22-02-2005, 21:03
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,673
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: General Q's

The Digital Ins can be used for any number of things. Most commonly, they are used for two things, limit switches and shaft encoders.

A limit switch is a microswitch attached to some part of the robot such that it closes or opens whenever the part reaches some point in its travel where you want it to stop. for instance, when a telescoping arm reaches maximum extension. Then you watch the value of the digital in and disable the motor in one direction when it changes.

Shaft encoders are small opto-electric devices that send n pulses everytime its shaft turns one revolution. This is useful for determining the distance your robot has traveled or its speed.

There's tons of other uses out there as well.

Also, you can easily use a victor like a spike. Write your program to set the particular PWM to 0, 128, or 255 for reverse, off, and forward, respectively.

Edit: also, also, you could use a digital out as a sort of PWM by pulsing it in the program. however, the current PWMs already have all that code taken care of for you, so you might as well use them.

Finally, the PWM cable is just a name. It could also be called a servo cable, etc. Most all the I/Os on the robot have +5(?)V, Ground, and Data pins of various sorts. The only thing that changes is the use of the data pin, so it's convenient to make them all standardized to the 3-pin PWM cable connectors.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 22-02-2005 at 21:12.