Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Unable to see the test pattern on the serial monitor #55

Open
James-sjec opened this issue Nov 22, 2017 · 10 comments
Open

Unable to see the test pattern on the serial monitor #55

James-sjec opened this issue Nov 22, 2017 · 10 comments

Comments

@James-sjec
Copy link

I get the following error on screen :
apc - 2017 11 22 12 07 - 001 3d

@James-sjec
Copy link
Author

And how to Open and View the get , pgm and x-portable-graymap files

@igrr
Copy link
Owner

igrr commented Nov 23, 2017

Hmm, it seems that the documentation has fallen out of date with respect to the code.
The demo no longer prints ASCII art output on the console, instead it starts up a web server, and you can see images in web browser (URLs are printed at startup).

I suggest setting log level to the default one (INFO), you seem to have set it to VERBOSE. It seems that when log from ISR is enabled, the application can not keep up with the timing of the frame, which eventually causes lines to be dropped.

@James-sjec
Copy link
Author

Thank you Sir!
I changed log level to INFO mode , and the above issue was solved.

I (5339) camera_demo: Camera demo ready
I (5349) camera_demo: open http://192.168.1.30/get for single frame
I (5349) camera_demo: open http://192.168.1.30/pgm for a single image/x-portable-graymap image

I typed in the browser as "http://192.168.1.30/pgm" . A file named 'pgm' got downloaded I added .pgm extension and the image I got the following image :

pgm

I typed in the browser as "http://192.168.1.30/get" . A file named 'get' got downloaded I added .pgm extension and tried opening it , Image viewers says unsupported format . The same goes to http://192.168.1.30//x-portable-graymap

how to open and view these files , and please help me in capturing the images.

I use ESP-WROOM-32 DEVKITV1 development board and OV7725 camera.
And tried enabling test pattern i am getting the same result.

@igrr
Copy link
Owner

igrr commented Nov 24, 2017 via email

@jfbrazeau
Copy link

jfbrazeau commented Jan 27, 2018

Hello,

Thank you for this great esp32-cam-demo sample. I have bought a OV7725 camera and I tried to use it with an ESP32 using this demo.

By default in PGM mode, I get something like this :
capture

If I set CONFIG_ENABLE_TEST_PATTERN parameter to y, I get something like this :
capture-2

To answer one of your question below, I don't think that the wires are too long as you can see (but if you think it's too long let me know !) :
img_8607b
Note : I've chosen the Alternate ESP32 Pin Mapping that you describe here (and I have checked the gpio pins connection several times... so that I am almost sure that everything is rightly connected, except the 2.2uF capacitor connected between GND and EN as I understood that the problem is for windows users, and I use a mac ; let me know if I'm wrong).

I tried to set the clock frequency to 4 Mhz, as you mentioned, but it leads to the following error (SCCB interface communication problem) :
screen shot 2018-01-27 at 22 03 41

I saw here that the minimum clock frequency is 10 Mhz ? So I used 10 Mhz, and the result is intersting because it seems that the result is linked to the clock frequency value (still with CONFIG_ENABLE_TEST_PATTERN enabled) ; with 10 Mhz :
capture-3

The result changes if I increase the clock frequency, but for a given frequency, I almost get the same result each time I call the HTTP URL. For example, with 14 Mhz :
capture-13

I saw that you talked about "serious noise" on the lines. Do you think it is really a problem of noise ? I thought that with a problem of noise, the "vertical shaded bars" of the "test pattern mode" should be at the right position and erroneous dots would appear randomly. Here it looks like the test pattern is there but shifted in a manner that is linked to the clock frequency.

Thank you in advance if you find a little time to give me your opinion about this issue...

Note : same issue in BMP mode (RGB565 / QQVGA) :
capture

@krzychb
Copy link
Collaborator

krzychb commented Jan 27, 2018

Hello @jfbrazeau,

The wires on the picture above are couple of times longer than recommended for the OV7725 and ESP32 DevKitC. Below is what worked for me:

image

Please read through the Showcase section that describes real tests made with OV7725.

@jfbrazeau
Copy link

Ok thank you very much for the feedback. I have to buy connectors and wires to test like this. This will take a few days (or weeks). I'll tell you if it solves this issue. Thank you.

@James-sjec
Copy link
Author

Hai ,
I soldered camera and esp32 to bread board , and the above issue was solved
I getting the following images :

capture 24

How to increase the quality of the image

@igrr
Copy link
Owner

igrr commented Feb 3, 2018

Lens out of focus perhaps, try rotating it?

@jfbrazeau
Copy link

Hello,

I come back here to give you a feedback. Approximately two weeks ago, I tried again with shorter wires as you told me. The result was worst than with my initial wires. I think that my wires were very bad.

Today I soldered the circuit, and... everything works fine now (as you can see below) !

Thank you very much for your help ! (and for this great sample project on github)

Regards,

Jean-François Brazeau

esp-wa-6845652127971879995

img_8635 a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants