Tsi Iobob2 Manual
Tsi Iobob2 Manual
User Guide
TSI-IOBOB2
Table of Contents
Chapter 1 Description ....................................................................... 2
1.1. Description ................................................................... 2
1.2. General Usage .............................................................. 2
1.2.1. Arduino® based Shield Design ..................................................3
1.2.2. Code Example #1 ......................................................................5
1.2.3. Code Example #2 ......................................................................6
1.2.4. Code Example #3 ......................................................................8
1.2.5. Schematic Diagram.................................................................. 10
Chapter 1 Description
1.1. Description
The Thorlabs’ Scientific Imaging I/O Break-Out Board, TSI-IOBOB2, is a
general purpose interface board designed primarily as a means of
accessing the various I/O signals present in our series of Digital Video
Cameras. However, it can just as easily be used to break-out signals
from any device compatible with MD6 (mini din) and electrical SMA
connections.
Both of these cables are 10’ (3m) long. If you need to extend this length
further you can add an additional off-the-shelf extension cable* in series, however
signal integrity might be affected, and EMC compliance of our Digital Video
Cameras has not been evaluated with lengths greater than 10’.
Thorlabs also offers a selection of mating SMA cables, in both SMA-SMA
and SMA-BNC versions. Please look for the CA-28xx and CA-29xx
product lines on our web page and catalog (i.e. CA-2848 for a 48” SMA-BNC
cable).
ITN000625-D02 Page 2
TSI-IOBOB2
ITN000625-D02 Page 4
TSI-IOBOB2
int trigPin = 3;
void setup()
{
//Set trigger pin (D3) to output
pinMode(trigPin, OUTPUT);
//Camera typically triggers on LOW
digitalWrite(trigPin, HIGH);
}
void loop()
{
//Trigger Camera every second
digitalWrite(trigPin, LOW);
//Slight delay to give camera time to react
delay(1);
//Set trigger line back to HIGH
digitalWrite(trigPin, HIGH);
//Delay next trigger
delay(995);
}
int trigPin = 3;
int fvalPin = 5;
int prevFVal;
int currFVal;
void setup()
{
//Set trigger pin to output
pinMode(trigPin, OUTPUT);
//Set fval pin to input
pinMode(fvalPin, INPUT);
//Camera typically triggers on LOW
digitalWrite(trigPin, HIGH);
prevFVal = LOW;
}
void loop()
{
//Trigger Camera
digitalWrite(trigPin, LOW);
//Slight delay to give camera time to react
delay(1);
//Set trigger line back to HIGH
digitalWrite(trigPin, HIGH);
ITN000625-D02 Page 6
TSI-IOBOB2
Figure 4 Timing Diagram of the Trigger Signal Sent to the Camera and the FVAL signal
measured by Arduino
void setup()
{
DDRD = trigMask;//Set all but trigIn to inputs
PORTD = trigMask;//Set the trigger to high
current = PIND & readAllMask;//Read current values
Serial.begin(115200);
}
void loop()
{
//Trigger Camera
PORTD = 0;//set trigger low;
ITN000625-D02 Page 8
TSI-IOBOB2
VCC.3V3 VCC.5V0
J3
1 LVAL
R1 R2
2
1
10k 1% Q1 10k 1%
3
2
ANALOG 4
LVAL_ARD
1 5
2 6
3 7 BSS138
LVAL GND
4 8
5 9
6 10
VCC.3V3 VCC.5V0
PINHD-1X6 PINHD-1X10
TRIG_OUT
R3 R4
1
J1 10k 1% Q2 10k 1%
2
1
TRIGOUT_ARD
2
3
TRIGIN_ARD 4 BSS138
GND
STROBE_ARD 5 TRIGOUT
FVAL_ARD 6
TRIGOUT_ARD 7
VCC.3V3 VCC.5V0
LVAL_ARD 8
RESET
2 4
GND PINHD-1X8 TRIG_IN
1 3 R5 R6
1
NOPOP 10k 1% Q3 10k 1%
2
J2
TRIGIN_ARD
1
2
VCC.5V0 VCC.3V3 3 BSS138
GND
4
TRIGIN
5
6
VCC.3V3 VCC.5V0
7
+9V 8
FVAL
R7 R8
PINHD-1X8
1
10k 1% Q4 10k 1%
GND
2
FVAL_ARD
BSS138
GND
R11 FVAL
270 1%
VCC.3V3 VCC.5V0
LED1
GREEN
STROBE
R9 R10
1
10k 1% Q5 10k 1%
2
STROBE_ARD
BSS138
GND GND
STROBE
J7
STROBE 6 5 FVAL
4 3 TRIGIN
TRIGOUT 2 1 LVAL
GND
ITN000625-D02 Page 10
TSI-IOBOB2
Chapter 2 Regulatory
As required by the WEEE (Waste Electrical and Electronic Equipment Directive) of
the European Community and the corresponding national laws, Thorlabs offers all
end users in the EC the possibility to return “end of life” units without incurring
disposal charges.
This offer is valid for Thorlabs electrical and electronic equipment:
Sold after August 13, 2005
Marked correspondingly with the crossed out
“wheelie bin” logo (see right)
Sold to a company or institute within the EC
Currently owned by a company or institute
within the EC
Still complete, not disassembled and not
contaminated
As the WEEE directive applies to self contained
Wheelie Bin Logo
operational electrical and electronic products, this end of
life take back service does not refer to other Thorlabs products, such as:
Pure OEM products, that means assemblies to be built into a unit by the
user (e.g. OEM laser driver cards)
Components
Mechanics and optics
Left over parts of units disassembled by the user (PCB’s, housings etc.).
If you wish to return a Thorlabs unit for waste recovery, please contact Thorlabs or
your nearest dealer for further information.
Europe Scandinavia
Thorlabs GmbH Thorlabs Sweden AB
[email protected] [email protected]
France Brazil
Thorlabs SAS Thorlabs Vendas de Fotônicos Ltda.
[email protected] [email protected]
Japan China
Thorlabs Japan, Inc. Thorlabs China
[email protected] [email protected]
ITN000625-D02 Page 12
This page left intentionally blank
This page left intentionally blank
www.thorlabs.com