Serial JPEG Camera Module Data Sheet

Similar documents
Serial JPEG Camera Module Data Sheet

DATASHEET 4D SYSTEMS. Serial JPG Camera Module TURNING TECHNOLOGY INTO ART. Document Date: 5 th September 2012 Document Revision: 1.

DATASHEET. Serial Camera Module. ucam-ii. Document Date: 6 th March 2014 Document Revision: 1.1

DATASHEET. Serial Camera Module. ucam-ii. Document Date: 24 th July 2014 Document Revision: 1.3

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Arduino Adaptor Shield TURNING TECHNOLOGY INTO ART. 4Display-Adaptor-Shield

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. USB to Serial UART Bridge Converter. Document Date: 5 th September 2012 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. microusb Programming Adaptor. USB to UART Serial Bridge

DATASHEET 4D SYSTEMS. uusb-pa5 uusb-pa5-ii. microusb Programming Adaptor TURNING TECHNOLOGY INTO ART. USB to UART Serial Bridge

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Carrier Board for μoled-160-g1/g2 CB-160-G1

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Embedded DOS micro-drive Module. μdrive-μsd-g1

DATASHEET. gen4 Programming Adaptor For all gen4 sizes (Picaso and Diablo16) gen4-pa. Document Date: 29 th January 2016 Document Revision: 1.

Workshop 4 Installation INSTALL GUIDE. Document Date: February 4 th, Document Revision: 1.1

DATASHEET 4D SYSTEMS. 4Display Shield with 2.2 Display TURNING TECHNOLOGY INTO ART. 4Display-Shield-22

4D Systems. Application Note: 4D-AN-G3001. in ViSi Environment. Document Date: 15 th December Document Revision: 1.0

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 25 th September 2013 Document Revision: 0.

DATASHEET. 3.2 Display Bezel. 4D-Bezel-32 For the ulcd-32ptu Display Module. Document Date: 16 th September 2013 Document Revision: 1.

ShenZhen Top Create Electronic Co.,Ltd. Website: Tel: CJ - CAM User Manual.

4D Systems. Application Note: 4D-AN-P2002. Playing Video on PICASO based modules using RAW option. Document Date: 15 th December 2012

4D SYSTEMS TURNING TECHNOLOGY INTO ART. Application Note: 4D-AN-G5002

DATASHEET 4D SYSTEMS. Embedded Audio-Sound Module TURNING TECHNOLOGY INTO ART SOMO-14D. Document Date: 5 th February 2013 Document Revision: 1.

2.8 microlcd Intelligent PICASO Display Module

4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-P3001 TURNING TECHNOLOGY INTO ART. ViSi - Displaying Third-Party Fonts

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.9

Introduction. Rev.1.2

APPLICATION NOTE. Application Note: 4D-AN-P4004. ViSi-Genie Advanced Buttons. Document Date: November 15 th, Document Revision: 1.

APPLICATION NOTE. Application Note: 4D-AN-P4009. ViSi-Genie Inputs. Document Date: November 19 th, Document Revision: 1.0

USER GUIDE. Workshop 4 User Guide. Document Date: 17 th December 2012 Document Revision: 1.1

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 8 th January 2014 Document Revision: 1.

SOMO-14D Embedded Audio-Sound Module

Font Tool User Guide. Abstract. Document Date: 1 July 2009 Document Revision: 01

4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-G5001 TURNING TECHNOLOGY INTO ART. Serial - Displaying Third-Party Fonts

APPLICATION NOTE. Application Note: 4D-AN-P4007. ViSi-Genie Play Video. Document Date: November 15 th, Document Revision: 1.

4D SYSTEMS µoled-160-g1(sgc) Serial OLED Display Module Data Sheet

REFERENCE 4D SYSTEMS TURNING TECHNOLOGY INTO ART. μdrive. (μdrive-μsd-g1) COMMAND SET. Document Date: 23 rd October 2012 Document Revision: 4.

USERS MANUAL. 4D Systems. (4DGL Platform Only) Revision 1.0

C1098 JPEG Module User Manual

4D SYSTEMS µvga-ii(sgc) Serial VGA Graphics Engine Data Sheet

SC20MPC: 2 Mega Pixels Serial JPEG Camera User Manual. Introduction

The SC03MPA camera is capable of outputting JPEG format images and PAL/NTSC video (Video is available only per request).

DATASHEET. 4D 7.0 LCD CAPE Beagle Bone Black 7.0 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.2

SC03MPC: 0.3 Mega Pixels Serial JPEG Camera Infrared User Manual. Introduction

DATASHEET. Embedded Audio-Sound Module SOMO-II. Document Date: 8 th January 2014 Document Revision: 0.1

JPEG Serial Camera Module. OV528 Protocol

DATASHEET 4D SYSTEMS. Arduino Display Module Pack TURNING TECHNOLOGY INTO ART. ulcd-43-pt-ar. Featuring 4.3 Serial Display Module

C1182 Video Compression Module User Manual. Release Note: 1 st Release : Aug 01, 2012

C329-SPI User Manual. Release Note: V th September, 2010 First release. V th January 2012 Second release. C329-SPI User Manual

Application Note: 4D-AN-P4010 ViSi-Genie Connection to a Host with Red- Green-Blue LED Control

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 15 th October 2013 Document Revision: 1.7 DISTRIBUTED BY TEXIM EUROPE

µoled-96-g1(sgc) Serial OLED Display Module Data Sheet

DATASHEET. Embedded Audio-Sound Module SOMO-II. Document Date: 21 st March 2014 Document Revision: 1.1

DATASHEET. 4DPi-24-HAT. 2.4 Primary Display for the Raspberry Pi. In partnership with. Compatible with A+, B+ and Pi2

DATASHEET 4D SYSTEMS. Raspberry Pi Display Module Pack TURNING TECHNOLOGY INTO ART. Featuring a 2.8 Display Module ulcd-28-ptu-pi

Ethernet1 Xplained Pro

CMOS CAMERA MODULE JC418M-J01

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

TO OUR VALUED CUSTOMERS

4D SYSTEMS µoled-128-g1(sgc) Serial OLED Display Module Data Sheet

0.3 Mega Pixels Serial JPEG Camera with NTSC Video

Smart Card Bridge to Full-Speed USB, SPI, and UART Interfaces

VENUS_ Driving Board and 39.6 Prism Display

4D SYSTEMS µoled-160-g1(sgc) Serial OLED Display Module Data Sheet

Preliminary MK-CY-043. Data Sheet. Amulet Capacitive 4.3 GEMmodule. Introduction:

USER GUIDE. Workshop4 PRO SMART WIDGETS EDITOR. Document Revision: 1.1 Document Date: 29 th July 2017

RE866 Interface User Guide

GW-USB-06. User s Guide. IQRF USB Gateway. FW v MICRORISC s.r.o. User_Guide_GW-USB-06_ Page 1

XEELAS NODE MANUAL X-COM VERSION 1.0

CEC1702 clicker. a great idea is just a click away

ED1021 I/O Expander with UART interface & analog inputs

USER MANUAL. Workshop4 IDE USER GUIDE. Document Revision: 2.1 Document Date: 29 th July 2017

USER GUIDE. Atmel QT6 Xplained Pro. Preface

*X13186* Multimedia and Control Networking Technology. MOST Media Oriented Systems Transport. MediaLB Analyzer Hardware Manual

Terminal I/O Profile Client Implementation Guide

HMC1022 Digital Compass

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

AN10955 Full-duplex software UART for LPC111x and LPC13xx

VK5100-imx6 Development Platform Quick Start Guide

SKY LF: 20 MHz to 6.0 GHz GaAs SPDT Switch

TOSHIBA CMOS Digital Integrated Circuit Silicon Monolithic TC7SGU04FU IN A GND

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

Installing Your Microsoft Access Database (Manual Installation Instructions)

EDBG. Description. Programmers and Debuggers USER GUIDE

Sendyne SFP102MOD Precision Current Measurement Module

Input Voltage 3.3 V With/Without TSP Projected Capacitive Touch Panel / Weight g. Note 1: RoHS compliant. Note 2: LCM weight tolerance: ± 5%.

Table 1. RS232 Serial Adapter DEBUG Connector Pin Descriptions

4D SYSTEMS µlcd-32pt(sgc) 3.2 Serial LCD Display Module Data Sheet

USER GUIDE. ATWINC1500 Xplained Pro. Preface

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

DATASHEET. 4DPi Primary Display for the Raspberry Pi REVISION 2.0 HARDARE. Document Date: 28 th September 2015 Document Revision: 2.

