Tested on Nucleo F411RE Based on OV7670 without FIFO, SCCB protocol rewritten. View on TFT ILI9341, possible capture picture on sd Around 3 frames per second Basic image treatment: zoom, rotation, etc Very basic pattern recognition, pattern being stored on SD, after camera capture, or from .bmp file (rgb 565, 120x160 max)

Dependencies:   FastPWM SDFileSystem SPI_TFT_ILI9341 TFT_fonts imagetrlib mbed ov7670s

Dependents:   Practica4_Camara

Files at this revision

API Documentation at this revision

Comitter:
sylvainkritter
Date:
Tue Feb 16 14:44:01 2016 +0000
Parent:
0:39c9f3b49f5a
Child:
2:7e06db0773c1
Commit message:
clean up

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
ov7670s.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Feb 16 14:28:55 2016 +0000
+++ b/main.cpp	Tue Feb 16 14:44:01 2016 +0000
@@ -14,7 +14,7 @@
 #define PB6     PB_6 // cs TFT
 #define PA11     PA_11 // reset TFT pc7
 
-#define PCLK    PC_10 //camera Pixel clock PB13
+#define PCLK    PC_10 //camera Pixel clock 
 #define HREF    PC_11 //camera Href
 #define VSYNC   PC_12 // camera Vsync
 #define I2C_D   PB_3 // Camera SCCB port data
@@ -40,10 +40,6 @@
 #define PD2 PD_2 /: CS SD
 
 
-#define VGA     307200         //640*480
-#define QVGA    76800          //320*240
-#define QQVGA   19200          //160*120
-
 
 DigitalOut myled(LED1);
 InterruptIn my_button(USER_BUTTON);
@@ -56,18 +52,19 @@
 
 int mask =0x1FFC;
 
+#define QQVGA   19200          //160*120
 
 Serial pc(USBTX,USBRX);
 //camera
 OV7670 OV7670(I2C_D,I2C_CLK,XCLK,PortC,mask,RESET);
+// 4.7 Kohm pull up on I2C_D
 
 // the TFT is connected to SPI pin
 SPI_TFT_ILI9341 TFT(MOSITFT, MISOTFT, SCTFT, PB6, PA11, PA9,"TFT"); // mosi, miso, sclk, cs, reset, dc
 // LED on 3.3V with 1Kohm
 
 SDFileSystem sd(MOSD, MISD, SCSD, PD_2, "sd",NC,SDFileSystem::SWITCH_NONE,2500000); // mosi, miso, sclk, cs, cd unused, switchtype, speed spi
-// image transformation
-//imagetr imagetr;
+
 
 char desfile[25];
 char patfile[25];
--- a/ov7670s.lib	Tue Feb 16 14:28:55 2016 +0000
+++ b/ov7670s.lib	Tue Feb 16 14:44:01 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/sylvainkritter/code/ov7670s/#2530e24fafa1
+https://developer.mbed.org/users/sylvainkritter/code/ov7670s/#6fde2d3aea7b