|
Re: Help With Compressor Code
The suggested code is simply to read a digital input from a pressure switch and copy its value out to a Spike wired up to the compressor. The pressure switch supplied in last year's kit of parts has two set points, turning on at about 95 PSI and off at about 115, so you don't have to worry about fancy programming unless you really want to.
I believe the default code wants the compressor on relay 8 and the switch on digital input 18, but don't take my word for it without checking first.
The default code is also already set up for tank drive. I don't remember which joystick inputs or pwm outputs it wants. Read the comments in the code; they are very helpful.
|