Serial Camera Module
DATASHEET
uCAM-II
Document Date: 4
th
March 2014
Document Revision: 1.0
Uncontrolled Copy when printed or downloaded.
Please refer to the 4D Systems website for the latest Revision of this document
Contents
1. Description ............................................................................................................................. 4
2. Features ................................................................................................................................. 4
3. Pin Configuration and Dimensions........................................................................................... 5
4. Pin Descriptions ...................................................................................................................... 6
5. Serial Interface - UART ............................................................................................................ 6
5.1. Single Byte Timing .................................................................................................................................. 6
5.2. Command Sequence Timing................................................................................................................... 6
5.3. Auto-Baud Detect ................................................................................................................................... 7
5.4. Setting the Baud Rates ........................................................................................................................... 7
5.5. Sleep mode............................................................................................................................................. 7
µCAM – II Serial Camera Module
6. Command Set ......................................................................................................................... 8
6.1. INITIAL (AA01h) ...................................................................................................................................... 8
6.1.1. Image Format ............................................................................................................................... 8
6.1.2. RAW Resolution ............................................................................................................................ 8
6.1.3. JPEG Resolution ............................................................................................................................ 8
6.2. GET PICTURE (AA04h) ............................................................................................................................ 8
6.2.1. Picture Type .................................................................................................................................. 9
6.3. SNAPSHOT (AA05h) ................................................................................................................................ 9
6.3.1. Snapshot Type .............................................................................................................................. 9
6.3.2. Skip Frame Counter ...................................................................................................................... 9
6.4. SET PACKAGE SIZE (AA06h) .................................................................................................................... 9
6.4.1. Package Size ................................................................................................................................. 9
6.5. SET BAUD RATE (AA07h) ...................................................................................................................... 10
6.5.1. Baud Rates .................................................................................................................................. 10
6.6. RESET (AA08h) ...................................................................................................................................... 10
6.6.1. Reset Type .................................................................................................................................. 10
6.7. DATA (AA0Ah) ...................................................................................................................................... 10
6.7.1. Data Type ................................................................................................................................... 10
6.7.2. Length ......................................................................................................................................... 10
6.8. SYNC (AA0Dh) ....................................................................................................................................... 10
6.9. ACK (AA0Eh) ......................................................................................................................................... 11
6.9.1. Command ID ............................................................................................................................... 11
6.9.2. ACK Counter ............................................................................................................................... 11
6.9.3. Package ID .................................................................................................................................. 11
6.10. NAK (AA0Fh) ....................................................................................................................................... 11
6.10.1. NAK Counter ............................................................................................................................. 11
6.10.2. Error Number ........................................................................................................................... 11
6.11. LIGHT (AA13h) .................................................................................................................................... 11
6.11.1. Light Frequency Type ............................................................................................................... 11
7. Command Protocol ............................................................................................................... 12
7.1. Synchronising the uCAM-II ................................................................................................................... 12
7.2. INITIAL, GET PICTURE, SNAPSHOT, SET PACKAGE SIZE, RESET Commands .......................................... 13
7.2.1. Example: Sending commands ..................................................................................................... 13
7.3. Taking SNAPSHOT Pictures ................................................................................................................... 14
7.3.1. Example: JPEG Snapshot Picture (640 x 480 resolution) ............................................................ 14
7.3.2. Example: Snapshot Picture (160 x 120 resolution, 16bit colour, uncompressed/RAW picture) 15
7.4. JPEG Pictures (Video) ........................................................................................................................... 16
7.4.1. Example: JPEG Picture (320 x 240 resolution) ............................................................................ 16
7.4.2. Example: Picture (80 x 60 resolution, 12bit colour, uncompressed/RAW picture) .................... 17
µCAM – II Serial Camera Module
8. Lens Information .................................................................................................................. 18
9. Troubleshooting ................................................................................................................... 18
10. Embedded Display Modules ................................................................................................ 19
11. 4D Systems - Workshop 4 IDE .............................................................................................. 20
12. Specifications and Ratings ................................................................................................... 21
13. Legal Notice ........................................................................................................................ 22
14. Contact Information............................................................................................................ 22
4D SYSTEMS
µCAM-II
1. Description
The
uCAM-II
(microCAM-II) is a highly integrated
serial camera module which can be attached to any
host system that requires a video camera or a JPEG
compressed still camera for embedded imaging
applications.
The module uses a CMOS VGA colour sensor along
with a JPEG compression chip that provides a low
cost and low powered camera system. The module
has an on-board serial interface (TTL) that is
suitable for a direct connection to any host micro-
controller UART or a PC system COM port.
The uCAM-II is capable of outputting both RAW
format and JPEG format images.
User commands are sent using a simple serial
protocol that can instruct the camera to send low
resolution (80x60 to 160x120) single frame raw
images for viewing or high resolution (160x128 to
640x480) JPEG images for storage or viewing.
The uCAM-II comes in a compact form factor with a
built in lens and a 5-wire connector that provides
easy access to both power and serial data.
There are 3 lenses available for this camera from 4D
Systems. A 56 degree (Standard), a 76 degree, and
a 116 degree. These are available to purchase from
4D Systems separately if required. The uCAM-II
ships with the 56 degree lens installed.
There is a locking nut on the barrel thread of the
lens, which is used to lock the focus in place once
set, to prevent it from inadvertently being changed.
2. Features
Small size, low cost and low powered camera
module for embedded imaging applications.
uCAM-II: 5V DC Supply nominal
On-board EEPROM provides a command-based
interface to external host via TTL serial link.
UART: up to 3.68Mbps for transferring JPEG still
pictures or raw images.
On board VGA colour sensor and RAW / JPEG
CODEC for different resolutions.
Built-in down sampling, clamping and
windowing circuits for VGA, QVGA or 160x120
image resolutions.
Built-in colour conversion circuits for 16-bit
CrYCbY, 8-bit gray, 16-bit RGB or standard JPEG
images.
No external DRAM required.
Additions lenses available
Locking nut for locking focus in place
Weight ~6g.
Dimensions: 32mm x 32mm x 21mm (without
lens, including header)
RoHS
µCAM – II Serial Camera Module
©
2014 4D SYSTEMS
Page 4 of 22
www.4dsystems.com.au
4D SYSTEMS
µCAM-II
3. Pin Configuration and Dimensions
32mm
µCAM – II Serial Camera Module
32mm
27.5mm
27.5mm
PIN 5
PIN 1
uCAM-II Pin Outs
Pin
1
2
Symbol
VCC
TX
I/O
P
O
Description
Main Voltage Supply +ve input pin. 4.5V to 9.0V DC range nominal 5V.
Asynchronous Serial Transmit pin. Connect this pin to host controller Serial
Receive (Rx) signal. The host receives data from uCAM-II via this pin.
3.3V Logic
Asynchronous Serial Receive pin. Connect this pin to host controller Serial
Transmit (Tx) signal. The host transmits commands to the uCAM-II via this pin.
3.3V Logic, however 5V Tolerant
Supply Ground.
Not Connected.
3
4
5
RX
GND
NC
I
P
--
I = Input, O = Output, P = Power
©
2014 4D SYSTEMS
Page 5 of 22
www.4dsystems.com.au