Interfacing CMOS Camera With ATMega
Interfacing CMOS Camera With ATMega
Interfacing CMOS Camera With ATMega
MICROCONTROLLER
Abstract
A small low power VGA camera module C328 can perform as a JPEG compressed still camera and can be
attached to a microcontroller, PC, wireless or PDA host, etc. This paper introduces the C328 CMOS camera
interface with a low power CMOS 8 bit ATMega32L microcontroller based on AVR enhanced RISC
architecture. The ATMega32L executes powerful instruction in single clock cycle and achieves throughputs
approaching 1MIPS per MHz that allows designing the system with optimum power consumption versus
processing speed. The camera module C328 was serially interfaced with microcontroller, and the lowest
resolution JPEG image (80x64) compression mode was made for the analysis of packet of image data in hex
format. It was specifically designed for the cost effective embedded vision system that can be used in robot,
security, monitoring etc.
Keywords: Camera, Embedded system, Microcontroller, Hex format
· Initial Cmd: Color Type = 07h = JPEG, JPEG of above picture from camera for 80x64 resolutions
Resolution = 01h = 80x64 was as follows:
· Get Picture Cmd: Picture Type = 01h = JPEG
· Snapshot Cmd: Snapshot Type = 00h = 3. Packet information
Compressed After initializing the camera JPEG snap shot picture
· Package Size Cmd: Leave as it is for Default command AA 04 01 00 00 00 was sent and the
= 64 bytes camera acknowledged by the command AA 0E 04
· Data Cmd: Data Type = 01h = Snapshot Picture
Fig.3. Snap shot of HEX data format (Left) and ASCII format (Right) of Microcontroller.jpg (80x64) in Hex
Editor Software, showing starting JPEG format FF D8.
[9] Hex Editor Neo (2010) “Free Serial Port Monitor” Version
[3] Gaddam, S., (2007) “Intelligent Machine Design
4.81, UK: HDD Software Ltd. http://
Lab”USA: University of Florida.
www.hhdsoftware.com/serial-monitor
[4] ATMega32L (2006) “Datasheet of Atmel 8-bit AVR RISC-
based Microcontroller” USA: Atmel corporation. [10] JPEG (2009) “Joint Photographic Experts Group, JPEG
www.atmel.com/avr Homepage” UK: ISO/ISE Joint Technical Committee.
http://www.jpeg.org/jpeg/index.html