-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OV7670 #77
Comments
Hi, sorry for the late answer, but I don't know how to download. Can you suggest a way?
Obtener Outlook para Android<https://aka.ms/ghei36>
…________________________________
From: amirjak <[email protected]>
Sent: Friday, October 11, 2019 6:46:16 AM
To: espressif/esp32-camera <[email protected]>
Cc: jjsch-dev <[email protected]>; Author <[email protected]>
Subject: Re: [espressif/esp32-camera] OV7670 (#77)
Hi thanks for telling me.
Where is it.
i want.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#77?email_source=notifications&email_token=ANIYSMO6SEOEQ6ZVE7AJMRDQOBDORA5CNFSM4IZFQSW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA7PGQY#issuecomment-540996419>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANIYSMMZOOMDX3K2TDRZVELQOBDORANCNFSM4IZFQSWQ>.
|
Attached I send you the source code.
Sorry but I don't know how to made the commit in github. Can you give instructions?
…________________________________
From: amirjak <[email protected]>
Sent: Thursday, October 24, 2019 9:58 AM
To: espressif/esp32-camera <[email protected]>
Cc: jjsch-dev <[email protected]>; Author <[email protected]>
Subject: Re: [espressif/esp32-camera] OV7670 (#77)
Download what?
I don't understand ?
Do you mean Download from
Microsoft outlook?
Your code is in outlook?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#77?email_source=notifications&email_token=ANIYSMMNFMP6HTZ666MRER3QQFWTZA5CNFSM4IZFQSW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECEOUQQ#issuecomment-545843778>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANIYSMKBTFNX7JB7MXQKZ43QQFWTZANCNFSM4IZFQSWQ>.
|
thanks for the information, I made a fork of the esp32-camera and the pull request for adding the ov7670 driver. Please tell me if you can get the changes. |
The esp32-camera-master is part of the idf component, you need to copy it to the folder idf/componnets. I use a fork of the igrr/esp32-cam-demo, if you need it please let me know. |
ok, I will made the fork tomorrow. |
I made the pull request to the igrr/esp32-cam-demo. Please use this project and compile. |
Checking the rep for the es32-camera, by mistake I forgot to add the drivers files: |
Now I merge the igrr/esp32-cam-demo in my repository. Please use this project and compile. |
ok, please try to move the folder esp32-camera to the folder esp-idf/components. |
you need to obtain two source code, one is the esp32-cam-demo-master (the application), please leave it in the example folder, but the driver code esp32-camera need to be in the folder esp-idf/components. |
the camera driver: https://github.com/jjsch-dev/esp32-camera |
Good job!! My Pin Configuration Please enable the color pattern |
I made the changes in these two filesdkconfig.defaultsCONFIG_ENABLE_TEST_PATTERN=yCONFIG_OV2640_SUPPORT=n sdkconfig.FileCONFIG_BT_RESERVE_DRAM=0 CONFIG_ENABLE_TEST_PATTERN=yCONFIG_OV2640_SUPPORT is not set But it didn't work |
frequency 12000000 not working |
I do some test with my board, and found the camera clock limit is 24 Mhz, but work fine from 12 to 20 Mhz, and present the problems that you first reported with 10 Mhz. All test was made it with 240 Mhz for the cpu clock. |
It is possible that you use are using a newer version of module ledc than me. I found in the esp32_camera a similar report: https://github.com/mirronelli suggest add the following sentence to fix the problem.
|
Glad to hear that! |
Hi, how i can use camera with arduino ide? |
Hi @TheEdwood , I'm glad that you were able to make the camera work, regarding the problem, verify that the camera clock is higher than 10 Mhz. CONFIG_XCLK_FREQ = 12000000 |
HI @jjsch-dev, The frequency is already set to 12000000 as you said, I checked on the sdkconfig.h generated file. I also have the problem with 20 MHz clock What I find weird is that I have this problem only with this specific pinout (as showed in the pictures above). Is there any pin that can't be used with the camera interface ? Thanks |
Hi @jjsch-dev, I found the issue. From the espressif kit description page (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-wrover-kit-v3.html) : "Since GPIO32 and GPIO33 are connected to the oscillator by default, they are not connected to the JP1 I/O connector to maintain signal integrity. This allocation may be changed from the oscillator to JP1 by desoldering the zero-ohm resistors from positions R11 / R23 and re-soldering them to positions R12 / R24." With this taken care of, the camera works. |
@TheEdwood I'm glad you found the problem. |
@jjsch-dev I am getting these two errors: |
@Rajssss I can't find references to stop or start in app_main.c. Could you tell me which line of the code they are in? |
@jjsch-dev its in connect.c, actually its part of protocol_examples_common example. |
@Rajssss Sorry for the delay in responding, I checked the repository and I saw that there are changes in the camera driver, so I'm not sure that the demo application works with the latest version. |
@jjsch-dev thanks :) It will be fine for me if you can share the same version (If you have it still now) which was working earlier for you. |
@jjsch-dev thanks again. but that link point to same driver right? I am not sure what you wanted to point out here. |
@kshitijgarg2609 Hi, I have not tested the controller on arduino, could you please pass me the imo file you are using so that I can perform tests? |
@jjsch-dev ,I am sharing the codes here, Please check. camera_pins.h //////////////////////////////////////////////////////////////////// #if defined(CAMERA_MODEL_WROVER_KIT) #define Y9_GPIO_NUM 35 #elif defined(CAMERA_MODEL_ESP_EYE) #define Y9_GPIO_NUM 36 #elif defined(CAMERA_MODEL_M5STACK_PSRAM) #define Y9_GPIO_NUM 19 #elif defined(CAMERA_MODEL_M5STACK_WIDE) #define Y9_GPIO_NUM 19 #elif defined(CAMERA_MODEL_AI_THINKER) #define Y9_GPIO_NUM 35 #else camera_frame_data.h //////////////////////////////////////////////////////////////////// #include <esp_camera.h> void initCam(); void initCameracam_confuration(); static camera_config_t cam_conf; void initCam() int getFrame() void initCameracam_confuration() cam_conf.pin_d7 = Y9_GPIO_NUM; cam_conf.ledc_channel = LEDC_CHANNEL_0; cam_conf.frame_size = FRAMESIZE_QVGA; esp32_cam_test.ino //////////////////////////////////////////////////////////////////// void setup() void loop() |
@kshitijgarg2609 , Thanks for the code, I'll check it out in the next few days. |
@jjsch-dev tested? |
@kshitijgarg2609 sorry for the delay in responding, these days I was busy, today I started to test the example you gave me on Arduino, I keep in touch. |
@kshitijgarg2609 Hello, the code you sent me is fine, the problem, (if the pins are configured correctly), in my case was that the OV7670 does not support JPG as a format, and if you do not have PSRAM the size of the frame has to be QQVGA. I modified the code a bit (attached to the 3 files in zip format), so that at first it reports the PID of the detected camera, for the OV7670 it is 0x76. |
@jjsch-dev Thank you very much for considering such issues. I have downloaded the code and tested it again, please can you share the circuit diagram or please tell me which other components like resistance to be used. Unfortunately, I am getting frame error again. |
@kshitijgarg2609 Hello, my circuit diagram with an OV7670 sensor and an ESP-32 MCU node is as follows. Can you share the initialization that Arduino sends through the serial monitor? |
This issue appears to be stale. Please close it if its no longer valid. |
hi, the Arduino example that you sent (zip) is capturing image ? `//esp32_cam_test.ino //////////////////////////////////////////////////////////////////// #define EEPROM_SIZE 1 // The MQTT topics that this device should publish/subscribe WiFiClientSecure net = WiFiClientSecure(); void connectAWS() Serial.println("Connecting to Wi-Fi"); while (WiFi.status() != WL_CONNECTED){ // Configure WiFiClientSecure to use the AWS IoT device credentials // Connect to the MQTT broker on the AWS endpoint we defined earlier // Create a message handler Serial.print("Connecting to AWS IOT"); while (!client.connect(THINGNAME)) { if(!client.connected()){ // Subscribe to a topic Serial.println("AWS IoT Connected!"); void messageHandler(String &topic, String &payload) { // StaticJsonDocument<200> doc; void getFrame() const char *data = (const char *)fb->buf; Serial.println(data); // Image metadata. Yes it should be cleaned up to use printf if the function is available String encoded = base64::encode(fb->buf, fb->len); Serial.println(encoded); // formating json serializeJson(doc, jsonBuffer); Serial.println(jsonBuffer);
esp_camera_fb_return(fb); void lwMQTTErr(lwmqtt_err_t reason) void lwMQTTErrConnection(lwmqtt_return_code_t reason) void setup() void loop() |
wow, now i see that i need PNG /JPG to AWS IoT Rekognizer... |
@tcpipchip hello, it's been a long time since I sent that code, but when you have the sensor, I'll try to help you. |
Thank you! |
I tryed the ov7670 example with the current librarys, followed the pin connections, but not working:/ This example will be important, because i want use with a parallel 8 bit display for my door-eye project, to get better speed, but there is no working driver or example. |
Hi, I writed the driver for the OV7670, if some need it please contact me.
The text was updated successfully, but these errors were encountered: