OV7670 Camera Module with Arduino: Color Image To PC (Step-By-Step Guide)

Поделиться
HTML-код
  • Опубликовано: 15 окт 2024

Комментарии • 350

  • @4xomg
    @4xomg Месяц назад +1

    Can you please do a tutorial for OV7670 Camera Module with Arduino Mega 2560

  • @aydinliefe1486
    @aydinliefe1486 2 года назад +1

    Hey indrek ı am using Arduino UNO with 12Mhz crystal but i am having some problems ı can only run lowest resolution and two duplicate half Frame in your plugin monitor

  • @sriharisridhar356
    @sriharisridhar356 4 года назад +1

    The image window is opening up, I assigned the correct port and baud rate, but it is not rendering the red rectangle. What could be the issue(I am using Arduino Nano)

    • @IndrekL
      @IndrekL  4 года назад +2

      Hey!
      Did you set "#define EXAMPLE 3" in "setup.h"?
      Did you try with a plain Arduino without any additional wires beside the USB cable? The red rectangle is sent after boot-up, and sometimes the Java program can miss the frame. Try to press the reset button on the Arduino then the image will be sent again.
      If that doesn't help try with a lower baudrate. In the "ExampleUart.cpp"set
      #define UART_MODE 4
      Now you have to also select 115200 in the Java program.

    • @sriharisridhar356
      @sriharisridhar356 4 года назад

      @@IndrekL when I press the reset button, the tx lights up for a while and then the java application crashes

    • @IndrekL
      @IndrekL  4 года назад +1

      @@sriharisridhar356 Did you download java version 1.8? The txrx library I am using doesn't support newer java versions.

    • @valarmorghulisx
      @valarmorghulisx 4 года назад

      @@IndrekL i have same problem man ! i downloaded 1.8.191 jdk and i did all you done but doesnt work. i tried to change mode 4. but image window is opening up and didnt show red rectangle. can you help me how can i solve ?

  • @wpprohelper9796
    @wpprohelper9796 7 месяцев назад

    Hi, could you please share the wiring details for the Arduino Mega? I'm still getting a red screen, and I suspect that the wiring is incorrect. I'm working on integrating the OV7670 camera module to stream images to a computer and then uploading a machine learning model to analyze the images.

  • @ITShareTR
    @ITShareTR 3 года назад

    I changed your java application reads bytes from bluetooth but it shows only a small top part off image how can read images from bluetooth can you help me please if you can i will be very happy

  • @jimmatheson9125
    @jimmatheson9125 Год назад

    Have you tried this with a teensy 4.x? I want to send my ILI9341 frame buffer over USB.

  • @ITShareTR
    @ITShareTR 3 года назад

    I did it and everything works well but i tried it with hc05 and hc05 gives error it can not work at 115200 baudrate

  • @bvenkat8140
    @bvenkat8140 Год назад

    After capturing the video on to the laptop screen, can we transmit it using 4g lte modem?

  • @prestonglenn1527
    @prestonglenn1527 2 года назад

    Would this work with the new Arduino nano 33 IoT? Its a ATSAMD21 board and not a ATmega328 like the code requires...

  • @francogentili5296
    @francogentili5296 5 лет назад +2

    Congratulation for the project. Is it possible to use RBG and 640x480 or more resolution to PC screen?, i try with default setting, only works 160x120 RGB with 115200 baud for me, i need more resolution.

    • @IndrekL
      @IndrekL  5 лет назад

      It is possible but it will be VERY slow.

  • @smartassist9700
    @smartassist9700 Год назад

    How close can I video clearly? How far away can you get a clear face video? Please

  • @stickylabhome7568
    @stickylabhome7568 3 года назад

    that's posible connect cam to ESP32-Wrover?

  • @JosephPachuau
    @JosephPachuau Год назад

    Can i use 550 ohms instead of 680?

  • @mrilhamtech6632
    @mrilhamtech6632 4 года назад

    eror code IDE :
    In file included from Adafruit_ST7735_mod.cpp:24:0:
    Adafruit_ST7735_mod.h:34:26: fatal error: Adafruit_GFX.h: No such file or directory
    #include
    ^
    compilation terminated.
    Error compiling.
    what happening about this ?

    • @IndrekL
      @IndrekL  4 года назад

      Hey! You have to copy the "Adafruit_GFX_Library" and "LiveOV7670Library" from "src/lib" to your arduino "libraries" folder.
      C:\Users\\Documents\Arduino\libraries

  • @denizdurer6295
    @denizdurer6295 4 года назад

    Hello. Can this camera module work with arduino nano. I have no arduino past and I do not want money waste.

    • @IndrekL
      @IndrekL  3 года назад +1

      Yes, it will work with an Nano also. Arduino Uno and Nano are basically the same.

  • @ITShareTR
    @ITShareTR 3 года назад

    i applied all steps but i see only green image on java application i dont know where im wrong
    all wirings are right, i checked them many times but when i run java application there is only green screen what must i do please help me :(

    • @IndrekL
      @IndrekL  3 года назад +1

      Green means that the camera is running at Arduino was able to configure the camera. Do you have any way to use an Oscilloscope? It would be good if you could check if VSYNC and Pixel Clock signals are working.

    • @ITShareTR
      @ITShareTR 3 года назад

      @@IndrekL you are right l have checked lt yesterday with a multimeter vsync has 0.30 volt heighest value and the lowest 0.05 volt and the code stucks at waitforvsync , what must l do whats your advice

    • @IndrekL
      @IndrekL  3 года назад

      Multimeter is probably too slow to detect the pulse since the pulse is very short. Maybe try to replace the VSYNC and Pixel clock wires. Perhaps there is a bad connection somewhere. Or the wire is broken.

    • @ITShareTR
      @ITShareTR 3 года назад

      @@IndrekL thanks for advice

  • @hrkalita159
    @hrkalita159 2 года назад

    Hello,can I use this cam for openCV ?

  • @VitorJTekkRodrigues
    @VitorJTekkRodrigues 5 лет назад +2

    Hi, your videos were very hepful. I've followed your tutorial step by step. I had the red screen initially and then the Green screen at the mid-test. But whenever I connect the remaining pins, I also get a red screen. Am I doing something wrong?
    Also, I have an Arduino clone, but it has an DIP atmega328P, so apparently it doesn't support 1M baud. Is it possible to reduce framerate so I can use smaller baud rates with a bigger resolution?
    I'm trying to setup a camera to capture a Gray scale frame every 10 seconds and send it wirelessly via LoRa and then store on a PC. But so far I'm stuck at the camera setup, can you give me any hints?

    • @IndrekL
      @IndrekL  5 лет назад +1

      Hey! If you get green screen and then red screen after connecting the rest of the wires then there must be something wrong with the rest of the connections that causes the camera to stop working. Maybe you can connect the rest of the wires one-by-one to see at which point it stops working.
      Yes, if you play with the resolution and frame-rate you can get also higher resolution with slower frame rate.
      What resolution and baudrate do you want? I can make the configuration and add it to the pre-set options in the "ExampleUart.cpp"

    • @VitorJTekkRodrigues
      @VitorJTekkRodrigues 5 лет назад

      @@IndrekL Thanks for the reply!! :D
      The day after I wrote that commentary I was able to get some footage from the camera.
      I think the issue I had was due to using old jumpers, but I've already ordered a new pack of those as replacement.
      So far in my project, I've managed to transmit data serially (software serial) at 9600 baud through the LoRa module I'm using to another module which receives the data and send it through an Arduino to a PC. (Theoretically the module can link at 115200 baud but I'm having issues changing it's default settings).
      It's a low-power project where the camera is triggered by a motion sensor, like those in bathroom lights. So in my case I won't be needing constant "live" feed but rather a single frame whenever someones passes by and triggers the sensor.
      The sensor takes around 8.6 seconds to warm up after each detection, which is the theorical shortest delay I'll need. So I guess any baud rate would do fine for me as long as I can send a compressed VGA image in less than 9 or 10 seconds. This motion detection bit is also already complete.
      I've already tampered a little with your code and managed to get a feed on grayscale and VGA. But I'm not sure If I've configured It properly.
      I think I won't be needing colors, but as much resolution and as low Blur as I can get, since my end goal is to use those captured and transmitted images on a facial recognition software or, at least, on a human detection software I'll build in python. (By the way, all the images I've got we're a lot blurrier than what you've shown at the end of the video. Is that just lens adjustment or It has some software settings involved?)
      It would be great If you could help me out with the camera settings and clarify a little of what you've done in your code, so I can make a similar one that triggers with an Arduino output and sends the frame through SoftwareSerial().
      (Sorry for the long text, I felt It would be easier to explain by giving some context of what I'm doing)

    • @IndrekL
      @IndrekL  5 лет назад

      @@VitorJTekkRodrigues In this case you actually should use the FIFO version of the camera. If you use my code with slow frame rate and you want to capture a moving object (a person walking in front of the camera) then the image will be very blurry.
      FIFO version of the camera can take a snap-shot very quickly and then you have time to send it over the slow serial line.

    • @VitorJTekkRodrigues
      @VitorJTekkRodrigues 5 лет назад

      @@IndrekL If It manage to set up my radio module to operate at 115200 baud, would I be able to still use the non-fifo module?
      Because I don't have a FIFO version and it's probably going to take a month to get It if I order one right now, and being a college project to be delivered at the end of August, I'm probably stuck with what I have right now.

    • @IndrekL
      @IndrekL  5 лет назад

      @@VitorJTekkRodrigues If you want to capture moving object it will be distorted. Like here when the camera is moving 0:14
      Fifo version will quickly capture the image into FIFO buffer and you have time to send it over the slow connection

  • @jpc1151
    @jpc1151 3 года назад

    Greetings Sir;
    I would like to ask, after capturing the objects... I would like to save it to another folder for data file storge. How can i do it? Thank you for the kind respond.

    • @IndrekL
      @IndrekL  3 года назад

      Hey! The ArduinoImageCapture program has a save button to save the images onto your computer.

  • @malaikawaheed472
    @malaikawaheed472 5 лет назад

    When i click listen it doesn't display anything, and the window of jdk closes, TX led on arduino is ON,, please help me to sort out it

  • @cesaraugustoserranobaza469
    @cesaraugustoserranobaza469 4 года назад

    Hey! I have a question.
    I did a PCB with this and everything was working fine, and I was watcing the streaming in the Java screen. But then, I plugged another arduino to see some data in the COM of the new arduino and the Arducam stopped sending images. And now, I plug the arduino nando with the arducam and it does not connect, it aways appears a red rectangle. Any suggestion?

    • @IndrekL
      @IndrekL  4 года назад

      Hey! Can you still upload the code into the Arduino that is connected to the camera? If uploading code works then sending image from Arduino to your computer should also work.

    • @cesaraugustoserranobaza469
      @cesaraugustoserranobaza469 4 года назад

      @@IndrekL It is still uploading the code from Arduino IDLE. It is kind of strange due to it worked just but when I attached other arduino with its own COM it stopped worked. Sometimes it works and some times it doesnt :/

    • @IndrekL
      @IndrekL  4 года назад

      Maybe the problem is with the rxtx library that the Java project is currently using. It is old and not developed anymore. I should update the Java project to this instead: fazecast.github.io/jSerialComm/
      This would probably solve the issue.

    • @cesaraugustoserranobaza469
      @cesaraugustoserranobaza469 4 года назад

      @@IndrekL Thank you so much. I'll check it out.

  • @cool9first
    @cool9first 4 года назад

    It keeps saying that the it couldnt find my MainWindow class from the ArduinoImageCapture-master- module

  • @shivangsinha9489
    @shivangsinha9489 5 лет назад

    when i hit that reset button, some kind of error is thrown . kindly help.
    #A fatal error has been detected by the Java Runtime Environment:
    #EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005156, pid=22212, tid=18496
    # JRE version: Java(TM) SE Runtime Environment (11.0.2+7) (build 11.0.2+7-LTS)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.2+7-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
    # Problematic frame:
    # C [rxtxSerial.dll+0x5156]
    #No core dump will be written. Minidumps are not enabled by default on client versions of Windows

    • @IndrekL
      @IndrekL  5 лет назад

      Hmm it seems that the rxtx library crahes. Maybe those are not compatible with newer java 11. Could you try downloading older java 8 and see if it is better?
      www.oracle.com/technetwork/java/javaee/downloads/jdk8-downloads-2133151.html

  • @denniskamala3516
    @denniskamala3516 5 лет назад

    @indrek i got an error message after do listening “says unknown pixel format code ‘1’? What might be a problem and what can i do?

    • @IndrekL
      @IndrekL  5 лет назад

      The image format is not correct for the Java program. Did you download latest version of both the Java code and Arduino code? If yes then check if you selected correct baudrate in the Java program. By default it should be 1000000. If that is still correct then try lowering the baudrate by changing the UART_MODE in ExampleUart.cpp and then select the same baudrate in the Java program.

  • @svsvsvvbb
    @svsvsvvbb 5 лет назад +1

    Thank U for publicate project, small question, why I get partial image in java app? When set higher res then i have many parts of image

    • @IndrekL
      @IndrekL  5 лет назад

      Can you upload a screenshot of the image to imgur or somewhere and show what you mean exactly?

    • @svsvsvvbb
      @svsvsvvbb 5 лет назад

      @@IndrekL Ofcourse, imgur.com/vaBSvy5
      I build Your project 1:1 with java app and have Arduino clone and Core2 Duo laptop (very slow for me) so maybe here is problem

  • @gabrielcalvet6382
    @gabrielcalvet6382 3 года назад

    how can i do this same project in esp32 nodemcu?

  • @jayeshwaghmare2989
    @jayeshwaghmare2989 4 года назад

    Hello, can we conect esp8266 12e with UART/SPI/i2c to send video via wifi? or can we connect the ov7670 to ESP8266 12e to do the same without any Serial connection?

    • @IndrekL
      @IndrekL  4 года назад

      Hey! Yes transferring data to the EXP8266 module and then over wifi should be possible. I haven't tried it myself tho.
      The ESP8266 has too little IO pins to connect the OV7670 (without FIFO) directly to the module.

    • @jayeshwaghmare2989
      @jayeshwaghmare2989 4 года назад

      @@IndrekL I am trying it directly, i dont know how to transfer video via i2c. Converting all special pins to GPIO. Will let you know if it works!

  • @samueladdisu3729
    @samueladdisu3729 4 года назад

    gives me 'camerov7670.h no such file or directory' error when i upload ther arduino code how do i fix that?

    • @IndrekL
      @IndrekL  4 года назад

      Hey! Copy the two libraries "LiveOV7670Library" and "Adafruit_GFX_Library" from "src/lib" to your Arduino "libraries" folder

  • @nesihot
    @nesihot 5 лет назад

    Except of the ordinary wires- what are the other wires that you connect to the camera ? How are they called?

    • @IndrekL
      @IndrekL  5 лет назад

      I am using short male to male jumper wires to connect Arduino to breadboard and longer male to female jumper wires to connect the camera:
      www.ebay.com/itm/40PC-Dupont-20CM-Male-To-Female-Jumper-Wire-Ribbon-Cable-F-Arduino-Breadboard-AA/112403384085?hash=item1a2bc38715:g:BSYAAOSw1WJZE-WH:rk:5:pf:0

  • @maqeelqureshi
    @maqeelqureshi 5 лет назад +1

    Could you explain un-FIFO version? How would I know that mine is without FIFO?

    • @IndrekL
      @IndrekL  5 лет назад +1

      FIFO version has the FIFO chip on the back of the baord and has 22 pins:
      bitluni.net/wp-content/uploads/2017/11/ov7670-fifo-238x300.jpg
      Non-FIFO version doesn't have the chip and has 18 pins:
      www.digibay.in/image/cache/data/se/241-d-ov7670-camera-module-with-fifo-600x600.jpg

  • @semihkaragulle5901
    @semihkaragulle5901 5 лет назад

    cannot find library gives error ?

    • @IndrekL
      @IndrekL  5 лет назад

      Did you copy content of the "lib" folder into Arduino "libraries" folder?

  • @GABYHAYEU
    @GABYHAYEU 4 года назад

    Hello , i am wondering if you can help me with a problem. I made the wiring and the program , the frame on java is starting but the problem is that nothing appear on the frame , not green or red display , nothing .
    If you know anything about this , let me know .
    Thank you ^^

    • @IndrekL
      @IndrekL  4 года назад

      Hey! You should get the red image before connecting any wires to the Arduino. Try to load the code into an Arduino that doesn't have any wires connected (you have set the #define EXAMPLE 3 in setup.h). Then open the Java application and select the same comp port number that you used in the Arduino IDE to load the program. Then you should get the red image.
      After you have successfully received the red image then we at least know that the connection between the camera and your computer is working. Then we can continue with the next step.

    • @GABYHAYEU
      @GABYHAYEU 4 года назад

      @@IndrekL Thank you for your fast response. I did like you send , i encounter the following error :
      "C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\jbr\bin\java.exe" -Djava.library.path=lib
      xtx-2.2pre2-bins\win64 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\lib\idea_rt.jar=49447:C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\Marius\Desktop\proiect arduino\ArduinoImageCapture-master\out\production\ArduinoImageCapture-master;C:\Users\Marius\Desktop\proiect arduino\ArduinoImageCapture-master\lib
      xtx-2.2pre2-bins\RXTXcomm.jar" MainWindow
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005156, pid=4828, tid=3408
      #
      # JRE version: OpenJDK Runtime Environment (11.0.5+10) (build 11.0.5+10-b520.30)
      # Java VM: OpenJDK 64-Bit Server VM (11.0.5+10-b520.30, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
      # Problematic frame:
      # C [rxtxSerial.dll+0x5156]
      #
      # No core dump will be written. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # C:\Users\Marius\Desktop\proiect arduino\ArduinoImageCapture-master\hs_err_pid4828.log
      #
      # If you would like to submit a bug report, please visit:
      # bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Process finished with exit code 1

    • @IndrekL
      @IndrekL  4 года назад

      @@GABYHAYEU The TXRX library I am using for the Serial communication only supports Java up to version 1.8. It seems that you have the newer java 1.11.
      Try downloading java 1.8.

  • @petiovelev97
    @petiovelev97 4 года назад

    Adafruit_GFX.h: No such file or Adafruit_GFX.h: No such file or directory
    directory
    can you help me ?

    • @petiovelev97
      @petiovelev97 4 года назад

      Using library adafruit_gfx_library_1_10_0 at version 1.10.0 in folder: /home/builder/opt/libraries/latest/adafruit_gfx_library_1_10_0
      Using library SPI at version 1.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.2/libraries/SPI
      /tmp/999483334/build/sketch/ExampleUart.cpp:11:10: fatal error: CameraOV7670.h: No such file or directory
      #include "CameraOV7670.h"
      ^~~~~~~~~~~~~~~~
      compilation terminated.
      exit status 1

    • @IndrekL
      @IndrekL  4 года назад

      Hey! You have to copy the "src/lib/Adafruit_GFX_Library" and "src/lib/LiveOV7670Library" to your Arduino "libraries" (it should be under you computer's home fodler "Documents/Arduino/libraries").

    • @petiovelev97
      @petiovelev97 4 года назад

      @@IndrekL Thanks, when i restart uno
      "C:\Program Files\Java\jdk1.8.0_261\bin\java.exe" -Djava.library.path=lib/rxtx-2.2pre2-bins/win64 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.6\lib\idea_rt.jar=64662:C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.6\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_261\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext
      ashorn.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib
      esources.jar;C:\Program Files\Java\jdk1.8.0_261\jre\lib
      t.jar;C:\Users\petio\Desktop\demo\ArduinoImageCapture-master\out\production\ArduinoImageCapture-master;C:\Users\petio\Desktop\demo\ArduinoImageCapture-master\lib
      xtx-2.2pre2-bins\RXTXcomm.jar" MainWindow
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005156, pid=18588, tid=0x0000000000004ae4
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [rxtxSerial.dll+0x5156]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # C:\Users\petio\Desktop\demo\ArduinoImageCapture-master\hs_err_pid18588.log
      #
      # If you would like to submit a bug report, please visit:
      # bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Process finished with exit code 1

  • @alexsherzer
    @alexsherzer 5 лет назад

    Can I ask you about how I should be save image from form to my local computer? And could be I compile this project like executable file for run on any computer?

    • @IndrekL
      @IndrekL  5 лет назад

      I will add saving option to the java program soon. I have been asked about that a couple of times already but I haven't had time to do it yet.
      I haven't done it myself, but it is possible to create self contained executable for java application. Here is one StackOveflow question about it:
      stackoverflow.com/questions/2011664/compiling-a-java-program-into-an-executable

    • @IndrekL
      @IndrekL  5 лет назад +1

      I did some googling and it is quite simple to use IntelliJ to compile the project into a .jar file that can be run by double clicking on it if you have Java installed (you also have to copy your platform specific rxtxSerial.dll next to the .jar file - for me it was win64).
      If you want I can write more detailed instructions how to do that.
      I haven't tried this myself but now it should be possible to use JSmooth to create an exe wrapper to the .jar file.

    • @alexsherzer
      @alexsherzer 5 лет назад

      @@IndrekL I should be very glad if you will write tutorial or record new video with detailed instructions. I not tried yet, I will try tomorrow. I will wait you answer..Best regards!

    • @IndrekL
      @IndrekL  5 лет назад +1

      @@alexsherzer I added a chapter "Building ArduinoImageCapture.jar" at the end of the "readme" page on Github:
      github.com/indrekluuk/ArduinoImageCapture

    • @alexsherzer
      @alexsherzer 5 лет назад

      @@IndrekL Thanks you very mutch!

  • @vaishnavithakare6906
    @vaishnavithakare6906 4 года назад

    hi,
    can I get your mail, since i would like todiscuss few things about this interfacing as it looks famaliar to what i am planning to do in my project??

  • @АлексейТ-ь6у
    @АлексейТ-ь6у 4 года назад

    Is it possible to set UART_MODE to 320x240 with 115200 baud (or 640x480 grayscale with 115200 baud) for capture static image once per long time? If yes, post the setting for such mode, please.

    • @IndrekL
      @IndrekL  4 года назад

      Unfortunately, I can't slow the camera down any further. That makes it impossible to send bigger resolutions over 115200 baudrate

  • @sontungpham9942
    @sontungpham9942 4 года назад

    Please help me, when I clicked listen button the window just disappeared. An error .log file appeared in scr in the left. I don't know how to fix this one although I tried many times. The error say:
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005156, pid=6152, tid=11308
    #
    # JRE version: OpenJDK Runtime Environment (11.0.5+10) (build 11.0.5+10-b520.17)
    # Java VM: OpenJDK 64-Bit Server VM (11.0.5+10-b520.17, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)

    • @IndrekL
      @IndrekL  4 года назад

      Hey! The rxtx library, I am using, works with java8. It seems that you are using java 11. Pleasee downloading java 8 and then try again.

    • @sontungpham9942
      @sontungpham9942 4 года назад

      @@IndrekL Thank you Indrek, I fixed the problem and now trying to run it on a Mega board. The java application is running perfectly but the image is so noise, it is similar to what happened on 8:45 in the video but much more serious. I followed your wiring in Github, I'm sure that my connection is correctly and the project still working probably on a UNO board. Do you know what is the problem here?

  • @ashfaqbyz
    @ashfaqbyz 4 года назад

    Is it the same way if I use OV5642? Including using the same resistor?
    Thank you sir

    • @IndrekL
      @IndrekL  4 года назад

      Hey! Probably not. It's a different camera.
      Also OV5642 seems to be much higher resolution than the OV7670, Arduino is too weak for taht.

  • @wangmaolin6807
    @wangmaolin6807 4 года назад +1

    Hi, Thanks for your sharing the video. It is very helpful.
    BTW, I want to detect the moving(but slow) barcode by using ov7670 camera and arduino.
    Can I have an advice from you?

    • @IndrekL
      @IndrekL  4 года назад

      I am not sure if the resolution is high enough. I guess it depends how close the barcode is to the camera.

    • @wangmaolin6807
      @wangmaolin6807 4 года назад

      @@IndrekL No problem. At first, I just want to make a prototype and can let the camera close the barcode.

  • @moulisharma9814
    @moulisharma9814 5 лет назад

    It's showing error...... RESOLUTION_QVGA_320*240 is not a member of cameraOV7670

    • @IndrekL
      @IndrekL  5 лет назад

      It should be RESOLUTION_QVGA_320x240 (x instead of *)

  • @aminekidane5757
    @aminekidane5757 4 года назад

    Hello,
    On trying to take images using ov7670 on my arduino uno I have downloaded codes and necessary libraries from the GitHub. Based on the tutorial I have followed I arranged my files as required. On compiling the code however I have got an error message that I can't fix it. Because I'm doing it for my project and I'm running out of time, I kindly ask a quicker help.
    here is the error message:
    'class CameraOV7670' has no member named 'waitForPixelClockRisingEdge'

    • @IndrekL
      @IndrekL  4 года назад

      Did you copy the the libraries under "libraries" folder?

    • @aminekidane5757
      @aminekidane5757 4 года назад

      @@IndrekL yeah I have followed all the libraries in their respective position. But I haven't got the solution. Waiting for positive response.

    • @IndrekL
      @IndrekL  4 года назад

      @@aminekidane5757 If you download a fresh copy of the code from github and do not do any changes do you still get this error?

    • @aminekidane5757
      @aminekidane5757 4 года назад

      @@IndrekL yeah I have downloaded a fresh copy and followed your suggestion. But the image pop up window doesn't give me anything. 4:25
      plz help me. my project due date is coming.thanks

    • @IndrekL
      @IndrekL  4 года назад

      @@aminekidane5757
      1. Does the Arduino program now compile without any errors?
      2. Did you change
      "#define EXAMPLE 1" to "#define EXAMPLE 3" in setup.h?
      3. Did you select the same com port in the image window that you used in the Arduino IDE to upload Arduino code? By deafult the baudrate is 1000000 did you select 1000000 in the window?
      4. Do you see any errors in the IntelliJ window when you run the Java application? (lower part of the IntelliJ window.)

  • @aminekidane5757
    @aminekidane5757 4 года назад

    hello where can I found the arduino code...its not in the description video.

    • @IndrekL
      @IndrekL  4 года назад

      Hello! Link to github page is in the description:
      github.com/indrekluuk/LiveOV7670
      if you click on the green "clone or download" button you get the code.

  • @SSTronics
    @SSTronics 5 лет назад

    Hi. I followed all the steps but I'm facing the following issue: I run the java application and even though I click on Listen button, nothing happens. No error messages, no response from Arduino, no blinking LEDs (Tx or Rx).
    What am I doing wrong? What am I missing?
    What do you advise me to do?
    Thank you in advance,

    • @IndrekL
      @IndrekL  5 лет назад

      Hey! If you loaded the correct version of LiveOV7670 to Arduino then the TX LED should blink periodically (even if USB is not connected) since it should be sending out every frame.
      Did you download the latest version from Github? I updated the LiveOV7670 project recently (there was one another person who couldn't get it working since he had an older version of the project).
      Did you make the change in setup.h to:
      #define EXAMPLE 3

    • @SSTronics
      @SSTronics 5 лет назад

      @@IndrekL hi. Thank you for replying. I'm pretty sure I have the latest version of project. But I'm gonna check it out anyways.
      Now it only sends data to pc if I press the reset button. But the.pc shows only the red image, which indicates it could not initialize the cam.
      I'm using a dil 328P uno and I'll try a smd 328P uno andd check if it is a hardware incompatibility

    • @IndrekL
      @IndrekL  5 лет назад

      If you see red then you most likely have the latest version.
      Red screen means that sending configuration failed. There is either problem with XCLK signal or the i2c connection.
      Do you have an Oscilloscope? If you have then you should check XCLK on the camera side. There should be 8Mhz signal on it. If this is OK then you should try to check if camera is sending out PCLK and VSYNC signals.

  • @siddanthchowdary5611
    @siddanthchowdary5611 2 года назад

    Can extract text by using this proxess

  • @ashfaqbyz
    @ashfaqbyz 4 года назад

    very useful, but is it the same way if i use wemos d1 r2 with ov5642 camera moduls?
    sorry if my english is bad

    • @IndrekL
      @IndrekL  4 года назад +1

      Hey! I haven't tried to get it working with an ESP module (like Wemos) yet. ESP doesn't have enough pins to read pixel data, but maybe it is possible with some external chips like a shift register.

    • @ashfaqbyz
      @ashfaqbyz 4 года назад

      Thanks sir.. but,
      Is it the same way if I use OV5642? Including using the same resistor?

  • @mishayakubchuk4192
    @mishayakubchuk4192 5 лет назад

    Please,help.I connected my Arduino Nano to PC.I did everything as in this video
    .But there is no red rectangle in Java programm. When I push reset button on Arduino,"TX" LED blink once, and in Intellij IDEA write "Unknown command code '6' " . Hope for help.

    • @mishayakubchuk4192
      @mishayakubchuk4192 5 лет назад

      So,when i comment "CLKPR = 0x80;CLKPR = 1;" in "initializeScreenAndCamera()",i get red rectangle. Is it right?

    • @IndrekL
      @IndrekL  5 лет назад

      Sorry this was my mistake. I thought I fix it for WAVGAT processor but it broke it for normal Atmel based Arduino. I will comment it out in Github.
      So your fix is correct.

    • @mishayakubchuk4192
      @mishayakubchuk4192 5 лет назад

      ​@@IndrekL In function "initializeScreenAndCamera()" interrupts are disable(noInterrupts). Is it necessary? I'm going to send bytes to PC only in certain cases. Can I enable interrupt while I don't send bytes?

    • @IndrekL
      @IndrekL  5 лет назад

      Yes, you can enable interrupts while you do not need to read image from the camera. Reading pixels data from the camera is very time-critical and any interrupt that is triggered during that time will break the image.
      By default there is only timer interrupt for "millis" that breaks the image. I call "noInterrupts" to stop that. Actually to disable "millis" interrupt setting "TIMSK0 = 0;" is enough. But if you add your own interrupts you should disable them also while reading image ("noInterrupts" will disable all interrupts).
      Do you want to use an interrupt for the "save image" button? Wouldn't it be much easier to just do "digitalRead" in a loop?

    • @mishayakubchuk4192
      @mishayakubchuk4192 5 лет назад

      @@IndrekL Of course I will use "digitalRead") I'm going to connect one more module to Arduino and maybe I will need interrupts. But maybe not, I still think about it. Anyway thanks for the help) If I have any more questions, I will write.

  • @farahnadiah492
    @farahnadiah492 5 лет назад

    Hi. I have after run the application. It showed "Error:java: invalid source release: 12"

    • @IndrekL
      @IndrekL  5 лет назад

      Did the window open or you got the error immediately after you clicked "run"?

  • @dondixon4206
    @dondixon4206 4 года назад +1

    Man... This project saves me a lot of work! I was wondering... would it be possible to replace the USB connection with a RF transmitter with receiver having a Rs 232 to usb converter ? I am looking to have the whole thing wireless....Do you think it would work?

    • @IndrekL
      @IndrekL  4 года назад

      I think it should be possible. You have to find a transmitter that could transfer data at least 1Mbit/sec. Otherwise, it will be very slow.
      I haven't had time to do it myself yet, but at some point in the future, I will try it.

    • @dondixon4206
      @dondixon4206 4 года назад

      @@IndrekL Thank you so much for your quick reply. For what I have plan it is fast enough I think. and I just need to capture a snap shot of the frame... By the way... on the PC side... is there any way to capture and save the image displayed? BTW... Look me up... you will see what I do... ;-)

    • @IndrekL
      @IndrekL  4 года назад

      @@dondixon4206 Yes, you can select a folder in the Java application and then all the images will be stored into that folder. Maybe you actually need the FIFO version of the camera? Arduino doesn't have enough memory to hold a frame. So it reads the image from the sensor and then immediately sends it out from the serial port. If the serial connection is slow then the image will have to terrible rolling shutter effect. The FIFO version of the camera can take a snapshot and then there is time to send it slowly over the serial connection.

    • @dondixon4206
      @dondixon4206 4 года назад

      @@IndrekL Aha! I figured that. Yes. I will ask for the FIFO version. Thank you so kindly!

    • @dondixon4206
      @dondixon4206 4 года назад

      OV7670 Without FIFO... For an interesting method for getting "Still" Frames. With wireless transmission and still frames I think this fit my solution even though it's black and white : www.instructables.com/id/OV7670-Without-FIFO-Very-Simple-Framecapture-With-/

  • @ibnumrichaflor
    @ibnumrichaflor 5 лет назад

    Hello, can i use this code for Arduino Mega?
    if that possible, what should i do with my wiring or code?
    (please help, need this for my collage project )
    thank you

    • @IndrekL
      @IndrekL  5 лет назад +1

      The basic idea for the wiring for Mega is the same as with UNO. You can follow the Uno video, but make connections as described here at the end of the page:
      github.com/indrekluuk/LiveOV7670#connections-for-arduino-mega

    • @ibnumrichaflor
      @ibnumrichaflor 5 лет назад

      @@IndrekL thank you , i"ll check it

  • @telband5314
    @telband5314 3 года назад

    Hey Indrek, Thanks for the video, i'm getting a clear green and red screen, however when i try to capture the camera it's shows me a gray glitch screen. Do you know what the problem could be?

    • @IndrekL
      @IndrekL  3 года назад

      Check the wiring. The clock signal may be noisy. Maybe try to use shorter wires.

    • @telband5314
      @telband5314 3 года назад

      @@IndrekL THanks for the quick reply. Used short wires on the clock, but still getting this bad signal

    • @IndrekL
      @IndrekL  3 года назад

      @@telband5314 Try lowering the framerate to see if it gets better. Try
      #define UART_MODE 4

    • @telband5314
      @telband5314 3 года назад

      @@IndrekL That seems to stop the gray glitch screen, however now i got a more colored blurry screen...

    • @IndrekL
      @IndrekL  3 года назад

      It seems to me that the clock signals might be noisy. If you have an Oscilloscope then you could take a look what the signals look like. But maybe try to solder the XCLK and Pixel Clock wires instead of using a breadboard.

  • @calpardo
    @calpardo 5 лет назад +1

    Can I use this camera to process images for “ Object Recognition “ ?

    • @retromorfo
      @retromorfo 4 года назад

      there are better options xd try "PixyCam"

  • @flash1697
    @flash1697 4 года назад

    May i know why you use 10K, 1K and 680 resistor?

    • @IndrekL
      @IndrekL  4 года назад

      Hey!
      10k is common practice for i2c pull-up resistors.
      The camera module's input signal must be below 3.3V, but Arduino output is 5V.
      So when I build a voltage divider with 680 ohm and 1k resistors then the output will be about 3V, which is good enough for the camera.
      It probably will also work with two 1k resistors or two 680 ohm resistors (or any resistor in that range) - then the output would be about 2.5V
      The total resistance shouldn't be too high since then the signal starts to deform. If it is too low it will consume too much power (Ohm's law). With 1680 ohm total the signal pins voltage divider will consume 5V/1680ohm = ~3mA, which is low enough.

  • @vishal53512
    @vishal53512 5 лет назад

    hi there, whenever I open the terminal window in IntelliJ Idea, it gives me an error every time. it says " WARNING: RXTX Version mismatch
    Jar version = RXTX-2.2pre1
    native lib Version = RXTX-2.2pre2". can you provide the solution to this problem?

    • @IndrekL
      @IndrekL  5 лет назад

      Hey! It's just a warning and it actually works OK.
      It even says on the rxtx library download page that there is this warning and there is a "todo" to fix it:
      rxtx.qbang.org/wiki/index.php/Download
      "TODO: The 2.2pre2 bins contain the 2.2pre1 jar file and the 2.2pre2 native lib which causes a mismatch warning"
      I don't know when and if they are going to fix it.

    • @IndrekL
      @IndrekL  5 лет назад

      Hey! I actually found the correct jar version of the RXTX library now. If you download the project again then it doesn't show this warning anymore.

  • @lekge00
    @lekge00 5 лет назад +1

    Sir, can the image be sent through the Bluetooth module HC-05 ??

    • @IndrekL
      @IndrekL  5 лет назад +1

      It probably is possible but it will be really slow.

    • @sergiodesousafilho
      @sergiodesousafilho 4 года назад

      how about using wireless module? nice video!

  • @ajayjoshi_aj
    @ajayjoshi_aj 4 года назад

    Sir i am getting a corrupted red rectangle at 3:49 some black lines coming at the end of the red rectangle

    • @IndrekL
      @IndrekL  4 года назад +1

      Are you using an original genuine Arduino? For some reason 1000000 baudrate does not work properly with genuine Arduino. You have to lower the baudrate (which also makes the image much slower). If you try it with a Chinise Arduino clone that use the ch340 serial chip then you can use 1000000 baudrate.

    • @ajayjoshi_aj
      @ajayjoshi_aj 4 года назад

      @@IndrekL m using chinese variant of arduino uno but some somehow it shows glitch at 1M for both resolution so I have to lower that baud rate too. Can we send that image data through bluetooth module to another place coz I want to do wireless image transfer? By the way thanx for this great tutorial and happy new year sir

  • @ashleylee1956
    @ashleylee1956 4 года назад

    Hi thx for the tutorial! After I uploaded the code to arduino, I got a blinking RX instead of TX. I didn't see a green square at the midway check point but I was able to get glitchy images that are completely unreadble. Any suggestions?

    • @IndrekL
      @IndrekL  4 года назад

      Hey! If you try with an Arduino WITHOUT any wires (just a plain Arduino connected to you computer). Do you get a clean red square? If you can see clean red image then we can be sure that the Arduino to PC side is working.

    • @ashleylee1956
      @ashleylee1956 4 года назад

      @@IndrekL Yeah I can get a red square.

    • @IndrekL
      @IndrekL  4 года назад

      Then try to check the wires.
      The most critical is the XCLK wire to the camera. Try with shorter wires if possible.

    • @petiovelev97
      @petiovelev97 4 года назад

      Hi I can’t see the red or green screen? Any ideas?

  • @vashurana4213
    @vashurana4213 5 лет назад

    there are some errors in the program how to fix that.any suggestion?

    • @IndrekL
      @IndrekL  5 лет назад

      Can you be more specific? What is the exact error message?

  • @SupremeNoble
    @SupremeNoble 5 лет назад

    Hmm up to 3:40 now, after I click listen, the window closes and this error pops up
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005156, pid=4732, tid=15232
    any idea why?
    Also these came up after I run the application
    Qt: Untested Windows version 10.0 detected!
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    Qt: Untested Windows version 10.0 detected!
    log4cplus:ERROR No appenders could be found for logger (AdSyncNamespace).
    log4cplus:ERROR Please initialize the log4cplus system properly.
    Is this what caused the problem?

    • @IndrekL
      @IndrekL  5 лет назад

      What version of Java are you using? Probably the rxtx library I am using for the serial communication does not support newer java versions. Please try java 1.8.

    • @SupremeNoble
      @SupremeNoble 5 лет назад

      @@IndrekL Oh thanks for the reply, right I thought that was the problem too, I downloaded the latest jdk lol. Will get back to you if it works :)

    • @SupremeNoble
      @SupremeNoble 5 лет назад

      @@IndrekL Okay now it doesn't close the pop up window! But different problem instead rip, no red squares appear when I press listen, and when I try to press anything in the window like change COM or Baud rate it spams this to me:
      Unknown command code '0'
      Unknown command code '0'
      Unknown command code '0
      What might be the problem this time?
      EDIT* No more Unknown command code output, just nothing happens when I click Listen but my tx led starts blinking

    • @IndrekL
      @IndrekL  5 лет назад

      @@SupremeNoble The "Unknown command code" will show if correct baudrate is not selected.
      Did you try with just Arduino (without any wires)? And select the same com port number you used for uploading the sketch to the Arduino. Did you use the default 1Mbit baudrate?

    • @SupremeNoble
      @SupremeNoble 5 лет назад

      @@IndrekL hey yeah, I used 1M which was the problem as I realised I was given a genuine arduino board rip. Got the small 115200 red square to appear :D And right now I just got it to work! Kinda sad the genuine arduino board doesn't allow for bigger image resolution but thanks for the tutorial man!

  • @darklight8235
    @darklight8235 5 лет назад

    Can i send the captured image to a zigbee device and transmit it to another PC?
    I'm getting a frequent error saying , Process finished with exit code -1073740777 (0xC0000417).
    and the java window closes with the above error displaying in the terminal. Any suggestions on what to do ?

    • @IndrekL
      @IndrekL  5 лет назад

      Yes if the zigbee device can receive bytes from serial port.
      It seems that the rxtx library crashes. Does it work for a while and then crash or it doesn't work at all? Did you receive at least green or red screen from Arduino?

    • @darklight8235
      @darklight8235 5 лет назад

      @@IndrekL it doesn't work at all. Neither colours appeared and the java window shuts without displaying anything and the IDE displays error command 6

    • @IndrekL
      @IndrekL  5 лет назад

      @@darklight8235 This is strange. It seems that you receive something and then it crashes.
      Are you using Windows or Mac? If Windows is it 64bit or 32bit Windows?
      What transmission speed did you select?

    • @darklight8235
      @darklight8235 5 лет назад

      @@IndrekL windows 64 bit and the speed as you shown in tutorial.

    • @IndrekL
      @IndrekL  5 лет назад

      What version of Java did you use. I did it with Java 1.8. Did you try Java 1.9 or newer?
      Did you also download 64 bit Java? Maybe just try to use win32 library path instead of win64.
      This is strange I didn't have any crashes.

  • @akhilatalanjeri6503
    @akhilatalanjeri6503 5 лет назад

    i have an error in the image viewer with the main function, any suggestions?

    • @IndrekL
      @IndrekL  5 лет назад

      What is the exact error message?

  • @prajuthagowda4178
    @prajuthagowda4178 5 лет назад

    hello ...im getting an error such that there is no "cameraOV7670.h" file ..i dnt kw hw to solve this as im a beginner ..can u please help me with this ..
    thank you

    • @IndrekL
      @IndrekL  5 лет назад

      Hey!
      After downloading the project from Github you have to copy "LiveOV7670-master\src\lib\LiveOV7670Library" into Arduino "libraries" folder.
      For example in Windows it would be in
      C:\Users\\Documents\Arduino\libraries

    • @prajuthagowda4178
      @prajuthagowda4178 5 лет назад +1

      Thanks for the reply. It worked and im able to get the image

    • @IndrekL
      @IndrekL  5 лет назад

      @@prajuthagowda4178 That's great! It's good to get feedback when someone gets it working!

  • @fayez1104
    @fayez1104 5 лет назад

    when i added the library and run the project i got this error:
    Error: Could not find or load main class C:\Users\abron\Desktop\CAM\ArduinoImageCapture-master\lib
    xtx-2.2pre2-bins\win64
    could you help me how to solve it please :(

    • @IndrekL
      @IndrekL  5 лет назад

      What operating system do you have? Maybe you don't have 64 bit windows.

    • @fayez1104
      @fayez1104 5 лет назад

      Indrek I have 64 bit windows and I also tried the other libraries but all give the same error

    • @IndrekL
      @IndrekL  5 лет назад +1

      @@fayez1104 Do you get the same error If you completely remove "-Djava.library.path" parameter from vm options?
      What is your Java versioni? I tried with 1.8.

  • @TheGugafodao
    @TheGugafodao 5 лет назад

    Hi , Can i Connected Multiple Cameras ? , I'm trying to use a Arduino Mega with 3 camera modules...

    • @IndrekL
      @IndrekL  5 лет назад

      No, Arduino is too weak for that. It can barely handle one camera.

    • @TheGugafodao
      @TheGugafodao 5 лет назад

      @@IndrekL I was thinking if is possible to use a relay to alternate the camera ?

    • @IndrekL
      @IndrekL  5 лет назад

      @@TheGugafodao You probably could set it up in the way that you can switch between the cameras. The tricky part is that OV7670 doesn't have chip select PIN. This means that you have to have different sets of PINs for each camera or you have to build a switching schematics yourself.

    • @TheGugafodao
      @TheGugafodao 5 лет назад

      @@IndrekL I was thinking to connect the three cameras on the same port and use a reed relay to turn off the 3.3v input for each camera. Im building a Vertical Farm , i have a shelve with 3 spaces , so im think to do a time lapse of the plants , i just need to take a shoot and save...

    • @TheGugafodao
      @TheGugafodao 5 лет назад

      @@IndrekL Maybe if i use a Reed Relay in Parallel to 3.3V INPUTS AND SOME DATA can works , basicly i create a variable SelectedCamera who will turn on/off the relays of data

  • @sgrh5016
    @sgrh5016 3 года назад

    what should i do after download the ov7670,im confused

    • @sgrh5016
      @sgrh5016 3 года назад

      i got it but have another promblem,i open the IDEA there is no imprort butten

    • @IndrekL
      @IndrekL  3 года назад

      Hey! It is possible that IntelliJ has changed a little. Try the "OPEN" button. It probably works as import also.

  • @wan_loq6948
    @wan_loq6948 3 года назад

    Really cool Tutorial... Please How can one send this stream over Wi-Fi using the ESP-01 to a web address? If you can, please help out with a circuit diagram or code...

  • @patilmm123
    @patilmm123 5 лет назад

    I am getting only green square but not getting image. can u help me.I am pretty sure about my wiring

    • @patilmm123
      @patilmm123 5 лет назад

      please help me in this..why my camera is not sending an image. is it damaged or anything else? software only shows green square and then it freezes, even arduino tx stops. it only starts when i press reset button of arduino. Is it a software problem or hardware? please reply soon

    • @IndrekL
      @IndrekL  5 лет назад

      @@patilmm123 Hey! Green is good, it means that the camera is running (sending configuration was successful). You should check VSYNC and Pixel clock wires.

    • @patilmm123
      @patilmm123 5 лет назад

      @@IndrekL yup i have checked all connections again. all is good. but still not working. TX LED turns on when i press reset. then it gives green frame. and then at the point where it should start next frame scan,tx LED blinks for ones and stops operating. all the connections are good. Don't know what to do.

    • @patilmm123
      @patilmm123 5 лет назад

      @@IndrekL i think my camera is faulty. Vsync is not working.i gave up... By d way thanks for your time, your tutorial is awesome 👍🏻 keep it up.

  • @mdasifadnan7180
    @mdasifadnan7180 5 лет назад

    where is the code?( which file)
    i cant find out it in github?

    • @IndrekL
      @IndrekL  5 лет назад

      Click on the green button "Clone or download" (->"Download ZIP") from github: github.com/indrekluuk/LiveOV7670
      Then you have to copy required libraries to your Arduino "libraries" folder (usually in your Documents folder under "Arduino/libraries").
      From the downloaded zip file the content of folder "LiveOV7670-master/src/lib" copy to "Documents/Arduino/libraries"
      Arduino project that can be opened in Arduino IDE is in "LiveOV7670-master/src/LiveOV7670"

  • @katiakhennoune937
    @katiakhennoune937 5 лет назад

    Hi!
    I'm trying to do the same project. I followed all the steps but I have a problem I can not get an image at all
    please help me !
    thank you

    • @IndrekL
      @IndrekL  5 лет назад

      Hey! Did you get the java application running? If you just connect and select correct port and baud rate you should see red image.

    • @katiakhennoune937
      @katiakhennoune937 5 лет назад

      @@IndrekL yes I have selected the correct port and when I try to take the picture it shows me this message in the application java:
      Unknown command code '0' Unknown command code '-128'

    • @IndrekL
      @IndrekL  5 лет назад

      @@katiakhennoune937 Did you download the files from GitHub just recently? There was a similar problem for someone who downloaded the files last year. I made some significant changes at end of last year.

    • @katiakhennoune937
      @katiakhennoune937 5 лет назад

      @@IndrekL yes I downloaded them last week

    • @IndrekL
      @IndrekL  5 лет назад

      Try with slower baud rate.
      I assume you already set in setup.h
      #define EXAMPLE 3
      Now in ExampleUart.cpp set
      #define UART_MODE 4
      (by default it is #define UART_MODE 2)
      and re-upload the code to Arduino
      This sets the communication speed to 115200.
      Now when connecting select in the java program "115200"

  • @farahnadiah492
    @farahnadiah492 5 лет назад

    Hi. Why i cannot add the jdk file. It stated "not a valid home for jdk"

    • @IndrekL
      @IndrekL  5 лет назад

      You probably didn't select correct folder for JDK. Did the folder look something like this?
      C:\Program Files\Java\jdk1.8.0_131
      NB! it has to be "jdk" and not "jre"

    • @farahnadiah492
      @farahnadiah492 5 лет назад

      @@IndrekL the folder look like this
      c:\progrm files\java\jdk1.80_211

    • @farahnadiah492
      @farahnadiah492 5 лет назад

      im not sure if i wrongly downloaded the jdk file

  • @axemaster9915
    @axemaster9915 2 года назад

    how can we save the images ?

  • @darkkkkk2935
    @darkkkkk2935 4 года назад +1

    Sir can the video monitored live?

    • @IndrekL
      @IndrekL  4 года назад +1

      Not over serial communication. It is too slow.

  • @PerchEagle
    @PerchEagle 2 года назад

    Very good job and demonstrating the problem with the slow refresh of the next frame. In my opinion it doesn't worth implementing it in a project and I'm thinking of throwing it.
    Maybe it's good for taking a picture and that's it. Yes it can be useful for this application and it takes a colorful picture which is nice.
    I don't know what application I might use it to take pictures for something.

  • @aaravjaisingh5437
    @aaravjaisingh5437 2 месяца назад

    not able to open file in IDE

  • @kartiniafriani9460
    @kartiniafriani9460 4 года назад

    can use C program language?

  • @ragavi.v7192
    @ragavi.v7192 5 лет назад

    whenever i add configuration it shows error while adding main class-MainWindow

    • @IndrekL
      @IndrekL  5 лет назад

      What is the exact error? Can you copy it here?

    • @ragavi.v7192
      @ragavi.v7192 5 лет назад

      @@IndrekL Error: Could not find or load main class E:\ArduinoImageCapture-master

    • @IndrekL
      @IndrekL  5 лет назад

      @@ragavi.v7192 Can you make a screenshot of where exactly you get this error? If I edit the "run" configuration I can just select "MainWindow" and it works.

  • @thedementor3496
    @thedementor3496 5 лет назад

    sir I followed your steps and my project worked . But now I want to send the streaming videos through esp8266 wifi module to my android phone .So sir please guide me .Thanks :)

    • @IndrekL
      @IndrekL  5 лет назад +1

      I haven't had time to do it myself yet. At some point in the future I will try to send image data over a wifi module. Right now it's hard for me to help you since I don't know exactly how to do it yet.

    • @thedementor3496
      @thedementor3496 5 лет назад

      @@IndrekL ohk sir looking forward for your help . Thank :)

  • @monkas2738
    @monkas2738 5 лет назад

    Hello, great tutorial but my frames have some stuttering, how can I fix it?

    • @IndrekL
      @IndrekL  5 лет назад

      What does that mean exactly? Can you make a screenshot or a video clip of it?

    • @monkas2738
      @monkas2738 5 лет назад

      @Indrek sure, it`s like this drive.google.com/open?id=1CZR1HocQfSJmfNGSRyVyZOctc_nSX2sU
      but my `lines` appear only on the right side of a frame

  • @abanvarghese4000
    @abanvarghese4000 5 лет назад

    Is it necessary to use 680 and 1k resistors for XCLK?

    • @IndrekL
      @IndrekL  5 лет назад

      Arduino digital output is 5V but the camera is designed for 3.3V. With those resistors I am creating a voltage divider that reduced input voltage of XCLK signal below 3.3V. You can use other resistors as long as the output of the voltage divider is below 3.3V.

    • @abanvarghese4000
      @abanvarghese4000 5 лет назад

      @@IndrekL I used two 4.7k resistors so voltage to XCLK will be around 2.5 volt. But when I did the mid check as you did the green rectangle didn't came, I checked the connections, reduced the baud rate, reset the Arduino, still no change.

    • @IndrekL
      @IndrekL  5 лет назад

      @@abanvarghese4000 Maybe 2 x 4.7k is too high and the clock signal starts to deform too much. Do you have two resistors somewhere between 100 and 1k?

    • @abanvarghese4000
      @abanvarghese4000 5 лет назад

      @@IndrekL Okay I'll try with smaller resistor values and thanks for your help.☺

    • @abanvarghese4000
      @abanvarghese4000 5 лет назад

      @Indrek Now when I connect all the pixel data lines, the image capture window pops up. When I set the baud rate and press "Listen" the following error is displayed:
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005156, pid=10448, tid=10572
      #
      # JRE version: Java(TM) SE Runtime Environment (12.0.1+12) (build 12.0.1+12)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (12.0.1+12, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
      # Problematic frame:
      # C [rxtxSerial.dll+0x5156]
      #
      # No core dump will be written. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # C:\Users\aban5\Desktop\ArduinoImageCapture-master\hs_err_pid7120.log
      #
      # If you would like to submit a bug report, please visit:
      # bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Process finished with exit code 1
      Please help.

  • @tuanbui-yg2po
    @tuanbui-yg2po 5 лет назад

    I did anything in the video but after click "listen " nothing happen

    • @IndrekL
      @IndrekL  5 лет назад

      You should see at least a red rectangle. Did you select the same COM port number that you used in Arduino IDE to load the LiveOV7670 code to Arduino?

    • @tuanbui-yg2po
      @tuanbui-yg2po 5 лет назад

      @@IndrekL yes i did. i changed . but still not red rectangle or anything

    • @IndrekL
      @IndrekL  5 лет назад

      @@tuanbui-yg2po Click on "Listen" and then push reset button on Arduino. Do you see the "TX" LED light up on Arduino?

    • @tuanbui-yg2po
      @tuanbui-yg2po 5 лет назад

      ​@@IndrekL after reset the Led near TX RX is blinking but TX RX is still off.

    • @DiptajitChaurangi
      @DiptajitChaurangi 5 лет назад

      @@IndrekL Yes after clicking Listen the tx led glows up for few seconds then it turns off...and nothing is coming in Image capture nit even the red square

  • @ITShareTR
    @ITShareTR 3 года назад

    Can i decrease arduino code 9600hrz

    • @IndrekL
      @IndrekL  3 года назад

      Do you mean baudrate of 9600? It would way too slow to transfer image data.

    • @ITShareTR
      @ITShareTR 3 года назад

      @@IndrekL yes l know but hc05 not working at 115200

    • @ITShareTR
      @ITShareTR 3 года назад

      I did it. bluetooth hc05 module causes error 115200hz decreased it to 57600hz and image format is grayscale it works well know thanks for your share about ov7670

    • @IndrekL
      @IndrekL  3 года назад

      Hey! This is great news that you got it working! I haven't tried the wireless modules myself yet. Usually those are quite slow and it makes the image transfer more complicated.

  • @lotromexico
    @lotromexico 5 лет назад

    Will this work for the arduino Due?

    • @IndrekL
      @IndrekL  5 лет назад

      Currently it doesn't support Due. Due has completely different processor compared to Uno/Nano/Mega

  • @sifunisosimushi8801
    @sifunisosimushi8801 4 года назад

    This was really impressive... Is it possible to send the image as a message to a phone?

    • @IndrekL
      @IndrekL  4 года назад

      Currently, I have only made it work over USB. Theoretically it should be possible with a WIFI module to send it over network to any device.

  • @beyzakdnz
    @beyzakdnz 5 лет назад

    Thank you very much. Very useful video for me. My OS is windows. Does it work on my computer?

    • @IndrekL
      @IndrekL  5 лет назад +1

      Yes, you can download java and IntelliJ for Windows.

  • @yuriyarapov1978
    @yuriyarapov1978 3 года назад

    Не работает библиотека для win64. не видит их от слова совсем

  • @mishayakubchuk4192
    @mishayakubchuk4192 5 лет назад +1

    Thank you for this video!I have a question,how save image on PC?

    • @IndrekL
      @IndrekL  5 лет назад +1

      It shouldn't be hard to add saving capability to the java application. I have a really busy period right now but I can add it at some point in the future.

    • @mishayakubchuk4192
      @mishayakubchuk4192 5 лет назад

      @@IndrekL It would be great!How soon could you do this?About a month?

    • @IndrekL
      @IndrekL  5 лет назад +1

      @@mishayakubchuk4192 I'll try to find time to do it within a month.

  • @aindriyabarua5141
    @aindriyabarua5141 5 лет назад +5

    Hey!! I am so happy you made this video! I have been working on this with your help, and I will continue again after my exams. Guys, if anyone is reading this comment, I just wanna let you know that this guy is the most helpful guy i ever found on the internet. He. has bern constantly helping me in doing this project. Lots if love!! Please support his effort!

    • @IndrekL
      @IndrekL  5 лет назад +1

      Your question gave me the idea to make a video about it. Before that the ArduinoImageCapture project was just an experiment I did two years ago.
      Now I am thinking that sending image over serial rather than to the screen might be even better place to start experimenting with the camera since it requires less components.
      How did the test/exam/presentation go?

    • @aindriyabarua5141
      @aindriyabarua5141 5 лет назад

      @@IndrekL The presentation went good, they understood the complication and I could explain why I didn't get output, and the fact that the interfacing would have been much easier with a fifo in the camera itself. So it went pretty much fine. This interfacing is part of a bigger project i am trying to do. (I would love to connect with you better, on mails or hangouts or anywhere else if you like when i continue with the project again) :)

    • @AsimSiddiqui007
      @AsimSiddiqui007 5 лет назад +2

      Thanks for recommeding him. His videos are good indeed.

  • @jumbo999614
    @jumbo999614 4 года назад

    So just picture. No video?

    • @IndrekL
      @IndrekL  4 года назад +1

      Yes, the serial communication from Arduino is very slow.

  • @meande-man5351
    @meande-man5351 5 лет назад +2

    I have a red square! Noob + red square = happy = subscribe. Thankyou

    • @IndrekL
      @IndrekL  5 лет назад

      Thanks! Have you already tried the next step of connecting the camera to get the green square?

  • @RixtronixLAB
    @RixtronixLAB Год назад

    Nice video shot, thanks for sharing it, keep it up :)

  • @riteshpawar9953
    @riteshpawar9953 5 лет назад

    Is it possible without usb ?

    • @IndrekL
      @IndrekL  5 лет назад +1

      Yes, possibly with a wifi module.

  • @alexsherzer
    @alexsherzer 5 лет назад

    I lot of time searched good explanation, how work with VGA&Arduino, and I did it. It was amazing! Thank u very match! From me respect, subscribe & like!

  • @ajdgdkskfshsjsk666
    @ajdgdkskfshsjsk666 5 лет назад

    Where i can get arduino code?

    • @IndrekL
      @IndrekL  5 лет назад

      Link to the github project is in the description box.

  • @mohammadshajahan2165
    @mohammadshajahan2165 4 года назад

    is it work with esp8266 controller

    • @mohammadshajahan2165
      @mohammadshajahan2165 4 года назад

      sir replay me

    • @IndrekL
      @IndrekL  4 года назад

      Hey! My library doesn't work with the ESP8266 at the moment.
      ESP8266 only has 11 available IO pins and it might not be enough.

    • @mohammadshajahan2165
      @mohammadshajahan2165 4 года назад

      @@IndrekL tq for quick replay. sir plz suggest me a library which works with esp8266 i just need to see the captured pics im my pc

    • @IndrekL
      @IndrekL  4 года назад

      Maybe you can check this: ruclips.net/video/XqfSz1jZ2JA/видео.html
      It uses ArduCAM mini instead of OV7670

    • @mohammadshajahan2165
      @mohammadshajahan2165 4 года назад

      @@IndrekL tq sir i will try this one

  • @mirochlebovec6586
    @mirochlebovec6586 3 года назад

    can you please make wifi streaming

  • @defaultdef7221
    @defaultdef7221 3 года назад

    can i launch it on Mega ?

    • @IndrekL
      @IndrekL  3 года назад

      Yes, it works with Mega also. Connections are a little different: github.com/indrekluuk/LiveOV7670#connections-for-arduino-mega

  • @ITShareTR
    @ITShareTR 3 года назад

    İf it is possible how

  • @marcelobenitezabc
    @marcelobenitezabc 5 лет назад +2

    very useful..thank you!

  • @muzammilzainuddin291
    @muzammilzainuddin291 5 лет назад +2

    Nice thanks for this video

  • @shootoki
    @shootoki 5 лет назад

    i can't run the app

    • @IndrekL
      @IndrekL  5 лет назад

      What is the exact problem or error you got?