Recent changes
Slingshot user guide
tag Guide, user
NFCLamp user guide
tag Guide, user
Homepage
MPL115A2
Compiler Error 42
From the mbed microcontroller Cookbook.  

CameraC328

Overview

CameraC328 class is a camera driver for COMedia JPEG color camera module named C328.

http://mbed.org/media/uploads/shintamainjp/_scaled_c328.png

The picture from SparkFun. http://www.sparkfun.com/commerce/product_info.php?products_id=9334

DataSheet

http://www.sparkfun.com/datasheets/Sensors/Imaging/C328.pdf

Connection

Here is the connection of the sample program.

You can change the PinName at the constructor.

mbedC328
p9(TX)RxD
p10(RX)TxD

http://mbed.org/media/uploads/shintamainjp/_scaled_ca390158.jpg

Library and the test program

API

» Import this library into a program

Public Types

enum ColorType

Color type.

More...
enum RawResolution

Raw resolution.

More...
enum JpegResolution

JPEG resolution.

More...
enum ErrorNumber

Error number.

More...
enum PictureType

Picture type.

More...
enum SnapshotType

Snapshot type.

More...
enum Baud

Baud rate.

More...
enum ResetType

Reset type.

More...
enum DataType

Data type.

More...

Public Member Functions

CameraC328 (PinName tx, PinName rx, Baud baud=Baud19200)
Constructor.
~CameraC328 ()
Destructor.
ErrorNumber sync ()
Make a sync.
ErrorNumber init ( ColorType ct, RawResolution rr, JpegResolution jr)
Initialize.
ErrorNumber getUncompressedSnapshotPicture (void(*func)(size_t done, size_t total, char c))
Get uncompressed snapshot picture.
ErrorNumber getUncompressedPreviewPicture (void(*func)(size_t done, size_t total, char c))
Get uncompressed preview picture.
ErrorNumber getJpegSnapshotPicture (void(*func)(char *buf, size_t siz))
Get JPEG snapshot picture.
ErrorNumber getJpegPreviewPicture (void(*func)(char *buf, size_t siz))
Get JPEG preview picture.

Library

Test program

» Import this programCameraC328_TestProgram

A test program for CameraC328 library.




calendar Page history
Last modified 17 Sep 2010, by   user Shinichiro Nakamura   tag camera, JPEG, Serial, sparkfun | 5 comments  

5 comments on CameraC328:

06 Oct 2010

can i use dis cam module n mbed for video image processing ?

15 Nov 2010

user Chinmay Das wrote:

can i use dis cam module n mbed for video image processing ?

Hardly, as the camera embeds a JPEG engine and delivers compressed images. For image processing you want raw, uncompressed, data...

15 Nov 2010

user Jean-Paul Buu-Sao wrote:

user Chinmay Das wrote:

can i use dis cam module n mbed for video image processing ?

Hardly, as the camera embeds a JPEG engine and delivers compressed images. For image processing you want raw, uncompressed, data...

Oops, the camera & firmware are capable of delivering raw data, which is more suitable for image processing. But a 640x480 image in 256 gray requires 300KB of space. This is about 5 times the amount of RAM on the chip...

20 Nov 2010

user Jean-Paul Buu-Sao wrote:

user Jean-Paul Buu-Sao wrote:

user Chinmay Das wrote:

can i use dis cam module n mbed for video image processing ?

Hardly, as the camera embeds a JPEG engine and delivers compressed images. For image processing you want raw, uncompressed, data...

Oops, the camera & firmware are capable of delivering raw data, which is more suitable for image processing. But a 640x480 image in 256 gray requires 300KB of space. This is about 5 times the amount of RAM on the chip...

Hi,

4D Systems' uCAM can probably do the job. It has options for lower resolution, for raw & jpeg formats. It works over serial.

Here are some links: http://www.4dsystems.com.au/prod.php?id=75 http://www.youtube.com/watch?v=oGO1Uj8k1ao

However you might need to write a new library for this...

Hope this helps. Regards, Anna.

05 Jul 2011

For those that don't know this already, this camera module has been out of production since approximately the beginning of this year. Comedia makes a newer, similar model (the C329), but it costs about 60-70% more than the $US$50 C328 that it replaces.

In addition to the 4D camera mentioned above, there is another camera from LinkSprite that is in the same price-range (US$50) as the C328, and SparkFun, among others, carries this camera. Yet another camera called the C429 is available from Saelig. There are also at least two other camera modules available from Chinese sellers on eBay, and while cheaper, they are less well documented.

At a higher price level ($150-200?), there's the 2-3 versions of the CMUCam to consider.

I would expect that all but the C329 would require a completely different library than this one.

Please login to post comments.