4D SYSTEMS µoled-3202x-p1(sgc) Serial AMOLED Display Modules Data Sheet

74ABT General description. 2. Features and benefits. 3. Ordering information. Quad 2-input AND gate

RS232 Relay Board-R242. User Manual. Jan 2012 Doc-R242-UM-Rev1.0 iknowvations.in

TA75W393FU TA75W393FU. Dual Voltage Comparator. Features. Marking (Top View) Pin Connection (Top View)

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

ATtiny104 Xplained Nano. Preface. AVR 8-bit Microcontrollers USER GUIDE

BlueEva+S42M Evaluation Kit User Guide. 1VV Rev

M3H Group(2) Application Note Asynchronous Serial Communication Circuit (UART-C)

Transcription:

4D SYSTEMS µcam Serial JPEG Camera Module Document Date: 18th November 2011 Document Revision: 7.0 2011 4D Systems www.4dsystems.com.au Page 1 of 23

4D SYSTEMS µcam Serial JPEG Camera Module Description The ucam (microcam) 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 an OmniVision 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 or RS232) that is suitable for a direct connection to any host micro-controller UART or a PC system COM port. User commands are sent using a simple serial protocol that can instruct the camera to send low resolution (160x120 or 80x60) single frame raw images for a quick viewing or high resolution (640x480 or 320x240) JPEG images for storage or viewing. The ucam comes in a compact form factor with a built in lens and a 4-wire connector that provides easy access to both power and serial data. Features Small size, low cost and low powered camera module for embedded imaging applications. ucam-ttl: 3.3V DC Supply ucam-232: 5.0V DC Supply On-board EEPROM provides a commandbased interface to external host via TTL or RS- 232 serial link. UART: up to 1.2Mbps for transferring JPEG still pictures or raw images. On board OmniVision OV7640/8 VGA colour sensor and JPEG CODEC for different resolutions. Built-in down sampling, clamping and windowing circuits for VGA, QVGA, 160x120 or 80x60 image resolutions. Built-in colour conversion circuits for 2-bit gray, 4-bit gray, 8-bit gray, 12-bit RGB, 16-bit RGB or standard JPEG preview images. No external DRAM required. Applications General purpose embedded imaging and control Security systems, Access Control systems, Elevator and Remote monitoring. Robotics vision, object detection and recognition. Industrial control, automotive and medical systems. Smart home, video intercoms. 2011 4D Systems www.4dsystems.com.au Page 2 of 23

Table of Contents 1. Pin Configuration and Summary...5 2. Pin Description...6 3. Serial Interface - UART...6 3.1 Single Byte Timing...6 3.2 Command Sequence Timing...6 3.3 Auto-Baud Detect...7 3.4 Setting the Baud Rates...7 4. Command Set...8 4.1 INITIAL (AA01h)...8 4.1.1 Colour Type...8 4.1.2 RAW Resolution...9 4.1.3 JPEG Resolution...9 4.2 GET PICTURE (AA04h)...9 4.2.1 Picture Type...9 4.3 SNAPSHOT (AA05h)...9 4.3.1 Snapshot Type...9 4.3.2 Skip Frame Counter...9 4.4 SET PAGE SIZE (AA06h)...10 4.4.1 Package Size...10 4.5 SET BAUD RATE (AA07h)...10 4.5.1 Baud Rates...10 4.6 RESET (AA08h)...11 4.6.1 Reset Type...11 4.7 DATA (AA0Ah)...11 4.7.1 Data Type...11 4.7.2 Length...11 4.8 SYNC (AA0Dh)...11 4.9 (AA0Eh)...11 4.9.1 Command ID...11 4.9.2 Counter...11 4.9.3 Package ID...11 4.10 NAK (AA0Fh)...12 4.10.1 NAK Counter...12 4.10.2 Error Number...12 4.11 LIGHT (AA13h)...12 4.11.1 Light Frequency Type...12 5. Command Protocol...13 5.1 SYNC Command...13 5.2 Connecting to the ucam...14 5.3 INITIAL, GET PICTURE, SNAPSHOT, SET PAGE SIZE, RESET Commands...15 5.4 Taking SNAPSHOT Pictures...16 5.4.1 Example: JPEG Snapshot Picture (640 x 480 resolution)...16 5.4.2 Example: Snapshot Picture (160 x 120 resolution, 16bit colour, uncompressed/raw picture)...17 5.5 JPEG Preview Pictures (Video)...18 5.5.1 Example: JPEG Preview Picture (320 x 240 resolution)...18 5.5.2 Example: Preview Picture (80 x 60 resolution, 12bit colour, uncompressed/raw preview picture)...19 2011 4D Systems www.4dsystems.com.au Page 3 of 23

