The V16OPTO has 16 optically isolated digital inputs configured to detect contact closures.
1. Install ADDR jumpers to pins 1-2, 3-4, 5-6, 7-8 and 9-10 (as shipped). This puts the board at VAST address 0, with the inputs at bit numbers 0 through 15.
2. Connect the VAST cable to the SBC2000.
3. Execute the following code:
GLOBAL channel AS INTEGER
CONSTANT crlf AS STRING = "\013\010"
VDIO_CONFIG(0, 1)
REM Read all 16 inputs
DO
FOR channel = 0 TO 15
PRINT crlf, channel, ": ", VTEST(channel)
NEXT channel
LOOP UNTIL 0
See the Vesta Multi-Tasking Basic manual for information on how these commands are used.
Pin | Signal | Pin | Signal |
1 | Ground | 2 | +5v |
3 | Ground | 4 | Input 0 |
5 | Ground | 6 | Input 1 |
7 | Ground | 8 | Input 2 |
9 | Ground | 10 | Input 3 |
11 | Ground | 12 | Input 4 |
13 | Ground | 14 | Input 5 |
15 | Ground | 16 | Input 6 |
17 | Ground | 18 | Input 7 |
19 | Ground | 20 | Input 8 |
21 | Ground | 22 | Input 9 |
23 | Ground | 24 | Input 10 |
25 | Ground | 26 | Input 11 |
27 | Ground | 28 | Input 12 |
29 | Ground | 30 | Input 13 |
31 | Ground | 32 | Input 14 |
33 | Ground | 34 | Input 15 |
Ports 0 or 2 = Inputs 2 - 7
Ports 1 or 3 = Inputs 8 - 15
The current draw for a V16OPTO is 1mA for board logic plus 10 mA for each energized input.
Dimensions are in inches.