Go to Post Frisbees [as next year's game piece]. That is all. - Frenchie461 [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 31-05-2005, 21:05
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Question VEX inputs

Forgive me if this is a repeat, but I can't find any info on the inputs on the VEX controller. I am mostly interested in analog and TTL inputs. If anyone should know of these wonderful little thingy's I would very much appreciate it! Thanks much!
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
Reply With Quote
  #2   Spotlight this post!  
Unread 04-06-2005, 13:30
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: VEX inputs

The reason I'm asking this is because I would like to interface a vex brain with a RFID tag reader.
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
Reply With Quote
  #3   Spotlight this post!  
Unread 04-06-2005, 15:22
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: VEX inputs

by inference from the data sheet for the microchip pic 18f8520, (http://ww1.microchip.com/downloads/e...oc/39609b.pdf), the sixteen analog/digital pins on the controller will be connected to ports D and E on the microcontroller as these are configurable as either analog inputs or as digital input or ouput pins. the six interrupt pins are probably connected to port B, which can be configured for hardware interrupts, though these pins might also be useable for digital i/o. no way to guess where the motor ports are connected except that they are probably not connected to ports B, D or E. all of this could be doped out with a little patience and an ohm meter, but i'm probably not the guy to do it and definitely not today.

i do know that two of the pins on the serial port are connected to pins rc6 and rc7 on port C, these being the transmit and receive pins on one of the 18f8520's uarts. i have verified this with a meter.

it may not be unreasonable to guess that the two pins labelled tx and rx are attached to pins rg1 and rg2 on port G, these being the transmit and receive pins of the other uart.

that's all i've got.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-06-2005, 02:28
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Red face Re: VEX inputs

mea culpa. mea maxima culpa. ok, i was wrong.

according to the file ifi_aliases.h in the vex starter code available at vexlabs.com the pins on the vex controller are connexted as follows.

Analog / Digital Section

pin 1 = ra0
pin 2 = ra1
pin 3 = ra2
pin 4 = ra3
pin 5 = ra5
pin 6 = rf0
pin 7 = rf1
pin 8 = rf2
pin 9 = rf3
pin 10 = rf4
pin 11 = rf5
pin 12 = rf6
pin 13 = rh4
pin 14 = rh5
pin 15 = rh6
pin 16 = rh7
rx = rg1
tx = rg2

Interrupt Section

pin 1 = rb2
pin 2 = rb3
pin 3 = rb4
pin 4 = rb5
pin 5 = rb6
pin 6 = rb7

Motors Section

pin 1 = re7
pin 2 = rg0
pin 3 = rg3
pin 4 = rg4
pin 5 = ?
pin 6 = ?
pin 7 = ?
pin 8 = ?

sorry, but there are no definitions for those last four.

any pin can be configured as a digital input or output. pins 1-16 in analog/digital section can be configured as analog inputs. the 6 pins of the interrupt section can be used as external interrupts for wheel encoders, bumpers, etc. the pins of the motors section are normally used to produce pwm outputs to control, you guessed it, motors.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-06-2005, 22:43
John Wanninger's Avatar
John Wanninger John Wanninger is offline
Registered User
FRC #1732 (Hilltoppers)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: Milwaukee, WI
Posts: 142
John Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond repute
Re: VEX inputs

Quote:
Originally Posted by foobert

any pin can be configured as a digital input or output. pins 1-16 in analog/digital section can be configured as analog inputs. the 6 pins of the interrupt section can be used as external interrupts for wheel encoders, bumpers, etc. the pins of the motors section are normally used to produce pwm outputs to control, you guessed it, motors.
Thanks for posting the info Foobert.

I was surprized and perhaps a bit disappointed to see that the Vex User Manual addendum preview for the upcoming Optical Encoder Sensor instructs "You’ll need to plug your shaft encoder into any port in the Analog/Digital bank on the Vex Microcontroller."

I'm hoping the sensors will be able to utilize interrupts. I wonder if the outside pins on the interrupt section pin out the same as the analog/digital section and that either section can be used with many of sensors. I'm guessing one pin is +5V; the other ground? I suppose this could be a question for the IFI engineers, although there my be an info 'blackout' for sensor info until they're officially released.
__________________

"A hundred times every day I remind myself that my inner and outer life are based on the labors of other men, living and dead, and that I must exert myself in order to give in the same measure as I have received and am still receiving..."
--Albert Einstein

2001: FLL852 |2002: FLL20/FLL21 |2003: FLL23/FLL25 |2004: FLL14/FLL16 |2005: FVC22/FLL124 |2006: FLL3/FLL2986/FVC22/FRC1732 |2007:FLL3/FLL34/FLL56/FRC1732
2008: FLL3/FLL18/FRC1732 |2009: FLL101/FLL8963/FRC1732 ...(etc.!)
Reply With Quote
  #6   Spotlight this post!  
Unread 12-06-2005, 00:57
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: VEX inputs

white wire on the keyed end of the connector appears to be signal. middle pin on analog/digital and interrupt connectors is 5 volts and on the motor connectors it's the raw battery voltage. the pin on the unkeyed end of the connector is ground.

it doesn't appear that the folks at IF are eager to help with buggy interrupt code. there is a disclaimer to that effect in the function InterruptVectorLow in user_routines_fast.c. can't say i blame them.

Last edited by foobert : 12-06-2005 at 01:05.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-06-2005, 16:26
davefowler davefowler is offline
Registered User
no team
 
Join Date: May 2005
Location: Hastings
Posts: 6
davefowler is an unknown quantity at this point
Re: VEX inputs

Thanx for all your help. I have most the stuff to make a programming module now so I think I'm going to go that route. Someone mentioned that they bought one. Are they for sale now? Where can you get them? I can't find them.
Reply With Quote
  #8   Spotlight this post!  
Unread 12-06-2005, 17:22
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: VEX inputs

Quote:
Originally Posted by davefowler
Thanx for all your help. I have most the stuff to make a programming module now so I think I'm going to go that route. Someone mentioned that they bought one. Are they for sale now? Where can you get them? I can't find them.
I purchased one through IFI. Contact them by e-mail at info@innovationfirst.com I have not received mine yet, it is still in route via. UPS, so I won't be able to give details on what is included until it arrives. It is my understanding that the ones from IFI are prototype units. So my guess is they may be a little different from what will be released by Radio Shack in August.
Reply With Quote
  #9   Spotlight this post!  
Unread 12-06-2005, 17:36
John Wanninger's Avatar
John Wanninger John Wanninger is offline
Registered User
FRC #1732 (Hilltoppers)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: Milwaukee, WI
Posts: 142
John Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond repute
Re: VEX inputs

Quote:
Originally Posted by davefowler
Thanx for all your help. I have most the stuff to make a programming module now so I think I'm going to go that route. Someone mentioned that they bought one. Are they for sale now? Where can you get them? I can't find them.
Call Innovation First at 903.453.0800 and you'll be able to order one. The modules are bare board beta units (no housings) and cost about $99 + shipping. The MPLAB CBOT compiler (IDE + C18 C compiler for PIC18F8520) and two cables are included.

One possible caveat: By ordering now, we do not recieve EASYC, a proposed C code generator which may or may not be bundled with the upcoming Radio Shack programming module release (slated for August).
__________________

"A hundred times every day I remind myself that my inner and outer life are based on the labors of other men, living and dead, and that I must exert myself in order to give in the same measure as I have received and am still receiving..."
--Albert Einstein

2001: FLL852 |2002: FLL20/FLL21 |2003: FLL23/FLL25 |2004: FLL14/FLL16 |2005: FVC22/FLL124 |2006: FLL3/FLL2986/FVC22/FRC1732 |2007:FLL3/FLL34/FLL56/FRC1732
2008: FLL3/FLL18/FRC1732 |2009: FLL101/FLL8963/FRC1732 ...(etc.!)

Last edited by John Wanninger : 12-06-2005 at 17:50.
Reply With Quote
  #10   Spotlight this post!  
Unread 13-06-2005, 07:34
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: VEX inputs

Quote:
Originally Posted by John Wanninger
Thanks for posting the info Foobert.

I was surprized and perhaps a bit disappointed to see that the Vex User Manual addendum preview for the upcoming Optical Encoder Sensor instructs "You’ll need to plug your shaft encoder into any port in the Analog/Digital bank on the Vex Microcontroller."

I'm hoping the sensors will be able to utilize interrupts. I wonder if the outside pins on the interrupt section pin out the same as the analog/digital section and that either section can be used with many of sensors.
That's a mistake in the manual. You will plug the encoders into the interrupt port when using them with EasyC (and could do the same if you write your own program). EasyC will give you the option to turn them on, off, read the value, and preset the count. I'm pretty sure they return 90 counts (pulses) per revolution.

Brad
Reply With Quote
  #11   Spotlight this post!  
Unread 05-12-2005, 22:04
Andrew Andrew is offline
Registered User
#0356
 
Join Date: May 2002
Location: Little Rock, AR
Posts: 393
Andrew is a name known to allAndrew is a name known to allAndrew is a name known to allAndrew is a name known to allAndrew is a name known to allAndrew is a name known to all
Re: VEX inputs

Has anyone actually gotten some of the encoders? They've been listed on the vexlabs.com and the radioshack.com sites as being "sold out - coming soon" for the last couple of months.

Have they been released and sold out? Or, have they not yet been released?
Reply With Quote
  #12   Spotlight this post!  
Unread 05-12-2005, 22:07
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,491
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: VEX inputs

Quote:
Originally Posted by Andrew
Has anyone actually gotten some of the encoders? They've been listed on the vexlabs.com and the radioshack.com sites as being "sold out - coming soon" for the last couple of months.

Have they been released and sold out? Or, have they not yet been released?
I've seen them just before Thanksgiving at the local Radio Shack.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
Reply With Quote
  #13   Spotlight this post!  
Unread 05-12-2005, 22:19
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,358
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: VEX inputs

Check the Radio shack website to find a local store with the encoders. I bought a set and am playing with them now. I must be doing something wrong or there is allot of latency in easy c. It drives straight with quite a wobble. These aren't greyhill quality or precision.
Reply With Quote
  #14   Spotlight this post!  
Unread 05-12-2005, 22:34
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: VEX inputs

i got a pair a month or more ago at the rat shack, took one apart and said to myself, "self. with a couple of photo interrupters appropriately placed you could convert this thing to a quadrature encoder", but since i can't find the switches i got some time ago from budget robotics they've been sitting in the parts pile ever since. reckon i should hook 'em up and see what i can do. i don't have easy c, though, having ordered a prototype programmer from ifi over the summer. i got those mean old early adopter blues.
Reply With Quote
  #15   Spotlight this post!  
Unread 06-12-2005, 11:25
ChrisH's Avatar Unsung FIRST Hero
ChrisH ChrisH is online now
Generally Useless
FRC #0330 (Beach 'Bots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 1,229
ChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond reputeChrisH has a reputation beyond repute
Re: VEX inputs

Quote:
Originally Posted by Gdeaver
Check the Radio shack website to find a local store with the encoders. I bought a set and am playing with them now. I must be doing something wrong or there is allot of latency in easy c. It drives straight with quite a wobble. These aren't greyhill quality or precision.
I bought a set about a month ago. Quadrature would be a real nice addition, but I'm not sure how to go about that. I didn't have any trouble getting it to drive straight if I was just measuring distance. My Squarebot could repeatedly drive a path including straights and turns with reasonable precision as long as the surface remained the same. Move to a different surface and the turn angles changed. Not an unexpected result.

I have recently started working on velocity contol. I have a Proportional algorithm working on one side. It does oscillate a little when running free. Again this is not unexpected, in fact I would have been more amazed if it didn't happen as it is characteristic of this sort of control. PID's always oscillate, the question is whether or not the magnitude is acceptable. Gdeaver were you counting clicks or controling speed?

I haven't added the second side to see if it drives straight yet. Maybe in a few days. I've been too busy with going to FLL at Legoland and setting up next weekend's tournament at CSUN.

Has anybody done anything with Potentiometers?
__________________
Christopher H Husmann, PE

"Who is John Galt?"
Reply With Quote
Reply


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
Useful VEX Tools Joe Johnson FIRST Tech Challenge 4 26-04-2005 18:48
Vex Robotics Vex FIRST Tech Challenge 0 14-04-2005 13:48
VEX Robotics vexrobotics FIRST Tech Challenge 8 30-03-2005 23:25
VEX Kits ARRIVED!!! Joe Johnson FIRST Tech Challenge 14 28-03-2005 19:28
digital inputs not valid just after initialization? WizardOfAz Programming 2 26-01-2004 13:21


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

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