6. Development and Support Tools...20 6.1 microusb USB to Serial Bridge...20 6.2 Embedded Display Modules...20 6.3 Demo PC Software Tool...21 7. Specifications and Ratings...22 Proprietary Information...23 Disclaimer of Warranties & Limitation of Liability...23 Contact Information...23 2011 4D Systems www.4dsystems.com.au Page 4 of 23

1. Pin Configuration and Summary Pin Symbol I/O Description 2 VCC P 3 GND P Supply Ground. 4 TX O 5 RX I 1, 6, 7, 8 NC -- No Connect. Main Voltage Supply +ve input pin. ucam-ttl : 3.0V to 3.6V DC range nominal 3.3V. UCAM-232 : 4.5V to 5.5V DC range, nominal 5.0V. Asynchronous Serial Transmit pin. Connect this pin to host controller Serial Receive (Rx) signal. The host receives data from ucam via this pin. Asynchronous Serial Receive pin. Connect this pin to host controller Serial Transmit (Tx) signal. The host transmits commands to the ucam via this pin. 2011 4D Systems www.4dsystems.com.au Page 5 of 23

2. Pin Description VCC pin 2 (ucam Supply Voltage Input): Module supply voltage input pin. This pin must be connected to a regulated supply voltage. ucam-ttl : 3.0V to 3.6V DC range, nominal 3.3V. ucam-232 : 4.5V to 5.5V DC range, nominal 5.0V. GND pin 3 (ucam Ground): Module ground pin. This pin must be connected to ground. TX pin 4 (Serial Transmit): Asynchronous Serial port Transmit pin, TX. Connect this pin to host Serial Receive (Rx) signal. The host receives data from the ucam module via this pin. RX pin 5 (Serial Receive): Asynchronous Serial port Receive pin, RX. Connect this pin to host Serial Transmit (Tx) signal. The host transmits data to the ucam via this pin. 3. Serial Interface - UART The ucam has a dedicated hardware UART that can communicate with a host via this serial port. This is the main interface used by the host to communicate with the module to send commands and receive back data. The primary features are: Full-Duplex 8 bit data transmission and reception through the TX and RX pins. Data format: 8 bits, No Parity, 1 Stop bit. Auto detect Baud rates from 14400 baud up to 115200 baud. Selectable Baud rates up to 1228800 bps. The ucam is available in 2 models that offer different versions of its serial interface. The ucam-ttl has low voltage serial TTL levels which can be directly interfaced to a micro-controller and the ucam-232 has a RS-232 voltage transceiver that can be interfaced to any host system COM port such as a PC. 3.1 Single Byte Timing A single byte serial transmission consists of the start bit, 8-bits of data followed by the stop bit. The start bit is always 0, while a stop bit is always 1. The LSB (Least Significant Bit, Bit 0) is sent out first following the start bit. Figure 3.1 shows a single byte transmission timing diagram. Figure 3.1: Single Byte Timing Diagram 3.2 Command Sequence Timing A single command consists of 6 continuous single byte serial transmissions. The following Figure 3.2 shows an example of the SYNC (AA0D00000000h) command. 2011 4D Systems www.4dsystems.com.au Page 6 of 23

Figure 3.2: SYNC Command Timing Diagram 3.3 Auto-Baud Detect The module can auto-detect the baud rate of the incoming command. The host should make connection with one of the following baud rates: 14400 bps 56000 bps 57600 bps 115200 bps The module will keep using the last baud rate until the next power cycle. 3.4 Setting the Baud Rates You can set Baud rates using the Set Baud command. Baud rate = 14.7456MHz / 2 x (2 nd Divider + 1) / 2 x (1 st Divider + 1) The maximum Baud rate you can get is 1228800, which is achieved by following two combinations, 1 st Divider = 0 2 nd Divider = 2 Or 1 st Divider = 2 2 nd Divider = 0 Note: Baud rate changes holds until full reset command is sent or Power cycle occurs. So, you can synchronise at last used Baud rate or any of the Auto-detect Baud rate. 2011 4D Systems www.4dsystems.com.au Page 7 of 23

