Go to Post ps... it is better to have built a robot and lost than to ever played basketball at all - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 11-10-2009, 19:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,754
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: Pneumatics Code

A single solenoid like a Festo would be kForward and kOff.

A double solenoid would be kForward and kReverse.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #2   Spotlight this post!  
Unread 11-10-2009, 21:58
Lord_Jeremy's Avatar
Lord_Jeremy Lord_Jeremy is offline
Lord_Jeremy the Procrastinator
AKA: Jeremy Agostino
FRC #1546 (Chaos Inc.)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Baldwin, New York
Posts: 45
Lord_Jeremy is an unknown quantity at this point
Send a message via ICQ to Lord_Jeremy Send a message via AIM to Lord_Jeremy Send a message via MSN to Lord_Jeremy Send a message via Yahoo to Lord_Jeremy
Re: Pneumatics Code

Quote:
Originally Posted by Mark McLeod View Post
A double solenoid would be kForward and kReverse.
Er, I think that would depend on the type of double solenoid you used and how it was wired to the spike. For instance the ones Team 1546 used last year (the same ones supplied in the KoP previously) actually had two sets of solenoid power terminals. To use one spike for both solenoids, you'd need to rig up a couple diodes. I think there's a diagram of what to do in regards to that somewhere around here. I don't recall if a different type of double solenoid valve was included in the KoP last year, so my advice may be out of date.
__________________
Compiling...
Compiling...
Reply With Quote
  #3   Spotlight this post!  
Unread 11-10-2009, 22:20
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Pneumatics Code

Awesome guys, thanks.

I think I have some code that *should* work, I'll have to wait until Tuesday to find out...

Thanks for answering my questions, I ask too many. I get bored if im not in school, and if I can't actually test my code. x_x
Reply With Quote
  #4   Spotlight this post!  
Unread 12-10-2009, 10:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,754
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: Pneumatics Code

Quote:
Originally Posted by Lord_Jeremy View Post
Er, I think that would depend on the type of double solenoid you used and how it was wired to the spike.
Yea, there are different methods of wiring the solenoid to the spike.
We only see one solenoid type in FRC. They are all simple coils that get energized or not, essentially, two single solenoids in one package.

Typically, the major variations you'll see in wiring a double solenoid on FRC robots are:
  • Use two outputs on the Pneumatic Bumper w/o a spike at all (diagram 3 below). This is the easiest choice.
  • Use diodes to direct the current flow from the spike to a either side of the solenoid (2nd diagram below). Jeremy's favorite method.
  • Cross-wire the sides of the solenoid to a spike (first diagram below). This is the way I usually tell people to wire a double solenoid to a Spike.
All three methods work fine. It's just a matter of choice and circumstances.
Attached Thumbnails
Click image for larger version

Name:	DoubleSolenoidSpikeWiring.jpg
Views:	49
Size:	18.2 KB
ID:	8113  Click image for larger version

Name:	DoubleSolenoidDiodesSpikeWiring.jpg
Views:	48
Size:	10.3 KB
ID:	8114  Click image for larger version

Name:	DoubleSolenoidBumperWiring.jpg
Views:	47
Size:	21.6 KB
ID:	8115  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-10-2009 at 11:14. Reason: Added diagrams
Reply With Quote
  #5   Spotlight this post!  
Unread 12-10-2009, 17:11
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Pneumatics Code

Hey, I got an idea!

Since I can't really know the pressure (without buying an expensive item...we are flat broke for this project. ) I decided to make my own gauge...thing.

I made a new integer, called compressorValue, and I will use that to store the value of the pressure left. I can do some tests, and see how much pressure is used by firing one shot, and how much is added in X amount of seconds of the compressor running...

But, this is where my question is. :/
Will the times change based on the pressure? Eg: Will it increase quicker at first, then increase slower as the pressure builds? Or is the compressor (the ones that came in the KoP) powerful enough that this resistance is negligible?
Reply With Quote
  #6   Spotlight this post!  
Unread 12-10-2009, 17:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,754
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: Pneumatics Code

You'll lose the same amount of pressure each time, down to 60 psi, so that part's consistent.

Restoring the pressure is a function of how much pressure is already in the system. The compressor takes longer the more it has to work against higher pressure. So, for example, pumping 5psi back into a system already at 110 psi will take longer than pumping 5 psi into a system at 60 psi.

What you're suggesting will probably work for your purposes though. You don't have to be too exact. You can probably go with the time you measure when the overall system is down to 90 psi and you'd be fine. Then you could still check the pressure sensor for "1" and keep the compressor running as long as it doesn't turn back to "0".
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 12-10-2009, 17:52
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Pneumatics Code

Cool, I wasn't too far off!

Looks like I have some system-of-equations to write tomorrow!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 06-02-2007 16:48
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Pneumatics-Code [and piston output length] reilly Programming 5 13-02-2005 11:42
Pneumatics-Code [and piston output length] reilly Technical Discussion 0 10-02-2005 12:21
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


All times are GMT -5. The time now is 11:58.

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