View Single Post
  #6   Spotlight this post!  
Unread 09-02-2011, 00:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,564
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Optical Encoders Help!!!!!!!!!!!!!

Quote:
Originally Posted by apalrd View Post
You are actually limited to 12 in hardware. Why? The FPGA can only handle 8 Counters and 4 Encoders. the Encoder library uses Encoders for 4x decoding (meaning you can use up to (4) 4x-decoded encoders) and Counters for 1x or 2x decoding (meaning you can have up to (8) 1x or 2x-decoded encoders). 4+8=12, so 12 encoders max.

This assumes that each encoder is either quadrature or otherwise uses the FPGA Counters (such as a gear tooth sensor).

If you need more than 12, your best bet would probably be to use a co-processor to handle the inputs and either feed them to the cRio via SPI, I2C, Serial, or DACs.
You're limited to 41 jaguars by cost, but each jaguar can read a single encoder using CAN.
Reply With Quote