Go to Post Yup. Two world champs on one alliance, out in the quarterfinals. Only at IRI. - Norman J [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 12-01-2013, 19:40
AsianSensation AsianSensation is offline
Programmer, Driver
AKA: Jerry L
FRC #4203 (RoboKronos)
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Oneonta
Posts: 5
AsianSensation is an unknown quantity at this point
What to use the Cypress board for?

So we got a Cypress IO board, but I was curious what to use it for. My initial thoughts are connecting buttons to the pins and use the buttons to do commands, but if that is what it is used for, how would I attach buttons and how would I program for it?
  #2   Spotlight this post!  
Unread 12-01-2013, 19:49
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,103
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: What to use the Cypress board for?

Code-wise, assuming you were using Java (they are all relatively similar) you would use the DriverStation class and the getDigitalIn(int channel) method to get the state of the buttons.

Our team has used it for a variety of buttons, switches, dials, and LEDs.
  #3   Spotlight this post!  
Unread 12-01-2013, 21:49
AsianSensation AsianSensation is offline
Programmer, Driver
AKA: Jerry L
FRC #4203 (RoboKronos)
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Oneonta
Posts: 5
AsianSensation is an unknown quantity at this point
Re: What to use the Cypress board for?

Quote:
Originally Posted by Christopher149 View Post
Code-wise, assuming you were using Java (they are all relatively similar) you would use the DriverStation class and the getDigitalIn(int channel) method to get the state of the buttons.

Our team has used it for a variety of buttons, switches, dials, and LEDs.
Thanks! How would I hook up the buttons tho? Where do I connect the button to the IO slot?
  #4   Spotlight this post!  
Unread 13-01-2013, 11:40
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: What to use the Cypress board for?

http://www.usfirst.org/uploadedFiles...t%20tables.pdf gives pinout information.
  #5   Spotlight this post!  
Unread 13-01-2013, 13:44
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: What to use the Cypress board for?

If I may take off on a slightly different tangent regarding the Cypress board I have a question.
It seems nobody on the team can seem to locate our old board. It looks to me like the board is available and as long as we update it with the FRC version of the PSoC programmer we should be able to use the new board.

Has anybody had any problems purchasing the board from Cypress and getting it to work with the FRC Driver Station after updating the FRC firmware?
Thanks.
  #6   Spotlight this post!  
Unread 13-01-2013, 13:49
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: What to use the Cypress board for?

I've had a problem getting some of the new boards to flash.
You may have to recompile the firmware for the newer revision.
The risk is if they've upgraded it somehow.

The only issues I've encountered while actually using the board have been that it needs a dedicated USB port on the Driver Station to be powered properly.
Sharing a hub with joysticks can brown out your controls, i.e., they will appear to be connected, but they won't respond to button pushes or axis tilts.
If your design causes it to heavily draw on power, then there is a risk it will fail when your laptop is running on low battery.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 13-01-2013 at 14:02.
  #7   Spotlight this post!  
Unread 13-01-2013, 14:41
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: What to use the Cypress board for?

Back when the Cypress board was new in 2010, we had a TON of issues with reliability of the drivers, and getting the drivers installed on non-classmate driver station laptops. In 2010, we HAD to boot up our laptop 3 matches ahead of time in the queue, since a driver failure would require us to reboot the classmate once or possibly twice to regain functionality after putting the classmate to sleep. We also had no operator (cypress-IO) control in two matches at our first event because we didn't understand the problem, and implemented a whole bunch of code to detect a Cypress failure and reroute button inputs to the driver's gamepad (Logitech DualAction) as a workaround. It was super ugly and we hated it and complained a ton and I have no idea what happened in later releases since we never used it again (and never will).

Since we stopped using the classmate as a driver station laptop, I haven't been able to get the 2010 bot's operator box to work since. We eventually wrote code to use the 2012 bot's operator box so we could use the robot for demonstration (since it looks cool).

We now use the Uhid, which acts like a native HID joystick device to the laptop and requires no drivers. It doesn't support outputs in our use (acting as a joystick to Driver Station), but it was very reliable and we had no issues. No big deal, we don't like on-DS LED's anyway since the driver has to look down to see them. Also, it doesn't auto zero the joystick inputs, so you can use potentiometers with the analog inputs without a problem.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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


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

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