4. Command Set The ucam module supports a total of 10 commands: Command ID Number Parameter1 Parameter2 Parameter3 Parameter4 INITIAL AA01h 00h Colour Type RAW Resolution (Still Image only) JPEG Resolution GET PICTURE AA04h Picture Type 00h 00h 00h SNAPSHOT AA05h Snapshot Type SET PAGE SIZE AA06h 08h Skip Frame (Low Byte) Package Size (Low Byte) Skip Frame (High Byte) Package Size (High Byte) Set Baud Rate AA07h 1 st Divider 2 nd Divider 00h 00h RESET AA08h Reset Type 00h 00h XXh* DATA AA0Ah Data Type Length Byte 0 Length Byte 1 Length Byte 2 SYNC AA0Dh 00h 00h 00h 00h AA0Eh Command ID Counter 00h / Package ID Byte 0 00h 00h 00h / Package ID Byte 1 NAK AA0Fh 00h NAK Counter Error Number 00h LIGHT AA13h Frequency Type 00h 00h 00h *If the parameter is 0xFF, the command is a special Reset command and the module responds to it immediately. 4.1 INITIAL (AA01h) The host issues this command to configure the preview image size and colour type. After receiving this command, the module will send out an command to the host if the configuration was successful. Otherwise, a NAK command will be sent out. 4.1.1 Colour Type The ucam can support 7 different colour types as follow: 2-bit Gray Scale (RAW, 2-bit for Y only) 4-bit Gray Scale (RAW, 4-bit for Y only) 8-bit Gray Scale (RAW, 8-bit for Y only) 8-bit Colour (RAW, 332(RGB)) 12-bit Colour (RAW, 444(RGB)) 16-bit Colour (RAW, 565(RGB)) JPEG 01h 02h 03h 04h 05h 06h 07h 2011 4D Systems www.4dsystems.com.au Page 8 of 23

4.1.2 RAW Resolution 80 x 60 01h 160 x 120 03h 320 x 240 05h 640 x 480 07h 128 x 128 09h 128 x 96 0Bh 4.1.3 JPEG Resolution The ucam embedded JPEG Code can support only multiples of 16 pixels, therefore the JPEG preview mode can only support following image sizes. It is different from the RAW preview mode. 80 x 64 01h 160 x 128 03h 320 x 240 05h 640 x 480 07h 4.2 GET PICTURE (AA04h) The host issues this command to request a picture from the ucam. 4.2.1 Picture Type Snapshot Picture Preview (RAW) Picture JPEG Picture 01h 02h 05h 4.3 SNAPSHOT (AA05h) The ucam will hold a single frame of still picture data in its buffer after receiving this command. 4.3.1 Snapshot Type Compressed Picture (JPEG) 00h Uncompressed Picture (RAW) 01h 4.3.2 Skip Frame Counter The number of dropped frames can be defined before capture occurs. 0 keeps the current frame, 1 captures the next frame, and so on. 2011 4D Systems www.4dsystems.com.au Page 9 of 23

4.4 SET PAGE SIZE (AA06h) The host issues this command to change the size of the data package which is used to transmit the compressed JPEG image data from the ucam to the host. This command should be issued before sending SNAPSHOT or GET PICTURE commands to the ucam. Note: The size of the last package varies for different JPEG image sizes. 4.4.1 Package Size The default size is 64 bytes and the maximum size is 512 bytes. ID : Package ID, starts from zero for an image Data Size : Size of image data in the package Verify Code : Error detection code, equals to the lower byte of sum of the whole package data except the verify code field. The higher byte of this code is always zero. i.e. verify code = lowbyte(sum(byte[0] to byte[n-2])) Note1: Once the host receives the image size from the ucam, the following simple equation can be used to calculate the number of packages that will be received according to the package size set. The package settings only apply for compressed JPEG images. Number of packages = Image size / (Package size 6) Note2: As the transmission of an uncompressed (RAW) image does not require the package mode, it is not necessary to set the package size for an uncompressed image. All of the pixel data for the RAW image will be sent continuously until completion. Note3: Package size must not be odd or multiple of 16 4.5 SET BAUD RATE (AA07h) The host can set the Baud rates using this command. There could be several different combinations the two divisors can be set to achieve a particular baud rate. Say, to achieve 921600 you can set 1st divider 01h, 2nd divider 01h OR 1st divider 00h, 2nd divider 03h OR 1st divider 03h, 2nd divider 00h 4.5.1 Baud Rates Baud Rate (bps) 7200 9600 14400... 737280 921600 1228800 1 st Divider(Hex) FFh BFh 7Fh... 00h 03h 02h 2 nd Divider(Hex) 01h 01h 01h... 04h 00h 00h 2011 4D Systems www.4dsystems.com.au Page 10 of 23

