|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||||
|
|||||
|
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. |
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
|||||
|
|||||
|
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. |
|
#7
|
||||||
|
||||||
|
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".
|
|
#8
|
||||
|
||||
|
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.
|
|
#9
|
||||
|
||||
|
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.
|
![]() |
| 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 |