Quote:
Originally Posted by James Lightfoot
3A1) For the Relay Outputs, I'm guessing that the A & B signal states [0 or 1] are controlled by the Java DigitalInput class, correct? Making pin A the PWM signal controlling a Spike Relay's FWD direction [depending on the code & wiring] a PWM signal of 1.0 to 1.5, correct?
|
Use the Relay class - it works like this:
http://wpilib.screenstepslive.com/s/...hanisms-relays
Quote:
Originally Posted by James Lightfoot
3A2) For GPIO's, a discrete device like a Limit Switch will be "powered" by the available 5VDC on GPIO's pin 2, and the signal will connect to the GPIO's pin 1. Which leaves the GPIO's pin 3 tied to the DC Common bus,
|
If it is a limit switch (a simple mechanical closure), connect the common and normally open (or closed) contacts on the limit switch to the ground and signal connections of a digital I/O port. Then use the DigitalInput class to read the state.
Quote:
Originally Posted by James Lightfoot
3A3) For the Solenoid Breakout Board, the Outputs are sourcing also; hence, we would tie the Solenoid Output's + pin to the + terminal of a solenoid and the Solenoid Output's GND pin to a solenoids - terminal, correct?
|
Yes - this connection is correct. Use the Solenoid or DoubleSolenoid class to control the solenoids.
Check here:
http://wpilib.screenstepslive.com/s/...ders-solenoids
and here:
http://www.usfirst.org/sites/default...d_Breakout.pdf
Quote:
Originally Posted by James Lightfoot
4A) Will the voltage out on the "long range" ultrasonic sensor (3cm - 10m) also be linear but 5.3V = 5.3m?
|
We use this one:
http://www.maxbotix.com/documents/MB1020_Datasheet.pdf
The datasheets for each are on the maxbotix web site. For the MB1020 the analog number is VCC/512 per inch.
Good Luck!