4.6 RESET (AA08h) The host can reset the ucam by issuing this command. 4.6.1 Reset Type 00h Resets the whole system. The ucam will reboot and reset all registers and state machines. 01h Resets the state machines only. 4.7 DATA (AA0Ah) The ucam issues this command to inform the host the type and the size of the image data which is ready for transmitting to the host. 4.7.1 Data Type Snapshot Picture Preview (RAW) Picture JPEG Preview Picture 01h 02h 05h 4.7.2 Length These three bytes represent the length of data of the Picture that is ready for transmission back to the host. 4.8 SYNC (AA0Dh) Either the host or the ucam module can issue this command to make a connection. The command must be sent out after receiving this command. Refer to Section 5.2 for more details. 4.9 (AA0Eh) This command indicates the success of the last operation. After receiving any valid command, the command must be sent out except when getting preview data. The host can issue this command to request image data package with the desired package ID after receiving the DATA command from the ucam. The host should send this command with package ID F0F0h after receiving a package to end the package transfer. Note: the field command ID should be 00h when request is for image data package. 4.9.1 Command ID The command with that ID is acknowledged by this command. 4.9.2 Counter For debug only. 4.9.3 Package ID For acknowledging the DATA command, these two bytes represent the requested package ID. For acknowledging other commands, these two bytes are set to 00h. 2011 4D Systems www.4dsystems.com.au Page 11 of 23

4.10 NAK (AA0Fh) This command indicates corrupted transmission or unsupported features. 4.10.1 NAK Counter For debug only. 4.10.2 Error Number Picture Type Error 01h Parameter Error 0Bh Picture Up Scale 02h Send Register Timeout 0Ch Picture Scale Error 03h Command ID Error 0Dh Unexpected Reply 04h Picture Not Ready 0Fh Send Picture Timeout 05h Transfer Package Number Error 10h Unexpected Command 06h Set Transfer Package Size Wrong 11h SRAM JPEG Type Error 07h Command Header Error F0h SRAM JPEG Size Error 08h Command Length Error F1h Picture Format Error 09h Send Picture Error F5h Picture Size Error 0Ah Send Command Error FFh 4.11 LIGHT (AA13h) The host issues this command to change the light frequency (hum) response of the ucam. 4.11.1 Light Frequency Type 50Hz 00h 60Hz 01h 2011 4D Systems www.4dsystems.com.au Page 12 of 23

5. Command Protocol This section outlines command usage and protocol transaction between the host and the ucam module. 5.1 SYNC Command HOST ucam SYNC (AA 0D 00 00 00 00) (AA 0E 0D xx 00 00) SYNC (AA 0D 00 00 00 00) (AA 0E 0D xx 00 00) 2011 4D Systems www.4dsystems.com.au Page 13 of 23

5.2 Connecting to the ucam Send the SYNC command until receiving the command from ucam (usually an command is received after sending the SYNC command 25 times). This must be performed following a power-up. SYNC (AA 0D 00 00 00 00) SYNC (AA 0D 00 00 00 00) : : SYNC (AA 0D 00 00 00 00) (AA 0E 0D xx 00 00) Max. 60 times (AA 0E 0D xx 00 00) SYNC (AA 0D 00 00 00 00) Note1: The host should send the SYNC command one by one continuously until receiving the and SYNC commands back from the ucam module. Sometimes up to 25 to 60 SYNC commands maybe required before the module will respond. After receiving the response, the host should reply with the command to finalise the synchronisation process. Note2: After synchronising and establishing a communications link with the ucam, allow up to 1-2 seconds before capturing the first image. The ucam needs this time to allow its AGC and AEC circuits to stabilise, otherwise the received image luminance maybe too high or too low. 2011 4D Systems www.4dsystems.com.au Page 14 of 23

