|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Pneumatics Code
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.
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||||
|
|||||
|
Re: Pneumatics Code
Quote:
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:
Last edited by Mark McLeod : 12-10-2009 at 11:14. Reason: Added diagrams |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||||
|
|||||
|
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". |
|
#6
|
|||
|
|||
|
Re: Pneumatics Code
Cool, I wasn't too far off!
Looks like I have some system-of-equations to write tomorrow! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |