Digi Camera Interface Application Kit Quick start guide

Type
Quick start guide

Digi Camera Interface Application Kit lets you create photography projects with ease. It features a miniature serial camera, two micro-servo motors, camera bracket, 4-wire cable with friction-lock connectors, programming cable, power supply harnesses, AC adapter, Ethernet cables, foam mounting strips, and more. The kit can be used for tasks such as calibrating pan and tilt motors, controlling camera movement, capturing images, and transferring them to a PC. It's perfect for hobbyists, students, and engineers looking to explore the world of computer vision and robotics.

Digi Camera Interface Application Kit lets you create photography projects with ease. It features a miniature serial camera, two micro-servo motors, camera bracket, 4-wire cable with friction-lock connectors, programming cable, power supply harnesses, AC adapter, Ethernet cables, foam mounting strips, and more. The kit can be used for tasks such as calibrating pan and tilt motors, controlling camera movement, capturing images, and transferring them to a PC. It's perfect for hobbyists, students, and engineers looking to explore the world of computer vision and robotics.

®
A Digi International
®
Company.
020–0105 060601–A
Rabbit Semiconductor, Rabbit, Z-World, and Dynamic C are
registered trademarks of their respective holders.
Camera Interface Application Kit
Getting Started
Application Kit Contents
3 CDs — Dynamic C
®
, Dynamic C FAT File System module, and supplemental CD with sample programs and infor-
mation related to Camera Control Application Kit — with complete product documentation on disk.
RCM3365 RabbitCore module.
Camera Interposer Board to interface camera and micro-servo motors with RCM3365 and Prototyping Board.
RCM3365 Prototyping Board, with a bag of accessory parts for use on the Prototyping Board.
Miniature C328-7640 serial camera, plastic bracket, and 4-wire cable with friction-lock connectors.
10-pin header to DB9 programming cable with integrated level-matching circuitry.
2 power-supply harnesses (3-pin connector to red/black wires with bare leads).
AC adapter, 12 V DC, 1 A.
Ethernet cables.
2 Blue Arrow micro-servo motors.
Infrared motion sensor.
4 foam doubled-sided mounting strips.
Getting Started instructions.
32 MB xD-Picture Card™ (NAND flash)
Rabbit 3000 Processor Easy Reference poster.
Registration card.
Connect the servo motor wires to the Interposer Board — connect the pan servo motor to PWM3 (header J5).
The black wire is GND and the white wire is the PWM signal.
Calibrate the pan servo motor now by running the SERVO_CALIB.C sample program from the Dynamic C
SAMPLES\CAMERAINTERFACE folder. Use the File menu to open the sample program, and press func-
tion key F9 to compile and run the program.The STDIO window will open on your PC and will display a
calibration dialog box. Use a felt pen to mark a dot on the servo motor’s rotating blade, and watch the blade
rotate as you repeatedly press the “l” key on your keyboard with the STDIO window active. A PAN value
will also display in the STDIO window. The blade will not rotate any further when it reaches its limit, and
you may hear the motor humming. Go back at least two “steps” by pressing the “r” key on your keyboard,
and press the “s” key on your keyboard to save the PAN value. (Write down the value.) Answer the
prompts in the STDIO window and. Now repeatedly press the “r” key on your keyboard until the blade
reaches its other limit, and go back at least two “steps” by pressing the “l” key on your keyboard. Press the
“s” key on your keyboard to save the PAN value and answer the prompts. (Write down the value.) Finish
by continuing to press the “l” key on your keyboard until the PAN value is midway between the two limits.
Cut a second piece of a foam mounting strip and use it to secure a side of the other micro-servo motor to
the blade on the turning axis of the pan servo motor. This other servo motor is the tilt servo motor.
Connect the tilt servo motor to PWM1 (header J4), and calibrate it using the “u” and “d” keys on your key-
board to rotate the blade to its limits as you did for the pan servo motor. Go back at least two “steps,” and
press the “s” key on your keyboard to save the TILT values (write down the values), answering the prompts
in the STDIO window. Since the SERVO_CALIB.C sample program will terminate once all four limit
values have been saved, run the SERVO.C sample program to be able to press the “u” and “d” keys on
your keyboard as prompted in the STDIO window until the TILT value is midway between the two limits.
Use a third piece of foam mounting strip to secure the plastic camera bracket to the blade of the tilt servo
motor, and finally use the remaining foam mounting strip the attach the camera to the plastic bracket —
remove any labels from the back of the camera board before attaching it with the foam mounting strip.
Use the 4-wire cable with polarized friction-lock plugs to connect the camera to header J9 on the Interposer
Board — connect the white plug to the camera, and connect the black plug to header J9.
Where Do I Go From Here?
If the sample servo calibration program ran fine, you are now ready to go on to other sample programs on
the supplemental Dynamic C CD, which are discussed in Application Note AN412, Camera Interface
Application Kit. The source code for the sample programs is provided to allow you to modify them for
your own use. The RCM3365/RCM3375 User's Manual on the Dynamic C CD also provides complete
hardware reference information and describes the software function calls for the RCM3365 RabbitCore
modules and the Prototyping Board. If there are any problems:
Use the Dynamic C Help menu to get further assistance with Dynamic C.
Check the Rabbit Semiconductor/Z-World Technical Bulletin Board at www.rabbit.com/support/bb/.
Use the Technical Support e-mail form at www.rabbit.com/support/.
NOTE: If you purchased your Camera Interface Application Kit through a distributor or through a Rabbit
Semiconductor or Z-World partner, contact the distributor or partner first for technical support.
Starting Dynamic C
Once the RCM3365 is connected as described in the preceding pages, start Dynamic C by double-clicking
on the Dynamic C icon or by double-clicking on dcrab_XXXX.exe in the Dynamic C root directory,
where XXXX are version-specific characters. Dynamic C uses the serial port specified during installation.
If you are using a USB port to connect your computer to the RCM3365, choose Options > Project
Options and select “Use USB to Serial Converter.”
Set the compiler to run the application in the fast program execution SRAM by selecting “Code and BIOS
in Flash, Run in RAM” from the Dynamic C Options > Project Options > Compiler menu.
Installing Dynamic C
®
Insert the CD from the Development Kit in
your PCs CD-ROM drive. If the installation
does not auto-start, run the setup.exe pro-
gram in the root directory of the Dynamic C
CD. Install any Dynamic C modules and the
software from the supplemental CD after you
install Dynamic C.
Pan Motor
Connections
Connect
Camera
Install
Camera
Tilt Motor
Setup
Calibrate
Pan Motor
Hardware Connections
1. Install Camera Interposer Board and RCM3365
Orient the Camera Interposer Board as shown in Figure 1 and line up the pins on the bottom of the Inter-
poser Board with sockets JA and JB on the Prototyping Board. Press the Interposer Board’s pins firmly into
the Prototyping Board sockets.
Use a power-supply harness to connect the PWR pins (header J3, middle terminal is +5 V) on the Inter-
poser Board to the +5 V and GND terminals on screw-terminal header J6 on the Prototyping Board.
Install the RCM3365 on the Interposer Board as shown in Figure 1. Line up the pins on the bottom of the
RCM3365 module with sockets JA and JB on the Interposer Board. Press the RCM3365 module’s pins
firmly into the Interposer Board sockets. The xD-Picture Card may be inserted into header J6 on the
RCM3365 at this time.
Figure 1. Install the RCM3365 and Interposer Board on the Prototyping Board
NOTE: It is important that you line up the pins on the RCM3365 module and the Interposer
Board
exactly with the corresponding pins of the sockets. The header pins may become bent or
damaged if the pin alignment is offset, and the boards will not work. Permanent electrical dam-
age to the modules may also result if a misaligned module is powered up.
A ¼" (6.3 mm) standoff is recommended to secure the RCM3365 module and the Interposer Board to the
Prototyping Board in high-vibration environments. Attach one standoff to the top side of the Interposer
Board as shown in Figure 1. Then secure the Interposer Board to the Prototyping Board using the standoff
already on the Prototyping Board, and secure the RCM3365 into the other standoff on the Interposer Board.
2. Connect Programming Cable and Power Supply
Connect the 10-pin connector of the programming cable labeled PROG to header J1 on the RCM3365 as
shown in Figure 2. Be sure to orient the marked (red) edge of the cable towards pin 1 of the connector. (Do
not use the DIAG connector, which is used for a normal serial connection.) Connect the other end of the
programming cable to a COM port on your PC.
Insert standoff
between boards
(if needed)
+BKLT
/CS
LED1
LED3
LED5
GND
GND
A2
A0
D1
D3
D5
D7
RABBITNET
R44
C28
C27
R43
R46
C30C29
R45
Q5
R48
R47
DS7
RELAY
NO1 COM1 NC1 NO2 COM2 NC2
K1
KEYPAD DISPLAY BOARD
D8
LCD1JB
LCD1JC
+V
/RES
LED0
LED2
LED4
LED6
GND
A3
A1
D0
D2
D4
D6
LCD1JA
J16
BD0
BD1
BD2
BD3
BD4
BD5
BD6
BD7
J15
BA0
BA1
BA2
BA3
LCD
/CS
RELAY RATED
0.5 A @ 30 V
J17
U12
U11
R42
R41
C20
C19
R40
R39
SERIAL FLASH/
MODEM
J7
R2
R7
R3
R4
R5
R6
R9
R8
U6
R10
C6
C1
D1
J2
J1
J4
J6
GND IN3 IN2 IN1 IN0 +5V
+5V QD2A QD 2B QD1A QD1B GND
J5
VMB MDB1 MDB2 MDB3 MDB4 VMB+
VMA+ MDA1 MDA2 MDA3 MDA4 VMA
J3
C2
JP1
C3
JP2
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
J8
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PB6
PB4
PB2
/RES_OUT
PF4 PF6 PE7
RCM3300
PROTOTYPING
BOARD
S1
RESET
J9
S2
S3
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
JA
JB
POWER
GND
+DC
GND
DS1
R1
GND
+DC
D2
C8
L1
R11
JP3
R12
C9
C10
C11
C12
JP4
J10
RP1
RP2
R14
C5
BT1
C13
U5
R16
R15
R17
00 01 02 03 04 05 06 07
OUT
OUT
C4
R13
U1
U2
L293D
H-DRIVER
L293D
H-DRIVER
U8
R25
R26
R27
R28
J14
C24
U10
R38
R37
R35
C26
JP5
R36
C23
C21
U9
C22
J13
R33
R34
C17
C18
UX5
UX1
SO20W
UX2
SO20W
DX2
C25
J12
R50
Q6
R49
D4
D5
D6
D7
GND
HO4
HO3
HO2
HO1
R29
R30
R31
R32
CORE
DS2
DS3
DS4
DS5 DS6
TxE RxE GND TxF RxF 48 5+ GND 4 85
Q1
Q2
Q3
Q4
C16
R24
R23
R22
R21
CORE MODULE
GND/EGND
U4
GND
GND
+3.3 V
+5 V
+3.3 V
+5 V
U3
UX4
DX1
RX16
RX17
RX13
RX14
RX18
RX15
PF0_CLKD
PF0_QD
J11
C7
U7
R18
R19
R20
C14
C15
CX1
CX2
R55
R56
R57
R58
R63
R64
R65
R66
R59
R62
R60 R61
R52 R53
R51
R54
SOT23-6
SOT23-6
R67
R68
R69
R70
CORE MODULE
J4
J5
J11
PWM3
PWM1
GND
+5 V
PWM
GND
+5 V
PWM
+5 V
VOUT
+3.3 V
JP1
JA
J3
J6 J7
J9
RCM1
JB
GND
+5 V
GND
GND
+5 V
PWM
GND
+5 V
PWM
PWM2PWR
PWM0
C4
C3
J8
SF MODULE
RF MODULE
CAMERA
J10
DS1
+5 V
POWER
R3
D1
C1
C2
PB0
PB3
PB5
PB7
PF5
PF7
PE6
PE4
PE1
PG7
PG5
/IOWR
SMOD0
/ RESET_IN
VBAT_EXT
GND
GND
/RES
PB2
PB4
PB6
PF4
PF6
PE7
PE5
PE3
PE0
PG6
PG4
/IORD
SMOD1
VRAM
+3.3 V
NC
STATUS
PA6
PA4
PA2
PA0
PF2
PF0
PC1
PC3
PC5
PC7
PG1
PG3
PD5
PD3
PD7
NC
GND
PA7
PA5
PA3
PA1
PF3
PF1
PC0
PC2
PC4
PC6
PG0
PG2
PD4
PD2
PD6
NC
JA
GND
RCM1
GND
PA7
PA5
PA3
PA1
PF3
PF1
PC0
PC2
PC4
PC6
PG0
PG2
PD4
PD2
PD6
NC
STATU S
PA6
PA4
PA2
PA0
PF2
PF0
PC1
PC3
PC5
PC7
PG1
PG3
PD5
PD3
PD7
NC
RCM3365
DS2
R35
R36
R37
R38
R43
DS4
U13
C81
C78
C74
R1
R14
R15
R26
R27
R13
U2
R12
R11
J1
R10
C1
C6
R8
C10
C11
C15
C19
C20
C24
C28
R17
C35
C77
R79
C72
C70
C71
C80
C82
R31
R53
R54
R44
C58
C34
R20
R21
C36
R25
C27
C21
C18
C12
C13
C9
U3
R7
C2
C3
R6
Y1
R9
R84
C4
R2
R5
U1
C5
R80
R85
R70
R86
R64
R77
R50
R29
JP9
R59
C104
U5
C67
R45
C14
U6
R19
U4
R18
R22
JP6
JP7
JP8
JP4
JP5
C22
J6
L4
C79
L1
C42
R81
C86
C76
J2
R30
R82
Y2
Q2
R96
R67
C105
DS3
USR FM LINK ACT
DS1
C61
SPEED
R23
U16
R4
L2
J6
J1 J2
J6
JA
JB
Interposer
Board
Prototyping
Board
Power-Supply
Connections
JA
JB
To PWR (J3)
on Interposer Board
Figure 2. Connect Programming Cable, Interposer Board Power, and Motion Sensor
NOTE: Be sure to use the programming cable (part number 101-0542) supplied with this Appli-
cation Kit—the programming cable has blue shrink wrap around the RS-232 converter section
located in the middle of the cable. Programming cables with red or clear shrink wrap from other
Z-World or Rabbit Semiconductor kits are not designed to work with RCM3365 modules.
NOTE: Some PCs now come equipped only with a USB port. It may be possible to use an RS-232/
USB converter (Rabbit Semiconductor Part No. 540-0070) with the programming cable supplied
with this Application Kit. Note that not all RS-232/USB converters work with Dynamic C.
If you are using the motion sensor, connect its +5 V and GND terminals to screw-terminal header J6 on the
Prototyping Board—the middle black wire is +5 V—and connect its gray wire to IN0.
Once all the other connections have been made, you can connect power to the Prototyping Board. Connect
the AC adapter to jack J1 on the Prototyping Board. The POWER LED on the Prototyping Board should
light up. The RCM3365 and the Prototyping Board are now ready to be used.
NOTE: A RESET button is provided on the Prototyping Board to allow a hardware reset without
disconnecting power.
+BKLT
/CS
LED1
LED3
LED5
GND
GND
A2
A0
D1
D3
D5
D7
RABBITNET
R44
C28
C27
R43
R46
C30C29
R45
Q5
R48
R47
DS7
RELAY
NO1 COM1 NC1 NO2 COM2 NC2
K1
KEYPAD DISPLAY BOARD
D8
LCD1JB
LCD1JC
+V
/RES
LED0
LED2
LED4
LED6
GND
A3
A1
D0
D2
D4
D6
LCD1JA
J16
BD0
BD1
BD2
BD3
BD4
BD5
BD6
BD7
J15
BA0
BA1
BA2
BA3
LCD
/CS
RELAY RATED
0.5 A @ 30 V
J17
U12
U11
R42
R41
C20
C19
R40
R39
SERIAL FLASH/
MODEM
J7
R2
R7
R3
R4
R5
R6
R9
R8
U6
R10
C6
C1
D1
J2
J1
J4
J6
GND IN3 IN2 IN1 IN0 +5V
+5V QD2A QD2 B QD1A QD1B GND
J5
VMB MDB1 MDB2 MDB3 MDB4 VMB+
VMA+ MDA1 MDA2 MDA3 MDA4 VMA
J3
C2
JP1
C3
JP2
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
J8
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PB6
PB4
PB2
/RES_OUT
PF4 PF6 PE7
RCM3300
PROTOTYPING
BOARD
S1
RESET
J9
S2
S3
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
JA
JB
POWER
GND
+DC
GND
DS1
R1
GND
+DC
D2
C8
L1
R11
JP3
R12
C9
C10
C11
C12
JP4
J10
RP1
RP2
R14
C5
BT1
C13
U5
R16
R15
R17
00 01 02 03 04 05 06 07
OUT
OUT
C4
R13
U1
U2
L293D
H-DRIVER
L293D
H-DRIVER
U8
R25
R26
R27
R28
J14
C24
U10
R38
R37
R35
C26
JP5
R36
C23
C21
U9
C22
J13
R33
R34
C17
C18
UX5
UX1
SO20W
UX2
SO20W
DX2
C25
J12
R50
Q6
R49
D4
D5
D6
D7
GND
HO4
HO3
HO2
HO1
R29
R30
R31
R32
CORE
DS2
DS3
DS4
DS5 DS6
TxE RxE GND TxF RxF 485+ GND 485
Q1
Q2
Q3
Q4
C16
R24
R23
R22
R21
CORE MODULE
GND/EGND
U4
GND
GND
+3.3 V
+5 V
+3.3 V
+5 V
U3
UX4
DX1
RX16
RX17
RX13
RX14
RX18
RX15
PF0_CLKD
PF0_QD
J11
C7
U7
R18
R19
R20
C14
C15
CX1
CX2
R55
R56
R57
R58
R63
R64
R65
R66
R59
R62
R60 R61
R52 R53
R51
R54
SOT23-6
SOT23-6
R67
R68
R69
R70
CORE MODULE
J4
J5
J11
PWM1
PWM0
GND
+5 V
PWM
GND
+5 V
PWM
+5 V
VOUT
+3.3 V
JP1
JA
J3
J6 J7
J9
RCM1
JB
GND
+5 V
GND
GND
+5 V
PWM
GND
+5 V
PWM
PWM3PWR
PWM2
C4
C3
J8
SF MODULE
RF MODULE
CAMERA
J10
DS1
+5 V
POWER
R3
D1
C1
C2
PB0
PB3
PB5
PB7
PF5
PF7
PE6
PE4
PE1
PG7
PG5
/IOWR
SMOD0
/ RESET_IN
VBAT_EXT
GND
GND
/RES
PB2
PB4
PB6
PF4
PF6
PE7
PE5
PE3
PE0
PG6
PG4
/IORD
SMOD1
VRAM
+3.3 V
NC
STATUS
PA6
PA4
PA2
PA0
PF2
PF0
PC1
PC3
PC5
PC7
PG1
PG3
PD5
PD3
PD7
NC
GND
PA7
PA5
PA3
PA1
PF3
PF1
PC0
PC2
PC4
PC6
PG0
PG2
PD4
PD2
PD6
NC
DS2
R35
R36
R37
R38
R43
DS4
U13
C81
C78
C74
R1
R14
R15
R26
R27
R13
U2
R12
R11
J1
R10
C1
C6
R8
C10
C11
C15
C19
C20
C24
C28
R17
C35
C77
R79
C72
C70
C71
C80
C82
R31
R53
R54
R44
C58
C34
R20
R21
C36
R25
C27
C21
C18
C12
C13
C9
U3
R7
C2
C3
R6
Y1
R9
R84
C4
R2
R5
U1
C5
R80
R85
R70
R86
R64
R77
R50
R29
JP9
R59
C104
U5
C67
R45
C14
U6
R19
U4
R18
R22
JP6
JP7
JP8
JP4
JP5
C22
J6
L4
C79
L1
C42
R81
C86
C76
J2
R30
R82
Y2
Q2
R96
R67
C105
DS3
USR FMLINK ACT
DS1
C61
SPEED
R23
U16
R4
L2
J6
DIAG
PROG
Colored edge
To
PC COM port
Programming Cable
PROG
J1
Blue
shrink wrap
To PWR (J3)
on Interposer Board
+5 V
GND
IN0
MOTION
SENSOR
Figure 3. Servo Motor and
Camera Setup
PAN
SERVO
MOTOR
TILT
SERVO
MOTOR
CAMERA
PLASTIC
BRACKET
FRICTION-
LOCK
CONNECTOR
FOAM
MOUNTING
STRIP
FOAM
MOUNTING
STRIP
3. Set Up and Connect Servo Motors and Camera
Complete the assembly of each servo motor by attaching the cross-shaped plastic blade to
the motor shaft using the smallest screw from the parts bag in the motor box.
Cut a piece of a foam mounting strip and use it to secure the end opposite the turning axis of
one of the micro-servo motors in an unused area of the Prototyping Board close to the edge.
This will be the pan servo motor. You may also use another surface located close to the Proto-
typing Board. This pan servo motor can be secured more firmly if it is next to something else
such as a screw-terminal header, and its side is also secured with the foam mounting strip.
Alternate Power-Supply Connections
All Development Kits include a harness that may be used to connect your power supply to 3-pin
header J2 on the Prototyping Board. The connector may be attached either way as long as it is not
offset to one side—the center pin of J2 is always connected to the positive supply, and either edge
pin is negative. The power supply should deliver 8 V–30 V DC at 1 A.
TOP VIEW
TILT
SERVO
MOTOR
CAMERA
BRACKET
FOAM
MOUNTING
STRIPS
Hardware Connections
1. Install Camera Interposer Board and RCM3365
Orient the Camera Interposer Board as shown in Figure 1 and line up the pins on the bottom of the Inter-
poser Board with sockets JA and JB on the Prototyping Board. Press the Interposer Board’s pins firmly into
the Prototyping Board sockets.
Use a power-supply harness to connect the PWR pins (header J3, middle terminal is +5 V) on the Inter-
poser Board to the +5 V and GND terminals on screw-terminal header J6 on the Prototyping Board.
Install the RCM3365 on the Interposer Board as shown in Figure 1. Line up the pins on the bottom of the
RCM3365 module with sockets JA and JB on the Interposer Board. Press the RCM3365 module’s pins
firmly into the Interposer Board sockets. The xD-Picture Card may be inserted into header J6 on the
RCM3365 at this time.
Figure 1. Install the RCM3365 and Interposer Board on the Prototyping Board
NOTE: It is important that you line up the pins on the RCM3365 module and the Interposer
Board
exactly with the corresponding pins of the sockets. The header pins may become bent or
damaged if the pin alignment is offset, and the boards will not work. Permanent electrical dam-
age to the modules may also result if a misaligned module is powered up.
A ¼" (6.3 mm) standoff is recommended to secure the RCM3365 module and the Interposer Board to the
Prototyping Board in high-vibration environments. Attach one standoff to the top side of the Interposer
Board as shown in Figure 1. Then secure the Interposer Board to the Prototyping Board using the standoff
already on the Prototyping Board, and secure the RCM3365 into the other standoff on the Interposer Board.
2. Connect Programming Cable and Power Supply
Connect the 10-pin connector of the programming cable labeled PROG to header J1 on the RCM3365 as
shown in Figure 2. Be sure to orient the marked (red) edge of the cable towards pin 1 of the connector. (Do
not use the DIAG connector, which is used for a normal serial connection.) Connect the other end of the
programming cable to a COM port on your PC.
Insert standoff
between boards
(if needed)
+BKLT
/CS
LED1
LED3
LED5
GND
GND
A2
A0
D1
D3
D5
D7
RABBITNET
R44
C28
C27
R43
R46
C30C29
R45
Q5
R48
R47
DS7
RELAY
NO1 COM1 NC1 NO2 COM2 NC2
K1
KEYPAD DISPLAY BOARD
D8
LCD1JB
LCD1JC
+V
/RES
LED0
LED2
LED4
LED6
GND
A3
A1
D0
D2
D4
D6
LCD1JA
J16
BD0
BD1
BD2
BD3
BD4
BD5
BD6
BD7
J15
BA0
BA1
BA2
BA3
LCD
/CS
RELAY RATED
0.5 A @ 30 V
J17
U12
U11
R42
R41
C20
C19
R40
R39
SERIAL FLASH/
MODEM
J7
R2
R7
R3
R4
R5
R6
R9
R8
U6
R10
C6
C1
D1
J2
J1
J4
J6
GND IN3 IN2 IN1 IN0 +5V
+5V QD2A QD 2B QD1A QD1B GND
J5
VMB MDB1 MDB2 MDB3 MDB4 VMB+
VMA+ MDA1 MDA2 MDA3 MDA4 VMA
J3
C2
JP1
C3
JP2
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
J8
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PB6
PB4
PB2
/RES_OUT
PF4 PF6 PE7
RCM3300
PROTOTYPING
BOARD
S1
RESET
J9
S2
S3
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
JA
JB
POWER
GND
+DC
GND
DS1
R1
GND
+DC
D2
C8
L1
R11
JP3
R12
C9
C10
C11
C12
JP4
J10
RP1
RP2
R14
C5
BT1
C13
U5
R16
R15
R17
00 01 02 03 04 05 06 07
OUT
OUT
C4
R13
U1
U2
L293D
H-DRIVER
L293D
H-DRIVER
U8
R25
R26
R27
R28
J14
C24
U10
R38
R37
R35
C26
JP5
R36
C23
C21
U9
C22
J13
R33
R34
C17
C18
UX5
UX1
SO20W
UX2
SO20W
DX2
C25
J12
R50
Q6
R49
D4
D5
D6
D7
GND
HO4
HO3
HO2
HO1
R29
R30
R31
R32
CORE
DS2
DS3
DS4
DS5 DS6
TxE RxE GND TxF RxF 48 5+ GND 4 85
Q1
Q2
Q3
Q4
C16
R24
R23
R22
R21
CORE MODULE
GND/EGND
U4
GND
GND
+3.3 V
+5 V
+3.3 V
+5 V
U3
UX4
DX1
RX16
RX17
RX13
RX14
RX18
RX15
PF0_CLKD
PF0_QD
J11
C7
U7
R18
R19
R20
C14
C15
CX1
CX2
R55
R56
R57
R58
R63
R64
R65
R66
R59
R62
R60 R61
R52 R53
R51
R54
SOT23-6
SOT23-6
R67
R68
R69
R70
CORE MODULE
J4
J5
J11
PWM3
PWM1
GND
+5 V
PWM
GND
+5 V
PWM
+5 V
VOUT
+3.3 V
JP1
JA
J3
J6 J7
J9
RCM1
JB
GND
+5 V
GND
GND
+5 V
PWM
GND
+5 V
PWM
PWM2PWR
PWM0
C4
C3
J8
SF MODULE
RF MODULE
CAMERA
J10
DS1
+5 V
POWER
R3
D1
C1
C2
PB0
PB3
PB5
PB7
PF5
PF7
PE6
PE4
PE1
PG7
PG5
/IOWR
SMOD0
/ RESET_IN
VBAT_EXT
GND
GND
/RES
PB2
PB4
PB6
PF4
PF6
PE7
PE5
PE3
PE0
PG6
PG4
/IORD
SMOD1
VRAM
+3.3 V
NC
STATUS
PA6
PA4
PA2
PA0
PF2
PF0
PC1
PC3
PC5
PC7
PG1
PG3
PD5
PD3
PD7
NC
GND
PA7
PA5
PA3
PA1
PF3
PF1
PC0
PC2
PC4
PC6
PG0
PG2
PD4
PD2
PD6
NC
JA
GND
RCM1
GND
PA7
PA5
PA3
PA1
PF3
PF1
PC0
PC2
PC4
PC6
PG0
PG2
PD4
PD2
PD6
NC
STATU S
PA6
PA4
PA2
PA0
PF2
PF0
PC1
PC3
PC5
PC7
PG1
PG3
PD5
PD3
PD7
NC
RCM3365
DS2
R35
R36
R37
R38
R43
DS4
U13
C81
C78
C74
R1
R14
R15
R26
R27
R13
U2
R12
R11
J1
R10
C1
C6
R8
C10
C11
C15
C19
C20
C24
C28
R17
C35
C77
R79
C72
C70
C71
C80
C82
R31
R53
R54
R44
C58
C34
R20
R21
C36
R25
C27
C21
C18
C12
C13
C9
U3
R7
C2
C3
R6
Y1
R9
R84
C4
R2
R5
U1
C5
R80
R85
R70
R86
R64
R77
R50
R29
JP9
R59
C104
U5
C67
R45
C14
U6
R19
U4
R18
R22
JP6
JP7
JP8
JP4
JP5
C22
J6
L4
C79
L1
C42
R81
C86
C76
J2
R30
R82
Y2
Q2
R96
R67
C105
DS3
USR FM LINK ACT
DS1
C61
SPEED
R23
U16
R4
L2
J6
J1 J2
J6
JA
JB
Interposer
Board
Prototyping
Board
Power-Supply
Connections
JA
JB
To PWR (J3)
on Interposer Board
Figure 2. Connect Programming Cable, Interposer Board Power, and Motion Sensor
NOTE: Be sure to use the programming cable (part number 101-0542) supplied with this Appli-
cation Kit—the programming cable has blue shrink wrap around the RS-232 converter section
located in the middle of the cable. Programming cables with red or clear shrink wrap from other
Z-World or Rabbit Semiconductor kits are not designed to work with RCM3365 modules.
NOTE: Some PCs now come equipped only with a USB port. It may be possible to use an RS-232/
USB converter (Rabbit Semiconductor Part No. 540-0070) with the programming cable supplied
with this Application Kit. Note that not all RS-232/USB converters work with Dynamic C.
If you are using the motion sensor, connect its +5 V and GND terminals to screw-terminal header J6 on the
Prototyping Board—the middle black wire is +5 V—and connect its gray wire to IN0.
Once all the other connections have been made, you can connect power to the Prototyping Board. Connect
the AC adapter to jack J1 on the Prototyping Board. The POWER LED on the Prototyping Board should
light up. The RCM3365 and the Prototyping Board are now ready to be used.
NOTE: A RESET button is provided on the Prototyping Board to allow a hardware reset without
disconnecting power.
+BKLT
/CS
LED1
LED3
LED5
GND
GND
A2
A0
D1
D3
D5
D7
RABBITNET
R44
C28
C27
R43
R46
C30C29
R45
Q5
R48
R47
DS7
RELAY
NO1 COM1 NC1 NO2 COM2 NC2
K1
KEYPAD DISPLAY BOARD
D8
LCD1JB
LCD1JC
+V
/RES
LED0
LED2
LED4
LED6
GND
A3
A1
D0
D2
D4
D6
LCD1JA
J16
BD0
BD1
BD2
BD3
BD4
BD5
BD6
BD7
J15
BA0
BA1
BA2
BA3
LCD
/CS
RELAY RATED
0.5 A @ 30 V
J17
U12
U11
R42
R41
C20
C19
R40
R39
SERIAL FLASH/
MODEM
J7
R2
R7
R3
R4
R5
R6
R9
R8
U6
R10
C6
C1
D1
J2
J1
J4
J6
GND IN3 IN2 IN1 IN0 +5V
+5V QD2A QD2 B QD1A QD1B GND
J5
VMB MDB1 MDB2 MDB3 MDB4 VMB+
VMA+ MDA1 MDA2 MDA3 MDA4 VMA
J3
C2
JP1
C3
JP2
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
J8
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PB6
PB4
PB2
/RES_OUT
PF4 PF6 PE7
RCM3300
PROTOTYPING
BOARD
S1
RESET
J9
S2
S3
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
JA
JB
POWER
GND
+DC
GND
DS1
R1
GND
+DC
D2
C8
L1
R11
JP3
R12
C9
C10
C11
C12
JP4
J10
RP1
RP2
R14
C5
BT1
C13
U5
R16
R15
R17
00 01 02 03 04 05 06 07
OUT
OUT
C4
R13
U1
U2
L293D
H-DRIVER
L293D
H-DRIVER
U8
R25
R26
R27
R28
J14
C24
U10
R38
R37
R35
C26
JP5
R36
C23
C21
U9
C22
J13
R33
R34
C17
C18
UX5
UX1
SO20W
UX2
SO20W
DX2
C25
J12
R50
Q6
R49
D4
D5
D6
D7
GND
HO4
HO3
HO2
HO1
R29
R30
R31
R32
CORE
DS2
DS3
DS4
DS5 DS6
TxE RxE GND TxF RxF 485+ GND 485
Q1
Q2
Q3
Q4
C16
R24
R23
R22
R21
CORE MODULE
GND/EGND
U4
GND
GND
+3.3 V
+5 V
+3.3 V
+5 V
U3
UX4
DX1
RX16
RX17
RX13
RX14
RX18
RX15
PF0_CLKD
PF0_QD
J11
C7
U7
R18
R19
R20
C14
C15
CX1
CX2
R55
R56
R57
R58
R63
R64
R65
R66
R59
R62
R60 R61
R52 R53
R51
R54
SOT23-6
SOT23-6
R67
R68
R69
R70
CORE MODULE
J4
J5
J11
PWM1
PWM0
GND
+5 V
PWM
GND
+5 V
PWM
+5 V
VOUT
+3.3 V
JP1
JA
J3
J6 J7
J9
RCM1
JB
GND
+5 V
GND
GND
+5 V
PWM
GND
+5 V
PWM
PWM3PWR
PWM2
C4
C3
J8
SF MODULE
RF MODULE
CAMERA
J10
DS1
+5 V
POWER
R3
D1
C1
C2
PB0
PB3
PB5
PB7
PF5
PF7
PE6
PE4
PE1
PG7
PG5
/IOWR
SMOD0
/ RESET_IN
VBAT_EXT
GND
GND
/RES
PB2
PB4
PB6
PF4
PF6
PE7
PE5
PE3
PE0
PG6
PG4
/IORD
SMOD1
VRAM
+3.3 V
NC
STATUS
PA6
PA4
PA2
PA0
PF2
PF0
PC1
PC3
PC5
PC7
PG1
PG3
PD5
PD3
PD7
NC
GND
PA7
PA5
PA3
PA1
PF3
PF1
PC0
PC2
PC4
PC6
PG0
PG2
PD4
PD2
PD6
NC
DS2
R35
R36
R37
R38
R43
DS4
U13
C81
C78
C74
R1
R14
R15
R26
R27
R13
U2
R12
R11
J1
R10
C1
C6
R8
C10
C11
C15
C19
C20
C24
C28
R17
C35
C77
R79
C72
C70
C71
C80
C82
R31
R53
R54
R44
C58
C34
R20
R21
C36
R25
C27
C21
C18
C12
C13
C9
U3
R7
C2
C3
R6
Y1
R9
R84
C4
R2
R5
U1
C5
R80
R85
R70
R86
R64
R77
R50
R29
JP9
R59
C104
U5
C67
R45
C14
U6
R19
U4
R18
R22
JP6
JP7
JP8
JP4
JP5
C22
J6
L4
C79
L1
C42
R81
C86
C76
J2
R30
R82
Y2
Q2
R96
R67
C105
DS3
USR FMLINK ACT
DS1
C61
SPEED
R23
U16
R4
L2
J6
DIAG
PROG
Colored edge
To
PC COM port
Programming Cable
PROG
J1
Blue
shrink wrap
To PWR (J3)
on Interposer Board
+5 V
GND
IN0
MOTION
SENSOR
Figure 3. Servo Motor and
Camera Setup
PAN
SERVO
MOTOR
TILT
SERVO
MOTOR
CAMERA
PLASTIC
BRACKET
FRICTION-
LOCK
CONNECTOR
FOAM
MOUNTING
STRIP
FOAM
MOUNTING
STRIP
3. Set Up and Connect Servo Motors and Camera
Complete the assembly of each servo motor by attaching the cross-shaped plastic blade to
the motor shaft using the smallest screw from the parts bag in the motor box.
Cut a piece of a foam mounting strip and use it to secure the end opposite the turning axis of
one of the micro-servo motors in an unused area of the Prototyping Board close to the edge.
This will be the pan servo motor. You may also use another surface located close to the Proto-
typing Board. This pan servo motor can be secured more firmly if it is next to something else
such as a screw-terminal header, and its side is also secured with the foam mounting strip.
Alternate Power-Supply Connections
All Development Kits include a harness that may be used to connect your power supply to 3-pin
header J2 on the Prototyping Board. The connector may be attached either way as long as it is not
offset to one side—the center pin of J2 is always connected to the positive supply, and either edge
pin is negative. The power supply should deliver 8 V–30 V DC at 1 A.
TOP VIEW
TILT
SERVO
MOTOR
CAMERA
BRACKET
FOAM
MOUNTING
STRIPS
020–0105 060601–A
Rabbit Semiconductor, Rabbit, Z-World, and Dynamic C are
registered trademarks of their respective holders.
Camera Interface Application Kit
Getting Started
Application Kit Contents
3 CDs — Dynamic C
®
, Dynamic C FAT File System module, and supplemental CD with sample programs and infor-
mation related to Camera Control Application Kit — with complete product documentation on disk.
RCM3365 RabbitCore module.
Camera Interposer Board to interface camera and micro-servo motors with RCM3365 and Prototyping Board.
RCM3365 Prototyping Board, with a bag of accessory parts for use on the Prototyping Board.
Miniature C328-7640 serial camera, plastic bracket, and 4-wire cable with friction-lock connectors.
10-pin header to DB9 programming cable with integrated level-matching circuitry.
2 power-supply harnesses (3-pin connector to red/black wires with bare leads).
AC adapter, 12 V DC, 1 A.
Ethernet cables.
2 Blue Arrow micro-servo motors.
Infrared motion sensor.
4 foam doubled-sided mounting strips.
Getting Started instructions.
32 MB xD-Picture Card™ (NAND flash)
Rabbit 3000 Processor Easy Reference poster.
Registration card.
Connect the servo motor wires to the Interposer Board — connect the pan servo motor to PWM3 (header J5).
The black wire is GND and the white wire is the PWM signal.
Calibrate the pan servo motor now by running the SERVO_CALIB.C sample program from the Dynamic C
SAMPLES\CAMERAINTERFACE folder. Use the File menu to open the sample program, and press func-
tion key F9 to compile and run the program.The STDIO window will open on your PC and will display a
calibration dialog box. Use a felt pen to mark a dot on the servo motor’s rotating blade, and watch the blade
rotate as you repeatedly press the “l” key on your keyboard with the STDIO window active. A PAN value
will also display in the STDIO window. The blade will not rotate any further when it reaches its limit, and
you may hear the motor humming. Go back at least two “steps” by pressing the “r” key on your keyboard,
and press the “s” key on your keyboard to save the PAN value. (Write down the value.) Answer the
prompts in the STDIO window and. Now repeatedly press the “r” key on your keyboard until the blade
reaches its other limit, and go back at least two “steps” by pressing the “l” key on your keyboard. Press the
“s” key on your keyboard to save the PAN value and answer the prompts. (Write down the value.) Finish
by continuing to press the “l” key on your keyboard until the PAN value is midway between the two limits.
Cut a second piece of a foam mounting strip and use it to secure a side of the other micro-servo motor to
the blade on the turning axis of the pan servo motor. This other servo motor is the tilt servo motor.
Connect the tilt servo motor to PWM1 (header J4), and calibrate it using the “u” and “d” keys on your key-
board to rotate the blade to its limits as you did for the pan servo motor. Go back at least two “steps,” and
press the “s” key on your keyboard to save the TILT values (write down the values), answering the prompts
in the STDIO window. Since the SERVO_CALIB.C sample program will terminate once all four limit
values have been saved, run the SERVO.C sample program to be able to press the “u” and “d” keys on
your keyboard as prompted in the STDIO window until the TILT value is midway between the two limits.
Use a third piece of foam mounting strip to secure the plastic camera bracket to the blade of the tilt servo
motor, and finally use the remaining foam mounting strip the attach the camera to the plastic bracket —
remove any labels from the back of the camera board before attaching it with the foam mounting strip.
Use the 4-wire cable with polarized friction-lock plugs to connect the camera to header J9 on the Interposer
Board — connect the white plug to the camera, and connect the black plug to header J9.
Where Do I Go From Here?
If the sample servo calibration program ran fine, you are now ready to go on to other sample programs on
the supplemental Dynamic C CD, which are discussed in Application Note AN412, Camera Interface
Application Kit. The source code for the sample programs is provided to allow you to modify them for
your own use. The RCM3365/RCM3375 User's Manual on the Dynamic C CD also provides complete
hardware reference information and describes the software function calls for the RCM3365 RabbitCore
modules and the Prototyping Board. If there are any problems:
Use the Dynamic C Help menu to get further assistance with Dynamic C.
Check the Rabbit Semiconductor/Z-World Technical Bulletin Board at www.rabbit.com/support/bb/.
Use the Technical Support e-mail form at www.rabbit.com/support/.
NOTE: If you purchased your Camera Interface Application Kit through a distributor or through a Rabbit
Semiconductor or Z-World partner, contact the distributor or partner first for technical support.
Starting Dynamic C
Once the RCM3365 is connected as described in the preceding pages, start Dynamic C by double-clicking
on the Dynamic C icon or by double-clicking on dcrab_XXXX.exe in the Dynamic C root directory,
where XXXX are version-specific characters. Dynamic C uses the serial port specified during installation.
If you are using a USB port to connect your computer to the RCM3365, choose Options > Project
Options and select “Use USB to Serial Converter.”
Set the compiler to run the application in the fast program execution SRAM by selecting “Code and BIOS
in Flash, Run in RAM” from the Dynamic C Options > Project Options > Compiler menu.
Installing Dynamic C
®
Insert the CD from the Development Kit in
your PCs CD-ROM drive. If the installation
does not auto-start, run the setup.exe pro-
gram in the root directory of the Dynamic C
CD. Install any Dynamic C modules and the
software from the supplemental CD after you
install Dynamic C.
Pan Motor
Connections
Connect
Camera
Install
Camera
Tilt Motor
Setup
Calibrate
Pan Motor
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4

Digi Camera Interface Application Kit Quick start guide

Type
Quick start guide

Digi Camera Interface Application Kit lets you create photography projects with ease. It features a miniature serial camera, two micro-servo motors, camera bracket, 4-wire cable with friction-lock connectors, programming cable, power supply harnesses, AC adapter, Ethernet cables, foam mounting strips, and more. The kit can be used for tasks such as calibrating pan and tilt motors, controlling camera movement, capturing images, and transferring them to a PC. It's perfect for hobbyists, students, and engineers looking to explore the world of computer vision and robotics.

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI