Go to Post A learning experience. Or something positive like that. - NorviewsVeteran [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2011, 19:16
sappman sappman is offline
Registered User
AKA: Kevin
FRC #1111 (Powerhawks)
Team Role: Student
 
Join Date: Sep 2010
Rookie Year: 2009
Location: Edgewater, Maryland
Posts: 7
sappman is an unknown quantity at this point
Two cypresses?

Are we allowed to use two cypresses on the control board so we get more connection ports for our controls?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2011, 19:30
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,112
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: Two cypresses?

The Driver Station software will only talk to one Cypress PSoC.

If you need more switch inputs, consider a Custom Control Interface board from eStop Robotics. Or you can use multiple switches with a simple resistor circuit into a single analog input on the Cypress board, giving you many more potential switches.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2011, 19:35
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,560
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: Two cypresses?

What do you need so many inputs for? There might be another way to do it that's more efficient.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2011, 00:41
tdressel tdressel is offline
Registered User
FRC #1111
 
Join Date: Feb 2008
Location: Edgewater
Posts: 50
tdressel is an unknown quantity at this point
Re: Two cypresses?

Quote:
Originally Posted by Alan Anderson View Post
Or you can use multiple switches with a simple resistor circuit into a single analog input on the Cypress board, giving you many more potential switches.
I'm working with the team with this question. In our case, we have too many DI (digital inputs) causing us problems. with the Cypress having 8-DI, 8-DO and 8-AI - we've run out of space on DI's. We're thinking of doing a grid for the preset scoring positions and in placing 6 buttons on the board, along with 'other stuff' - we've run out of DI's.

Can you explain more about the 'simple resistor circuit...' idea above?

-Ted Dressel, Mentor Team 1111
__________________
Ted Dressel, Mentor, Team 1111
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2011, 01:41
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Two cypresses?

The operator controls for this years game easily exceed
8 digital inputs. If you have a 1 of N selection, you can
do this with a pot on an analog input. You can emulate
the same thing with switches and resistors.

As an alternative to another Cypress board, you could use
the hardware from a USB game stick. eStop Robotics
had one, the CCI, but it is already out of stock. This is
not a surprise as more than 8 digital inputs will likely
be common this year.

If you get another logitech joystick you
will find that the actual USB interface is a small card
that you can carefully extract, reverse engineer the
wiring for and use for 11 more digital inputs, 9 of
which will be accessible by splicing the fine wires,
and the the last two by removing and soldering wires
for two surface mount switches.

The Cypress card/driver does have its gremlins, but it
does not appear that the joystick driver shares them.

Eugene

Last edited by eugenebrooks : 04-02-2011 at 01:46.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2011, 13:46
eStop Robotics's Avatar
eStop Robotics eStop Robotics is offline
Partner, eStop Robotics LLC
AKA: Joe Troy
no team
 
Join Date: Jan 2010
Rookie Year: 2000
Location: Aldan, PA
Posts: 16
eStop Robotics has a spectacular aura abouteStop Robotics has a spectacular aura abouteStop Robotics has a spectacular aura about
Re: Two cypresses?

The Custom Control Interface (CCI) from eStop Robotics LLC would be a good alternative for those teams looking for an easy to use source for 12 digital inputs and 4 analog inputs. Multiple CCI devices can be connected to create even more buttons.

The Custom Control Interface is currently back in stock, however, with as quickly as we are selling them we do expect to be sold out this season.

The CCIs that are currently in stock have been fully tested with Windows XP and Windows 7.
Teams that ordered the original CCI should contact us to have their CCI replaced for free with the new version.


Quote:
Originally Posted by eugenebrooks View Post

As an alternative to another Cypress board, you could use
the hardware from a USB game stick. eStop Robotics
had one, the CCI, but it is already out of stock. This is
not a surprise as more than 8 digital inputs will likely
be common this year.

Eugene
Reply With Quote
  #7   Spotlight this post!  
Unread 04-02-2011, 08:24
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,112
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: Two cypresses?

Quote:
Originally Posted by tdressel View Post
Can you explain more about the 'simple resistor circuit...' idea above?
If you have a bunch of buttons with only one needing to be pressed at a time, it's simple. Wire up a string of resistors between power and common, putting a button from each resistor-resistor connection to the analog input. You'll present a different voltage when you press different buttons.

If you need to be able to sense more than one switch simultaneously, use a simple D-to-A circuit. Depending on how many switches there are, I would suggest either a "powers of two" scheme (which either takes many different resistor values or a whole lot of identical resistors) or an "R-2R ladder" (which can be made with a smaller bunch of identical resistors but requires double-throw switches).

Last edited by Alan Anderson : 04-02-2011 at 10:04.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-02-2011, 09:37
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,560
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: Two cypresses?

If you use the cypress board in enhanced mode, you can configure the digital pins to be either inputs or outputs, so you can have up to 16 digital ins.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2011, 21:25
jdk904 jdk904 is offline
Registered User
FRC #0904
 
Join Date: Jan 2011
Location: Grand Rapids, MI
Posts: 2
jdk904 is an unknown quantity at this point
Re: Two cypresses?

Quote:
Originally Posted by Joe Ross View Post
If you use the cypress board in enhanced mode, you can configure the digital pins to be either inputs or outputs, so you can have up to 16 digital ins.
I've looked through the Enhanced Driver Station IO VIs and saw that you can configure the DIOs to give 16 inputs. But I don't know how to use them from that point on. I figured I'd configure them that way in the Begin VI, but then I don't know how to use those later in Teleop. Do I have to use two 'Get Digital Input' VI's? And do I need to use the 'Enhanced IO Config Get' VI anywhere?

I am not a programmer and am finding this quite difficult. Thank you in advance for your help.
Reply With Quote
  #10   Spotlight this post!  
Unread 07-02-2011, 05:33
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: Two cypresses?

To read the enhanced I/O, use one of the Enhanced Get VIs. The one shown returns sixteen digital inputs.

To configure, you can do this interactively using the DS dialog, and the settings will be saved into the ini file and used for future DS execution.

OR

You can configure the DS programmatically using the VI shown. This lets you specify the direction of each line.

You don't need to use the Get Config VI unless you want to determine how the DS I/O is currently configured.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2011-02-07 at 4.25.41 AM.png
Views:	13
Size:	6.9 KB
ID:	10014  
Reply With Quote
  #11   Spotlight this post!  
Unread 08-02-2011, 21:22
jdk904 jdk904 is offline
Registered User
FRC #0904
 
Join Date: Jan 2011
Location: Grand Rapids, MI
Posts: 2
jdk904 is an unknown quantity at this point
Re: Two cypresses?

I've configured the IOs in the begin VI. I use the Get Enhanced Digital IO VI and wire it into an array to cluster funtion, which I then unbundle by name into my digital outputs which I can take boolean values from. What I really don't understand is why when I unbundle by name, the names suggest that there are 16 DIOs, but they're numbered from 0 to 8. 9 IOs? If I create anything more, [8] just repeats. So I don't know what [0] is for, and I don't know why no [9] shows up for wiring. Let alone a [10] or a [16].
Reply With Quote
  #12   Spotlight this post!  
Unread 08-02-2011, 23: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,112
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: Two cypresses?

The Array to Cluster doesn't know how many elements are in the array. The "hover help" tells you how to fix it:

"Right-click the function and select Cluster Size from the shortcut menu to set the number of elements in the cluster."

But I wouldn't do it that way. I would use an Index Array function, which can pull out multiple items from the array at once.
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


All times are GMT -5. The time now is 12:42.

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