Go to Post I've never been one for the "you did your best" and other "everyone's a winner" sayings, they don't push you, they don't get you to analyze what went wrong and figure out where to improve. - Aren_Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 13-03-2014, 21:35
mother_russia mother_russia is offline
Registered User
FRC #3570
 
Join Date: Mar 2014
Location: Alma, MI
Posts: 1
mother_russia is infamous around these parts
Solenoid Breakout Board Problems?.?.?

Hello, tonight is the night before my team's first competition. And for some f cking reason, the robot is still not ready. In addition to me not being able to troubleshoot my code, the inspectors came around and totally overrode our solenoid system. Now we wave to use a solenoid breakout board. I have no idea what the hell that is and how to program it. What is it and how could I program it. Any replies will be appreciated.
  #2   Spotlight this post!  
Unread 13-03-2014, 21:45
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,171
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Solenoid Breakout Board Problems?.?.?

The solenoid breakout board is nothing but a convenient way to bring out the signals from the solenoid card. It allows you to use 2-pin headers and cables similar to the PWM cables. You should have gotten several with your KOP. The only big difference is that you need to bring +12VDC (from the PDB) or +24VDC (from the PDB cRIO connector) (depending on which solenoids you bought) to the breakout board to run the solenoids and you should have power somewhere in your custom setup anyways.

It is not a big setback and should not affect programming at all. Don't be rough on the inspectors (never a wise idea for many reasons), they are just try to make sure the wiring is safe. Next year be sure to follow the wiring diagrams that FIRST gives us.

HTH
__________________
Fast, cheap or working - pick any two!
  #3   Spotlight this post!  
Unread 13-03-2014, 21:49
maths222 maths222 is offline
FTC FTA
AKA: Jacob Burroughs
no team
 
Join Date: Nov 2011
Rookie Year: 2010
Location: United States
Posts: 148
maths222 is a splendid one to beholdmaths222 is a splendid one to beholdmaths222 is a splendid one to beholdmaths222 is a splendid one to beholdmaths222 is a splendid one to beholdmaths222 is a splendid one to beholdmaths222 is a splendid one to behold
Re: Solenoid Breakout Board Problems?.?.?

If you can detail how you had been using your solenoids and what specifically changed (now you are using a breakout card-where did the wires previously connect?), that will probably help us suggest what to change now. Also, I'm sure that other teams at Howell will be able to help you work through your pneumatic programming difficulties. Just let them know that you need assistance, and someone will gladly help.
__________________
--Jacob
Illinois FTC FTA
  #4   Spotlight this post!  
Unread 13-03-2014, 22:00
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: Solenoid Breakout Board Problems?.?.?

Quote:
Originally Posted by mother_russia View Post
Hello, tonight is the night before my team's first competition. And for some f cking reason, the robot is still not ready. In addition to me not being able to troubleshoot my code, the inspectors came around and totally overrode our solenoid system. Now we wave to use a solenoid breakout board. I have no idea what the hell that is and how to program it. What is it and how could I program it. Any replies will be appreciated.
What wireties said above is definitely true. You need to use 2 pin cables, but as far as I know, you could also have the solenoid actuated from a spike, which would be powered from digital sidecar via PWM. If you want to continue using the solenoid breakout board, the code doesn't need to change that much. If you are using C++ or Java, you instantiate a new Solenoid (or double) with the parameters being which port the solenoid is plugged into the solenoid breakout board. I am not familiar with lab view, but maybe someone else can explain how to code it there. This would be an example:

Code:
//Single Solenoid
Solenoid piston = new Solenoid (portNumber);

//Double Solenoid
DoubleSolenoid piston2 = new DoubleSolenoid (portANumber, portBNumber);
Something worth noting is that actuating single and double solenoids in C++/Java are done in different ways. This is due to the fact that a double solenoid has no default position.

Code:
//Single Solenoid actuation 
piston.set(true);
piston.set(false);

//double solenoid actuation
piston2.set(DoubleSolenoid.Value.kForward);
piston2.set(DoubleSolenoid.Value.kReverse);
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics

Last edited by Pratik Kunapuli : 14-03-2014 at 08:21.
  #5   Spotlight this post!  
Unread 13-03-2014, 22:17
Jaxom Jaxom is offline
Registered User
AKA: Michael Hartwig
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2008
Location: Lee's Summit, MO
Posts: 379
Jaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant futureJaxom has a brilliant future
Re: Solenoid Breakout Board Problems?.?.?

Quote:
Originally Posted by mother_russia View Post
the inspectors came around and totally overrode our solenoid system. Now we wave to use a solenoid breakout board.
Just out of curiosity -- what were you doing that required a change?
__________________


Mentor http://www.teamtitanium.org/
  #6   Spotlight this post!  
Unread 14-03-2014, 00:52
tStano tStano is offline
Registered User
AKA: Sparks
no team
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Madison, WI
Posts: 177
tStano will become famous soon enough
Re: Solenoid Breakout Board Problems?.?.?

The solenoid breakout board looks nearly identical to the analog breakout board except that each pin set has 2 pins instead of 3. It plugs into a card on the cRio. This card looks nearly identical to a analog card, but it has lights on it. You plug your solenoids into this breakout board using things that look very much like PWM cables but only have 2 conductors. The code explained in this section does a good job of controlling them. Also, as explained above, spike relays should also be legal if you are missing a piece of this assembly.
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 02:45.

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