|
Re: Need Help With General Pneumatics
Quote:
Originally Posted by Ryan O
Thanks for the adivce. I really appreciate it. One problem we still have is that we've never used pneumatics, and so don't have a pneumatics person. However, I think we'll be able to figure out the wiring. The only remaining problem is the digital sensor thing. I tried to wir up the gear tooth sensor last year, and it coused the camera to freak out, something about it being a costant hardware interrupt or something. How would you make it so the signal doesn't kill the camera?
|
That sensors doesn't need to be on an interrupt, it can be polled. Just connect it to a digital input then every loop just have an if() statement check it, if the sensor is on, turn off the compressor. I think the default code has stuff for this towards the end for digital input 18 and relay 1, but I'm not sure.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|