This is a test program for Camera Module(C328, LJ-DSC02)

Dependencies:   CameraC328 SDFileSystem mbed-src

Fork of Camera_TestProgram_2015 by Ricky Kwon

Prerequisite

This example stores the image data acquired from the camera on a micro sd card.

To implement this function, you need a Platform board, camera module.

Available camera modules are C328, LJ-DSC02. Because the cameras listed above all have similar internal protocols.

This example uses LJ-DSC02.

  • WIZwiki-W7500 from WIZnet (Platform board)
  • LJ-DSC02 (Camera module)
  • Micro SD Card

Hardware Configuration

/media/uploads/Ricky_Kwon/camera.png

  • connect Camera module

Software

Init resolution and frame of image

#define USE_JPEG_HIGH_RESOLUTION  1
static const int CAPTURE_FRAMES = 1;

Revision:
3:92e4afa57824
Parent:
2:09815843204c
--- a/main.cpp	Tue Jul 21 16:22:03 2015 +0000
+++ b/main.cpp	Wed Apr 12 07:16:36 2017 +0000
@@ -33,7 +33,7 @@
 #else
 LocalFileSystem fs("fs");
 #endif
-CameraC328 camera(PA_14, PA_13, CameraC328::Baud115200);
+CameraC328 camera(PA_13, PA_14, CameraC328::Baud115200);
 
 /**
  * A callback function for jpeg images.