My wire connection is correct according to your video guidance, but still the Green image is not came just Red image is coming. Please guide Sir.Reply this comment
@4xomg3 ай бұрын
Can you please do a tutorial for OV7670 Camera Module with Arduino Mega 2560
@sriharisridhar3564 жыл бұрын
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)
@IndrekL4 жыл бұрын
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.
@sriharisridhar3564 жыл бұрын
@@IndrekL when I press the reset button, the tx lights up for a while and then the java application crashes
@IndrekL4 жыл бұрын
@@sriharisridhar356 Did you download java version 1.8? The txrx library I am using doesn't support newer java versions.
@valarmorghulisx4 жыл бұрын
@@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 ?
@aydinliefe14862 жыл бұрын
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
@stickylabhome75683 жыл бұрын
that's posible connect cam to ESP32-Wrover?
@ITShareTR3 жыл бұрын
I did it and everything works well but i tried it with hc05 and hc05 gives error it can not work at 115200 baudrate
@wpprohelper979610 ай бұрын
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.
@smartassist9700 Жыл бұрын
How close can I video clearly? How far away can you get a clear face video? Please
@ajayjoshi_aj5 жыл бұрын
Sir i am getting a corrupted red rectangle at 3:49 some black lines coming at the end of the red rectangle
@IndrekL5 жыл бұрын
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_aj5 жыл бұрын
@@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
@ITShareTR3 жыл бұрын
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
@aindriyabarua51416 жыл бұрын
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!
@IndrekL6 жыл бұрын
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?
@aindriyabarua51416 жыл бұрын
@@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) :)
@AsimSiddiqui0076 жыл бұрын
Thanks for recommeding him. His videos are good indeed.
@JosephPachuau Жыл бұрын
Can i use 550 ohms instead of 680?
@bvenkat81402 жыл бұрын
After capturing the video on to the laptop screen, can we transmit it using 4g lte modem?
@francogentili52965 жыл бұрын
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.
@IndrekL5 жыл бұрын
It is possible but it will be VERY slow.
@janathanu13843 жыл бұрын
What is the application used for need this camera module? Please tell
@prestonglenn15272 жыл бұрын
Would this work with the new Arduino nano 33 IoT? Its a ATSAMD21 board and not a ATmega328 like the code requires...
@gabrielcalvet63824 жыл бұрын
how can i do this same project in esp32 nodemcu?
@alexsherzer5 жыл бұрын
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!
@IndrekL5 жыл бұрын
Thanks!
@harsithareddy7921 Жыл бұрын
@@IndrekLhii sir
@calpardo5 жыл бұрын
Can I use this camera to process images for “ Object Recognition “ ?
@ProlabsRobotics4 ай бұрын
not able to open file in IDE
@cool9first4 жыл бұрын
It keeps saying that the it couldnt find my MainWindow class from the ArduinoImageCapture-master- module
@malaikawaheed4725 жыл бұрын
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
@SupremeNoble5 жыл бұрын
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?
@IndrekL5 жыл бұрын
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.
@SupremeNoble5 жыл бұрын
@@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 :)
@SupremeNoble5 жыл бұрын
@@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
@IndrekL5 жыл бұрын
@@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?
@SupremeNoble5 жыл бұрын
@@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!
@svsvsvvbb5 жыл бұрын
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
@IndrekL5 жыл бұрын
Can you upload a screenshot of the image to imgur or somewhere and show what you mean exactly?
@svsvsvvbb5 жыл бұрын
@@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
@DesertVox5 жыл бұрын
Can this be sent over the NRF24L01?
@VitorJTekkRodrigues5 жыл бұрын
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?
@IndrekL5 жыл бұрын
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"
@VitorJTekkRodrigues5 жыл бұрын
@@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)
@IndrekL5 жыл бұрын
@@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.
@VitorJTekkRodrigues5 жыл бұрын
@@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.
@IndrekL5 жыл бұрын
@@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
@siddanthchowdary56112 жыл бұрын
Can extract text by using this proxess
@semihkaragulle59015 жыл бұрын
cannot find library gives error ?
@IndrekL5 жыл бұрын
Did you copy content of the "lib" folder into Arduino "libraries" folder?
@darkkkkk29355 жыл бұрын
Sir can the video monitored live?
@IndrekL5 жыл бұрын
Not over serial communication. It is too slow.
@wangmaolin68074 жыл бұрын
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?
@IndrekL4 жыл бұрын
I am not sure if the resolution is high enough. I guess it depends how close the barcode is to the camera.
@wangmaolin68074 жыл бұрын
@@IndrekL No problem. At first, I just want to make a prototype and can let the camera close the barcode.
@axemaster99152 жыл бұрын
how can we save the images ?
@moulisharma98145 жыл бұрын
It's showing error...... RESOLUTION_QVGA_320*240 is not a member of cameraOV7670
@IndrekL5 жыл бұрын
It should be RESOLUTION_QVGA_320x240 (x instead of *)
@maqeelqureshi5 жыл бұрын
Could you explain un-FIFO version? How would I know that mine is without FIFO?
@IndrekL5 жыл бұрын
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
@dondixon42064 жыл бұрын
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?
@IndrekL4 жыл бұрын
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.
@dondixon42064 жыл бұрын
@@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... ;-)
@IndrekL4 жыл бұрын
@@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.
@dondixon42064 жыл бұрын
@@IndrekL Aha! I figured that. Yes. I will ask for the FIFO version. Thank you so kindly!
@dondixon42064 жыл бұрын
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-/
@mrilhamtech66324 жыл бұрын
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 ?
@IndrekL4 жыл бұрын
Hey! You have to copy the "Adafruit_GFX_Library" and "LiveOV7670Library" from "src/lib" to your arduino "libraries" folder. C:\Users\\Documents\Arduino\libraries
@jpc11513 жыл бұрын
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.
@IndrekL3 жыл бұрын
Hey! The ArduinoImageCapture program has a save button to save the images onto your computer.
@sgrh50163 жыл бұрын
what should i do after download the ov7670,im confused
@sgrh50163 жыл бұрын
i got it but have another promblem,i open the IDEA there is no imprort butten
@IndrekL3 жыл бұрын
Hey! It is possible that IntelliJ has changed a little. Try the "OPEN" button. It probably works as import also.
@samueladdisu37294 жыл бұрын
gives me 'camerov7670.h no such file or directory' error when i upload ther arduino code how do i fix that?
@IndrekL4 жыл бұрын
Hey! Copy the two libraries "LiveOV7670Library" and "Adafruit_GFX_Library" from "src/lib" to your Arduino "libraries" folder
@petiovelev974 жыл бұрын
Adafruit_GFX.h: No such file or Adafruit_GFX.h: No such file or directory directory can you help me ?
@petiovelev974 жыл бұрын
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
@IndrekL4 жыл бұрын
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").
@petiovelev974 жыл бұрын
@@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
@RixtronixLAB Жыл бұрын
Nice video shot, thanks for sharing it, keep it up :)
@jayeshwaghmare29894 жыл бұрын
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?
@IndrekL4 жыл бұрын
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.
@jayeshwaghmare29894 жыл бұрын
@@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!
@flash16974 жыл бұрын
May i know why you use 10K, 1K and 680 resistor?
@IndrekL4 жыл бұрын
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.
@ITShareTR3 жыл бұрын
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 :(
@IndrekL3 жыл бұрын
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.
@ITShareTR3 жыл бұрын
@@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
@IndrekL3 жыл бұрын
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.
@ITShareTR3 жыл бұрын
@@IndrekL thanks for advice
@wan_loq69484 жыл бұрын
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...
@cesaraugustoserranobaza4694 жыл бұрын
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?
@IndrekL4 жыл бұрын
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.
@cesaraugustoserranobaza4694 жыл бұрын
@@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 :/
@IndrekL4 жыл бұрын
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.
@cesaraugustoserranobaza4694 жыл бұрын
@@IndrekL Thank you so much. I'll check it out.
@farahnadiah4925 жыл бұрын
Hi. I have after run the application. It showed "Error:java: invalid source release: 12"
@IndrekL5 жыл бұрын
Did the window open or you got the error immediately after you clicked "run"?
@mishayakubchuk41925 жыл бұрын
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.
@mishayakubchuk41925 жыл бұрын
So,when i comment "CLKPR = 0x80;CLKPR = 1;" in "initializeScreenAndCamera()",i get red rectangle. Is it right?
@IndrekL5 жыл бұрын
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.
@mishayakubchuk41925 жыл бұрын
@@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?
@IndrekL5 жыл бұрын
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?
@mishayakubchuk41925 жыл бұрын
@@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.
@nesihot6 жыл бұрын
Except of the ordinary wires- what are the other wires that you connect to the camera ? How are they called?
@IndrekL6 жыл бұрын
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
@ashfaqbyz4 жыл бұрын
very useful, but is it the same way if i use wemos d1 r2 with ov5642 camera moduls? sorry if my english is bad
@IndrekL4 жыл бұрын
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.
@ashfaqbyz4 жыл бұрын
Thanks sir.. but, Is it the same way if I use OV5642? Including using the same resistor?
@denniskamala35165 жыл бұрын
@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?
@IndrekL5 жыл бұрын
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.
@alexsherzer5 жыл бұрын
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?
@IndrekL5 жыл бұрын
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
@IndrekL5 жыл бұрын
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.
@alexsherzer5 жыл бұрын
@@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!
@IndrekL5 жыл бұрын
@@alexsherzer I added a chapter "Building ArduinoImageCapture.jar" at the end of the "readme" page on Github: github.com/indrekluuk/ArduinoImageCapture
@alexsherzer5 жыл бұрын
@@IndrekL Thanks you very mutch!
@aminekidane57575 жыл бұрын
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'
@IndrekL5 жыл бұрын
Did you copy the the libraries under "libraries" folder?
@aminekidane57575 жыл бұрын
@@IndrekL yeah I have followed all the libraries in their respective position. But I haven't got the solution. Waiting for positive response.
@IndrekL5 жыл бұрын
@@aminekidane5757 If you download a fresh copy of the code from github and do not do any changes do you still get this error?
@aminekidane57575 жыл бұрын
@@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
@IndrekL5 жыл бұрын
@@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.)
@farahnadiah4925 жыл бұрын
Hi. Why i cannot add the jdk file. It stated "not a valid home for jdk"
@IndrekL5 жыл бұрын
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"
@farahnadiah4925 жыл бұрын
@@IndrekL the folder look like this c:\progrm files\java\jdk1.80_211
@farahnadiah4925 жыл бұрын
im not sure if i wrongly downloaded the jdk file
@denizdurer62954 жыл бұрын
Hello. Can this camera module work with arduino nano. I have no arduino past and I do not want money waste.
@IndrekL4 жыл бұрын
Yes, it will work with an Nano also. Arduino Uno and Nano are basically the same.
@shivangsinha94895 жыл бұрын
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
@IndrekL5 жыл бұрын
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
@ashfaqbyz4 жыл бұрын
Is it the same way if I use OV5642? Including using the same resistor? Thank you sir
@IndrekL4 жыл бұрын
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.
@mirochlebovec65863 жыл бұрын
can you please make wifi streaming
@АлексейТ-ь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.
@IndrekL4 жыл бұрын
Unfortunately, I can't slow the camera down any further. That makes it impossible to send bigger resolutions over 115200 baudrate
@aminekidane57575 жыл бұрын
hello where can I found the arduino code...its not in the description video.
@IndrekL5 жыл бұрын
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.
@patilmm1235 жыл бұрын
I am getting only green square but not getting image. can u help me.I am pretty sure about my wiring
@patilmm1235 жыл бұрын
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
@IndrekL5 жыл бұрын
@@patilmm123 Hey! Green is good, it means that the camera is running (sending configuration was successful). You should check VSYNC and Pixel clock wires.
@patilmm1235 жыл бұрын
@@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.
@patilmm1235 жыл бұрын
@@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.
@kartiniafriani94604 жыл бұрын
can use C program language?
@GABYHAYEU4 жыл бұрын
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 ^^
@IndrekL4 жыл бұрын
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.
@GABYHAYEU4 жыл бұрын
@@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
@IndrekL4 жыл бұрын
@@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.
@SSTronics6 жыл бұрын
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,
@IndrekL6 жыл бұрын
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
@SSTronics6 жыл бұрын
@@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
@IndrekL6 жыл бұрын
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.
@vashurana42135 жыл бұрын
there are some errors in the program how to fix that.any suggestion?
@IndrekL5 жыл бұрын
Can you be more specific? What is the exact error message?
@sontungpham99425 жыл бұрын
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)
@IndrekL5 жыл бұрын
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.
@sontungpham99425 жыл бұрын
@@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?
@ibnumrichaflor5 жыл бұрын
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
@IndrekL5 жыл бұрын
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
@ibnumrichaflor5 жыл бұрын
@@IndrekL thank you , i"ll check it
@TheGugafodao5 жыл бұрын
Hi , Can i Connected Multiple Cameras ? , I'm trying to use a Arduino Mega with 3 camera modules...
@IndrekL5 жыл бұрын
No, Arduino is too weak for that. It can barely handle one camera.
@TheGugafodao5 жыл бұрын
@@IndrekL I was thinking if is possible to use a relay to alternate the camera ?
@IndrekL5 жыл бұрын
@@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.
@TheGugafodao5 жыл бұрын
@@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...
@TheGugafodao5 жыл бұрын
@@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
@prajuthagowda41786 жыл бұрын
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
@IndrekL6 жыл бұрын
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
@prajuthagowda41785 жыл бұрын
Thanks for the reply. It worked and im able to get the image
@IndrekL5 жыл бұрын
@@prajuthagowda4178 That's great! It's good to get feedback when someone gets it working!
@monkas27385 жыл бұрын
Hello, great tutorial but my frames have some stuttering, how can I fix it?
@IndrekL5 жыл бұрын
What does that mean exactly? Can you make a screenshot or a video clip of it?
@monkas27385 жыл бұрын
@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
@telband53143 жыл бұрын
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?
@IndrekL3 жыл бұрын
Check the wiring. The clock signal may be noisy. Maybe try to use shorter wires.
@telband53143 жыл бұрын
@@IndrekL THanks for the quick reply. Used short wires on the clock, but still getting this bad signal
@IndrekL3 жыл бұрын
@@telband5314 Try lowering the framerate to see if it gets better. Try #define UART_MODE 4
@telband53143 жыл бұрын
@@IndrekL That seems to stop the gray glitch screen, however now i got a more colored blurry screen...
@IndrekL3 жыл бұрын
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.
@darklight82355 жыл бұрын
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 ?
@IndrekL5 жыл бұрын
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?
@darklight82355 жыл бұрын
@@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
@IndrekL5 жыл бұрын
@@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?
@darklight82355 жыл бұрын
@@IndrekL windows 64 bit and the speed as you shown in tutorial.
@IndrekL5 жыл бұрын
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.
@mishayakubchuk41925 жыл бұрын
Thank you for this video!I have a question,how save image on PC?
@IndrekL5 жыл бұрын
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.
@mishayakubchuk41925 жыл бұрын
@@IndrekL It would be great!How soon could you do this?About a month?
@IndrekL5 жыл бұрын
@@mishayakubchuk4192 I'll try to find time to do it within a month.
@PerchEagle3 жыл бұрын
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.
@akhilatalanjeri65035 жыл бұрын
i have an error in the image viewer with the main function, any suggestions?
@IndrekL5 жыл бұрын
What is the exact error message?
@ashleylee19564 жыл бұрын
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?
@IndrekL4 жыл бұрын
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.
@ashleylee19564 жыл бұрын
@@IndrekL Yeah I can get a red square.
@IndrekL4 жыл бұрын
Then try to check the wires. The most critical is the XCLK wire to the camera. Try with shorter wires if possible.
@petiovelev974 жыл бұрын
Hi I can’t see the red or green screen? Any ideas?
@vishal535125 жыл бұрын
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?
@IndrekL5 жыл бұрын
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.
@IndrekL5 жыл бұрын
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.
@fayez11045 жыл бұрын
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 :(
@IndrekL5 жыл бұрын
What operating system do you have? Maybe you don't have 64 bit windows.
@fayez11045 жыл бұрын
Indrek I have 64 bit windows and I also tried the other libraries but all give the same error
@IndrekL5 жыл бұрын
@@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.
@IndrekL6 жыл бұрын
Wiring part starts at 5:04
@meande-man53515 жыл бұрын
I'll be trying it soon. Keep you posted.
@meande-man53515 жыл бұрын
Hooray! Ive got images coming through. The image is very poor, Im using a mac and its set ti 115200. maybe thats why. But the fact that I got it going is awesome, thank you very much for the video.
@IndrekL5 жыл бұрын
@@meande-man5351 Yes with low transfer rate resolution is low. If you move the camera it will smear the image since it is slowly scanning it line by line in real time.
@meande-man53515 жыл бұрын
@@IndrekL I played around with the focus and now its pretty good. Its gone from a blur to a clear picture.
@yathestdadhich16524 жыл бұрын
Hey @indrek thanks for this wonderful project, i successfully completed it and it's working properly now. In addition to that. I would like to use the remaining Arduino digital pins 8,9,10,11 for Glowing RGB LEDs along with the same project. So where should I add my program in the code for camera. Thanks again..
@tuanbui-yg2po5 жыл бұрын
I did anything in the video but after click "listen " nothing happen
@IndrekL5 жыл бұрын
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-yg2po5 жыл бұрын
@@IndrekL yes i did. i changed . but still not red rectangle or anything
@IndrekL5 жыл бұрын
@@tuanbui-yg2po Click on "Listen" and then push reset button on Arduino. Do you see the "TX" LED light up on Arduino?
@tuanbui-yg2po5 жыл бұрын
@@IndrekL after reset the Led near TX RX is blinking but TX RX is still off.
@DiptajitChaurangi5 жыл бұрын
@@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
@mdasifadnan71805 жыл бұрын
where is the code?( which file) i cant find out it in github?
@IndrekL5 жыл бұрын
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"
@ragavi.v71925 жыл бұрын
whenever i add configuration it shows error while adding main class-MainWindow
@IndrekL5 жыл бұрын
What is the exact error? Can you copy it here?
@ragavi.v71925 жыл бұрын
@@IndrekL Error: Could not find or load main class E:\ArduinoImageCapture-master
@IndrekL5 жыл бұрын
@@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.
@katiakhennoune9375 жыл бұрын
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
@IndrekL5 жыл бұрын
Hey! Did you get the java application running? If you just connect and select correct port and baud rate you should see red image.
@katiakhennoune9375 жыл бұрын
@@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'
@IndrekL5 жыл бұрын
@@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.
@katiakhennoune9375 жыл бұрын
@@IndrekL yes I downloaded them last week
@IndrekL5 жыл бұрын
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"
@vaishnavithakare69064 жыл бұрын
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??
@abanvarghese40005 жыл бұрын
Is it necessary to use 680 and 1k resistors for XCLK?
@IndrekL5 жыл бұрын
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.
@abanvarghese40005 жыл бұрын
@@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.
@IndrekL5 жыл бұрын
@@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?
@abanvarghese40005 жыл бұрын
@@IndrekL Okay I'll try with smaller resistor values and thanks for your help.☺
@abanvarghese40005 жыл бұрын
@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.
@jumbo9996144 жыл бұрын
So just picture. No video?
@IndrekL4 жыл бұрын
Yes, the serial communication from Arduino is very slow.
@beyzakdnz5 жыл бұрын
Thank you very much. Very useful video for me. My OS is windows. Does it work on my computer?
@IndrekL5 жыл бұрын
Yes, you can download java and IntelliJ for Windows.
@ITShareTR3 жыл бұрын
Can i decrease arduino code 9600hrz
@IndrekL3 жыл бұрын
Do you mean baudrate of 9600? It would way too slow to transfer image data.
@ITShareTR3 жыл бұрын
@@IndrekL yes l know but hc05 not working at 115200
@ITShareTR3 жыл бұрын
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
@IndrekL3 жыл бұрын
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.
@sifunisosimushi88014 жыл бұрын
This was really impressive... Is it possible to send the image as a message to a phone?
@IndrekL4 жыл бұрын
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.
@ajdgdkskfshsjsk6665 жыл бұрын
Where i can get arduino code?
@IndrekL5 жыл бұрын
Link to the github project is in the description box.
@lotromexico5 жыл бұрын
Will this work for the arduino Due?
@IndrekL5 жыл бұрын
Currently it doesn't support Due. Due has completely different processor compared to Uno/Nano/Mega
@defaultdef72214 жыл бұрын
can i launch it on Mega ?
@IndrekL4 жыл бұрын
Yes, it works with Mega also. Connections are a little different: github.com/indrekluuk/LiveOV7670#connections-for-arduino-mega
@ITShareTR3 жыл бұрын
İf it is possible how
@yuriyarapov19783 жыл бұрын
Не работает библиотека для win64. не видит их от слова совсем
@muzammilzainuddin2916 жыл бұрын
Nice thanks for this video
@riteshpawar99535 жыл бұрын
Is it possible without usb ?
@IndrekL5 жыл бұрын
Yes, possibly with a wifi module.
@mohammadshajahan21654 жыл бұрын
is it work with esp8266 controller
@mohammadshajahan21654 жыл бұрын
sir replay me
@IndrekL4 жыл бұрын
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.
@mohammadshajahan21654 жыл бұрын
@@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
@IndrekL4 жыл бұрын
Maybe you can check this: kzbin.info/www/bejne/jqLJhK1nn79lgKM It uses ArduCAM mini instead of OV7670
@mohammadshajahan21654 жыл бұрын
@@IndrekL tq sir i will try this one
@thedementor34965 жыл бұрын
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 :)
@IndrekL5 жыл бұрын
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.
@thedementor34965 жыл бұрын
@@IndrekL ohk sir looking forward for your help . Thank :)