|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Digital Side Car Wiring Of I/O & Solenoid Output Card
Hello,
1st year mentor and under the gun. I have a few quick questions about connecting I/O to the Digital Side Car and Solenoid card 1) Encoders [US Digital E4P-250-250-N-S-D-D-B encoder (am-0174)] connect to 2 GPIO points (Channels A & B), correct? 2) Are the GPIO points both Inputs and Outputs or just Inputs? 3) Do the GPIO points use the same connectors as the premade PWM cables? A)If so, how do we connect "extra inputs & outputs (either via the GPIO or Relay points) that do not come w/ premade cables? 3) We are using and ultrasonic sensor (Maxbotix MB7366) that has 3 output options (Analog Voltage, PWN, Serial). Can we connect the PWN singal to a GPIO as an input or do we have to use the Analog input route? 4) We are using an electromagnet that uses 12VDC. Can we connect that directly to Solenoid Output card or should I use an interposing relay (24VDC coil) and then use a NO contact to energize the electromagnet? Thanks all, ![]() |
|
#2
|
|||||
|
|||||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Quote:
Quote:
Quote:
Quote:
Quote:
|
|
#3
|
||||
|
||||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
A few notes for your electromagnet...
Per Q&A 217 Quote:
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Quote:
4: Strongly consider using the analog input instead. The sensor delivers a voltage that is linearly and directly proportional to distance. For example 2.56 V is 256 inches, 0.83 is 83 inches. Your voltages may vary. |
|
#5
|
|||
|
|||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Thanks Don. I have a few quick question to clarify your last response.
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? 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, 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? I will not be surprised if tell I've all 3 of the above scenarios backwards.4A) Will the voltage out on the "long range" ultrasonic sensor (3cm - 10m) also be linear but 5.3V = 5.3m? Thank you very much. |
|
#6
|
||||
|
||||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Quote:
http://wpilib.screenstepslive.com/s/...hanisms-relays Quote:
Quote:
Check here: http://wpilib.screenstepslive.com/s/...ders-solenoids and here: http://www.usfirst.org/sites/default...d_Breakout.pdf Quote:
The datasheets for each are on the maxbotix web site. For the MB1020 the analog number is VCC/512 per inch. Good Luck! |
|
#7
|
|||||
|
|||||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Quote:
The two Relay signal pins (one for Forward, and the other for Reverse) do not output a PWM signal. It is a simple steady voltage when on, and zero volts when off. |
|
#8
|
|||
|
|||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Quote:
GPIO Pin 1 to LS NO pin GPIO Pin 3 to LS Common/Swing Point GPIO pin 2 is not used Correct or am I still getting it backwards? |
|
#9
|
||||
|
||||
|
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card
Quote:
This is correct. In this case it would not matter if you were getting it backwards. The switch just shorts the signals going into the DIO port. The DIO inputs are pulled up internally so it will read '1' if pins 1 and 3 are not shorted and '0' if pins 1 and 3 are shorted. Good luck! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|