Quote:
Originally Posted by NS_Radication
Some say that the cRio layout could correspond to this so here is our layout (to the best of my memory):
Slot 1: empty
Slot 2: 9403
Slot 3: 9201
Slot 4: empty
Slot 5: 9472
Slot 6: empty
Slot 7: empty
Slot 8: empty
I am almost 200% sure that there is error and that it can be corrected. Please do whatever it takes to correct me.
|
The correct layout is as follows:
Code:
1. 9201 (Analog Breakout)
2. 9403 (Digital Sidecar)
3. 9472 (Solenoid Breakout)
4. Empty
5. Empty
6. 9403 (Digital module)
7. Empty
8. Empty
Quote:
Originally Posted by NS_Radication
-Relays
We are using relays for the window motors we have on a collector and a lever arm. The relays are hooked up in Relay slot one and two. At one point, I got a simple code to run on it to toggle on and off. Now they remain unresponsive. The light is RED and the fuse is intact. There is 12V going into it and no output voltage. I unplugged the wires to the motor from the spike and manually hooked it up to the battery. This proved the motor and subsystem work, but there is no output. The PWMs going into it are my main issue. I could not remember which way it hooks up, the DSC was not a helpful diagram, so I hooked them in every way on the DSC and the Spike and still no response. This was very perplexing so any diagram, pic or layout would be much appreciated.
|
See
the Spike datasheet to understand how exactly they work.
Quote:
Originally Posted by NS_Radication
-I/Os
I am new to sensors, but I have done some research on them. The ones that I am focusing on are only the encoders (2) and the microswitches (2). First, I would like to see a DETAILED wire diagram and/or pictures of your wiring so that I understand what to do. Also with the DSC with slot a,b,+5,GND and the cRio (I can't think of the slot number or how to fully connect them.) With encoders, how do you mount them to CIM motors and window motors properly and how do you power encoders and microswitches.
|
The microswitches that FIRST provides have COM, NC, and NO tabs. NC and NO stand for, respectively, normally closed and open, which refers to the default state (when the switch isn't triggered) of the connection between said tab and the COM tab. To connect these to a digital I/O, put the switch onto the signal and ground wire.
The E4P encoders have 4 wires: an orange, blue, yellow, and brown. These 4 wires will splice into two digital I/O connections. The orange connects to a +5V; the brown to a ground, and the yellow and blue to two signal pins (these are channels A and B of the encoder output; I can't remember which is which). It doesn't matter whether the power pin you use is next to the yellow or the blue, and it doesn't matter for the ground pin, as long as they're from the digital I/O.
Neither encoders nor microswitches need separate power supplies to function. Your engineers should be the ones asking how to mount the encoders, but the answer is anywhere around a 1/4" output shaft. The E4Ps are designed to read the rotation of a 1/4" shaft, and as such, should be appropriately mounted such that they are doing so. Most Andymark provided gearboxes include methods to mount encoders. For applications like window motors, you can include idler shafts that are spun by the driveshaft for the encoder to read, or turn the end of the driveshaft down so the encoder can be mounted there.