View Single Post
  #18   Spotlight this post!  
Unread 31-01-2010, 12:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming the PSoC

Teams are not required to use the I/O board. In fact the new DS now allows for virtual inputs to autonomous and virtual LEDs without using a soldering iron and electronics. On the other hand, the I/O board is very functional and actually very fun to play with. You can use a breadboard or other breakout board to make some very cool custom driving circuits.

The I/O tab on the DS can be used in several ways. If the I/O board is not connected, it is virtual. Numeric and digital values will be sent to the robot code simply by entering them onscreen. Digital output values will be displayed onscreen.

If the I/O board is attached, reprogrammed, and connected to switches and knobs, the HW values will be displayed on the I/O tab to assist with debugging, and the HW values will be sent to the robot code.

When plugged into the computer, there are actually two modes to choose between. The I/O board can be used in compatibility mode which will work pretty well with the API used last year, and which will give you four analogs and either digital inputs and eight digital outputs. This should allow it to work pretty well with code written for last year's robot, or to be used by teams already familiar with the system who want something familiar.

Or, the I/O board can be Configured to be in enhanced mode. This opens up a lot of additional types of I/O as well as just having more I/O. I won't repeat everything in the manuals, but this is certainly worth exploring even if just to learn about sensors and circuits.

Greg McKaskle