ESP32_CamToLCD icon indicating copy to clipboard operation
ESP32_CamToLCD copied to clipboard

Unable to recreate project using the instruction because librarys updated since project created

Open Sentinel8000 opened this issue 1 year ago • 0 comments

I try recreate this project with a different/current avaiable ov7670 camera, but first i have stuck wire library wont have reset command, also camera looks working without any impadance.

This project will be great, because with this camera we can get better FPS on a prallel TFT, but we cant attach a parallel TFT to a new esp32-cam board.

Currently this ov7670 l2s camera looks outdated, currently anybody using the esp32-cam, but esp32-cam less pins - unable to attach faster 8 bit parallel display.

This is the ov7670 what currently avaible localy, have only 8 data pin:

kamera-ov7670-kameramodul-tamogatja-a-vga-cif-automatikus-expozicio-vezerlo-kijelzo-aktiv-meretet-640x480-az-arduino

I have used these pins to connect camera with esp32 and i can get hpwever slow, but working picture:

OV7670 pin | ESP32 pin

3.3V | 3.3V GND | GND SCL | D22 SDA | D21 VS | D34 HS | D35 PCLK | D33 MCLK | D32 D7 | D4 D6 | D12 D5 | D13 D4 | D14 D3 | D15 D2 | RX2 D1 | TX2 D0 | D27 RESET | - PWDN | -

I have this type cheap NodeMCU board:

ESP32-pinout

For parallel display i have used a larger 3.5" parallel ili9486 / uno tft shield:

lcd-tft-35-ili9341-1

I know this is larger, but i think maybe witk smaller picture, will work.

i have used these pins - i gived a try maybe the included minimal LCD library can handle. Used pins:

#define TFT_DC 9 // (LCD_RS on my display) #define TFT_CS 33
#define TFT_RST 10 #define TFT_RD 36 #define TFT_WR 2

#define TFT_D0 3
#define TFT_D1 1 #define TFT_D2 23 #define TFT_D3 26 #define TFT_D4 25 #define TFT_D5 19 #define TFT_D6 0 #define TFT_D7 18

I have not used any resistor, both display and camera worked standalone well.

After connected all pin, Esp32 looks have trouble handle everything from single USB so i cant upload code, just if im remove 5V/3.3V, i can upload code.

probelm with compile:

Because wire library currently wont have this manual reset function, i have commented out - i have no better idea.

I need also add timer_conf.clk_cfg = LEDC_USE_APB_CLK; line to CAM_OV7670.h after i can compile the code, but i still have trouble with VSYNC function:

On Serial monitor i got random

VSYNC never went low; VSYNC never went high

Messages, these also i have commented out, after i saw a estimated FPS, i think im close.., but after connect tft, completted build unable to start.

I think there is lot problem: aged librarys, different / larger TFT, maybe bad used pins.

Maybe this code need full remake, but im sure after 4 years this is a impossible mission.

Sentinel8000 avatar Oct 31 '22 10:10 Sentinel8000