Sorry for not replying earlier, but I just haven't been able to test the code that you all helped out with yet, due to exams and such. I should be able to test the system out tomorrow and I will post a reply letting you know how it worked out. I was able to get a picture:
http://postimg.org/image/wvu8lykol/ . If that makes a difference to the code.
Also I was wondering something about where to plug the spike in, I pluged one end to the solenoid, and the other end into port 5 on my Digital side car.
I noticed in the code that Domenic Rodriguez posted :
Code:
// Pneumatics
Compressor compressor = new Compressor(1, 1);
Solenoid solenoid = new Solenoid(1);
DoubleSolenoid doubleSolenoid = new DoubleSolenoid(2, 3);
Ports 1, 2, and 3 are labeled.
Where should I plug my Spike into?
Thank You to all that helped me get this far, just a little more help is needed.