|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Rigging The System...
Okay. General question. We have the pneumatics solved, to a degree, but here's what I need help with. Our team needs help rigging the entire system up to the rc, and getting it set. How exactly would we go about rigging it?
I'll explain what I think is right. PWM cable from solenoid relay to PWM input slot 3 PWM cable from compressor relay to (Dunno where this should go, due to the compressor shutoff factor, which by the way, I don't know how that's done.) Am I anywhere close to being right? How would we go about accomplishing setting up a pneumatics system. BTW, if programming enters the discussion, We're rigging it where the claw operates off of a third joystick (via the trigger), however, we are so far unsuccessful. EDIT: We have everything assembled, from the compressor down to the cylinders, but we don't know how to hook them to the rc and make them work. I know it sounds more like programming, but we're still trying to figure out all of the fine parts of the pneumatics system. Last edited by Spartan151 : 23-01-2008 at 21:14. |
|
#2
|
|||||
|
|||||
|
Re: Rigging The System...
Both the compressor and solenoids should be connected to the Relays(spikes). The PWM cables can go to the relay outputs. The pressure sensor should connect in the Digital inputs.
|
|
#3
|
||||
|
||||
|
Re: Rigging The System...
How would I go about connecting the pressure switch to the digital inputs? Do I have to split a PWM cable, like we had to do last year to wire up the light?
Last edited by Spartan151 : 24-01-2008 at 09:10. Reason: Had to be more specific. |
|
#4
|
||||||
|
||||||
|
Re: Rigging The System...
You are correct - you will need to split a PWM cable to connect to the pressure switch. Cut off the male end of the cable and you will only need 2 of the wires (I think we used red and white, I'll have to look), secure them to the pressure switch using the 2 screws provided and then cover with electrical tape. Put the female end of the PWM cable into any one of the digital input ports - remember this is a switch much like a limit switch, which reads either open or closed. If you are using EasyC, there is a pressure switch command you can drag into the program, and you select whichever digital input port you used. (If you are using the default code I don't know which input it assumes, check the documentation).
|
|
#5
|
||||
|
||||
|
Re: Rigging The System...
Because of the pull-up resistors on the digital I/O ports, you have to drive signal to ground when using a switch. As such, you'll want to use the black and white wires.
|
|
#6
|
||||
|
||||
|
Re: Rigging The System...
Okay. I have the switch wired, and I'll be fixing the cables momentarily. Now, when I plug in the PWM cable to digital slot 1, I get a message saying +5v Output Low on the RC. Is that because I don't have it grounded?
Also, I have the solenoid wired up right, but now the issue is getting the compressor to act right, because right now it's taking a fourth controller to turn the compressor on, and it only lasts while the trigger is held. What am I doing wrong? Once I fix the switch, will it run correctly? Explain. I also have to program the trigger to keep the Spike in forward so the pneumatic rod stays extended until I press the trigger a second time. I have a programming thread in which I'm asking how, and I have the responses I think I need, but I need to know where the codes go. It's entitled "A New Programmer". It's the only other thread I have created. Last edited by Spartan151 : 24-01-2008 at 15:23. |
|
#7
|
|||||
|
|||||
|
Re: Rigging The System...
Quote:
I believe the pressure switch switches on, closes the circuit (provides an output low) when the PSI drops below 95. Now it just seems like a matter of programming to get the compressor behaving the way you want. You can use the pressure switch that sees the output low, to turn on the spike connected to the compressor. You can program it to a switch on the OI as well which you've done. You can make it so you don't have to hold down the button with a toggle switch or changing the code to make it toggle with each push. Maybe you can post your code. It sounds like you programmed the single solenoid right. Last edited by kevin.li.rit : 24-01-2008 at 15:31. |
|
#8
|
||||
|
||||
|
Re: Rigging The System...
That sounds like you're using the red and black wires, and thus shorting out the +5V output on the RC. You want to be using black and white.
|
|
#9
|
||||
|
||||
|
Re: Rigging The System...
Quote:
What should I do now? EDIT: as a note, the pressure switch is wired to digital input 1. But yet nothing is happening. I still have to compile the code, put in our autonomous structuring, throw in the toggle code, and fine tune the numbers. |
|
#10
|
|||||
|
|||||
|
Re: Rigging The System...
Well you need code to make the pressure switch work, I.E. You need to program the RC to check and see if the switch is on or off. Then respond by turning on or off the compressor
If you haven't modified the code, then you can try plugging in the compressor spike to relay 8. I'm looking at the default code and it appears to me that they have programmed the pressure switch to work with digital input 18 relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */ If that doesn't work, try writing you own code, including the relay you used. like if(rc_dig_in18) {relay8_fwd=0; } else relay8_fwd =1; Or the same way the default code has it with the relay outputs your using. Also, if you're using the red and black like Gannon said, then switch it to white and black. Last edited by kevin.li.rit : 24-01-2008 at 15:55. |
|
#11
|
||||
|
||||
|
Re: Rigging The System...
Okay. We have the solenoid, compressor, and, switch wired up right. Now here's another question: will I have to use a second solenoid to run another pneumatic cylinder off of the same system so they work simultaneously, cuz if that's the case, it may be a no go unless we can order another solenoid; the solenoid we originally had on there was defective and we had to use another one. I just need help toggling the trigger where, when it's pulled the first time, the rod extends and stays extended until the trigger is pulled a second time.
|
|
#12
|
|||||
|
|||||
|
Re: Rigging The System...
Quote:
The other way is to write some code. There are probably a few ways to do it using code... umm so Here comes so code... no guarantee it works. if(p1_sw_trig) {relay1_fwd = 1; } if(p1_sw_top) {relay1_fwd =0; } So I think this will extend it when you hit the trigger on p1 and retract it when you hit the top button on p1. Just one way of doing it... Of course you'll have to make it the relay you're using. |
|
#13
|
||||||
|
||||||
|
Re: Rigging The System...
That would be called a "Tee", although I'm sure your description is much more helpful than if you had said "just use a tee".
|
|
#14
|
||||
|
||||
|
Re: Rigging The System...
Yeah. Still helpful though. Just one problem though. One solenoid and a tee....Never mind. Just thought that out. That could work. I have to change some variables in the autonomous program, so I'll get to codewriting later.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rigging a PC power supply | mechanicalbrain | Electrical | 20 | 27-09-2005 15:23 |
| Cable rigging: Cascade vs. Continuous | Madison | Technical Discussion | 2 | 19-01-2004 23:23 |
| "Rigging" the game vs playing the game strategically - what's the difference? | ColleenShaver | Rules/Strategy | 13 | 15-01-2003 10:33 |
| TIEBRAKERS to prevent RIGGING THE MATCH | Digo | General Forum | 39 | 09-01-2003 13:29 |