5.3 INITIAL, GET PICTURE, SNAPSHOT, SET PAGE SIZE, RESET Commands INITIAL, GET PICTURE, SNAPSHOT, SET PAGE SIZE, RESET 2011 4D Systems www.4dsystems.com.au Page 15 of 23

5.4 Taking SNAPSHOT Pictures Make sure a connection is established first (Section 5.2 Connecting to the ucam) before using the following communications. 5.4.1 Example: JPEG Snapshot Picture (640 x 480 resolution) INITIAL JPEG preview, VGA (AA 01 00 07 07 07) SET PAGE SIZE 512 Bytes (AA 06 08 00 02 00) SNAPSHOT Compressed picture (AA 05 00 00 00 00) GET PICTURE Snapshot picture (AA 04 01 00 00 00) Package ID: 0000h (AA 0E 00 00 00 00) Package ID: 0001h (AA 0E 00 00 01 00) * Package ID: F0F0h (AA 0E 00 00 F0 F0) : : (AA 0E 01 xx 00 00) (AA 0E 06 xx 00 00) (AA 0E 05 xx 00 00) (AA 0E 04 xx 00 00) DATA Snapshot picture (AA 0A 01 ~~ ~~ ~~) Image Data Package 512 bytes, ID: 0000h Image Data Package 512 bytes, ID: 0001h Last Image Data Package 2011 4D Systems www.4dsystems.com.au Page 16 of 23

Note: xx : Don't care ~~ : Image size returned by ucam * : Due to a bug in the ucam firmware, if the last package is the same size as the package size, then rather than send an a reset command should be sent with the 'Special Reset' and 'Reset State machines only' options set. Note that you may need to pause for a couple of milliseconds before sending this reset, to ensure it is accepted. 5.4.2 Example: Snapshot Picture (160 x 120 resolution, 16bit colour, uncompressed/raw picture) INITIAL preview, VGA (AA 01 00 06 03 zz) SNAPSHOT uncompressed picture (AA 05 01 00 00 00) GET PICTURE Snapshot picture (AA 04 01 00 00 00) (AA 0E 01 xx 00 00) (AA 0E 05 xx 00 00) (AA 0E 04 xx 00 00) DATA snapshot picture (AA 0A 01 ~~ ~~ ~~) (AA 0E 0A xx 01 00) Image Data complete picture Note: xx : Don't care zz : 01, 03, 05 or 07. Don't care in RAW mode ~~ : Image size returned by ucam 2011 4D Systems www.4dsystems.com.au Page 17 of 23

5.5 JPEG Preview Pictures (Video) Make sure a connection is established first (Section 5.2 Connecting to the ucam) before using the following communications. 5.5.1 Example: JPEG Preview Picture (320 x 240 resolution) INITIAL JPEG preview, VGA (AA 01 00 07 yy 05) SET PAGE SIZE 512 Bytes (AA 06 08 00 02 00) GET PICTURE JPEG preview picture (AA 04 05 00 00 00) (AA 0E 01 xx 00 00) (AA 0E 06 xx 00 00) (AA 0E 04 xx 00 00) Package ID: 0000h (AA 0E 00 00 00 00) DATA JPEG preview picture (AA 0A 05 ~~ ~~ ~~) Package ID: 0001h (AA 0E 00 00 01 00) * Package ID: F0F0h (AA 0E 00 00 F0 F0) : : Image Data Package 512 bytes, ID: 0000h Image Data Package 512 bytes, ID: 0001h Last Image Data Package 1 FRAME 2011 4D Systems www.4dsystems.com.au Page 18 of 23

Note: xx : Don't care yy : 01 or 03. Don't care in JPEG mode ~~ : Image size returned by ucam * : Due to a bug in the ucam firmware, if the last package is the same size as the package size, then rather than send an a reset command should be sent with the 'Special Reset' and 'Reset State machines only' options set. Note that you may need to pause for a couple of milliseconds before sending this reset, to ensure it is accepted. 5.5.2 Example: Preview Picture (80 x 60 resolution, 12bit colour, uncompressed/raw preview picture) INITIAL preview, VGA (AA 01 00 05 01 zz) GET PICTURE Preview picture (AA 04 02 00 00 00) (AA 0E 01 xx 00 00) (AA 0E 04 xx 00 00) DATA preview picture (AA 0A 02 ~~ ~~ ~~) 1 FRAME Image Data complete picture (AA 0E 0A xx 00 00) Note: xx : Don't care zz : 01, 03, 05 or 07. Don't care in RAW mode ~~ : Image size returned by ucam 2011 4D Systems www.4dsystems.com.au Page 19 of 23

6. Development and Support Tools 6.1 microusb USB to Serial Bridge The micro-usb module is a USB to Serial bridge adaptor that provides a convenient physical link between the PC and any embedded serial device. A range of custom made micro-usb devices such as the uusb-mb5 and the uusb-ce5 are available from 4D Systems (must be purchased separately). The micro-usb module provides power and a serial interface (TTL levels) directly to the ucam- TTL module that can be used with the demo software. 6.2 Embedded Display Modules The following display modules, available from 4D Systems, are ideal for many embedded applications with the ucam-ttl camera. uoled-96-g1(gfx): 0.96, 96x64, 65K colour 4DGL Platform OLED module uusb-ce5 uusb-mb5 uoled-128-g1(gfx): 1.5, 128x128, 65K colour 4DGL Platform OLED module uoled-160-g1(gfx): 1.7, 160x128, 65K colour 4DGL Platform OLED module 2011 4D Systems www.4dsystems.com.au Page 20 of 23

6.3 Demo PC Software Tool Demo software is available for Windows based PC systems to test the ucam. uoled-32028-p1(t): 2.8, 240x320, 65K colour 4DGL Platform AMOLED module Following diagrams show how to connect the ucam-ttl and ucam-232 to a PC to use with the test software. ulcd-32032-p1t: 3.2, 240x320, 65K colour 4DGL Platform TFT module 2011 4D Systems www.4dsystems.com.au Page 21 of 23

7. Specifications and Ratings Recommended Operating Conditions Parameter Conditions Min Typ Max Units ucam-232 Supply Voltage (VCC) 4.5 5.0 5.5 V Input Voltage Range RX pin -25 -- 25 V ucam-ttl Supply Voltage (VCC) 3.0 3.3 3.6 V Input Voltage Range RX pin GND -- VCC V ucam-232, ucam-ttl Operational Delay After Synchronising 1000 2000 -- ms Operating Ambient Temperature -15 +70 C Storage Temperature RH 95% max. -40 +85 C Global Characteristics based on Operating Conditions Parameter Conditions Min Typ Max Units ucam-232 Supply Current (ICC) VCC = 5.0V 60 64 80 ma Output Voltage Range TX pin -5.0 -- 5.0 V ucam-ttl Supply Current (ICC) VCC = 3.3V 58 62 76 ma Output Voltage Range TX pin GND -- 2.4 V Optical Characteristics Item Image Sensor Pixel Size SNR Dynamic Range White Balance Exposure Lens viewing angle(3 options) Parameter 1/4 OmniVision CMOS, 300K pixels 5.6um x 5.6um 45dB 60dB Automatic Automatic, self regulating, 1/50(1/60) 1/100,000(sec) 60 degrees, 90 degrees, 120 degrees Ordering Information Order Code: ucam-ttl (Shipped with 120 degree angle lens) ucam-232 (Shipped with 120 degree angle lens) Package: 150mm x 95mm (ZIF Bag dimensions). Note: 60 degree and 90 degree lenses are provided on request. 2011 4D Systems www.4dsystems.com.au Page 22 of 23

Proprietary Information The information contained in this document is the property of 4D Systems Pty. Ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed with out prior written permission. 4D Systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission. The development of 4D Systems products and services is continuous and published information may not be up to date. It is important to check the current position with 4D Systems. All trademarks belong to their respective owners and are recognised and acknowledged. Disclaimer of Warranties & Limitation of Liability 4D Systems makes no warranty, either express or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, noninfringement and fitness for any particular purpose. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided or to be provided by 4D Systems, or the use or inability to use the same, even if 4D Systems has been advised of the possibility of such damages. 4D Systems products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage ( High Risk Activities ). 4D Systems and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. Use of 4D Systems products and devices in 'High Risk Activities' and in any other application is entirely at the buyer s risk, and the buyer agrees to defend, indemnify and hold harmless 4D Systems from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any 4D Systems intellectual property rights. Contact Information For Technical Support : support@4dsystems.com.au For Sales Support : sales@4dsystems.com.au Website : www.4dsystems.com.au Copyright 4D Systems Pty. Ltd. 2000-2011. 2011 4D Systems www.4dsystems.com.au Page 23 of 23