Giter VIP home page Giter VIP logo

Comments (37)

indrekluuk avatar indrekluuk commented on May 29, 2024 1

With the latest Arduino IDE it should compile without any errors. I think c++11 was supported from version 1.6.8, but I am not 100% sure. 1.8+ should definitely work.

If you download the latest version of the code form Github then renaming the folder is not necessary anymore. The LiveOV7670.ino is already inside folder named "LiveOV7670"

Before compiling you have to copy "LiveOV7670Library" and "Adafruit_GFX_Library" from ./src/lib/ to Arduino "libraries" folder (It should be in your home folder: ~/Documents/Arduino/libraries)
If you already have "Adafruit_GFX_Library" in your "libraries" folder then you don't have to copy that.

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

What exactly did you do? Did you use Arduino IDE or platformIO?

It works with my platformIO + CLion project and I tried it with Arduino IDE (downloded the zip file from github and renamed "src" folder to "LiveOV7670") and it compiled without any errors.

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

It seems that you downloaded only the .ino file. You need all the files.

Download entire project:
screen shot 2016-12-21 at 8 34 47

After extracting the zip file you get folder "LiveOV7670-master". You need "LiveOV7670-master/arduino/src" folder. Rename the "src"->"LiveOV7670"

Additionally you need to copy "LiveOV7670-master/arduino/lib/Adafruit_GFX_Library" to your arduino libraries folder (in you computer's home folder "Documents/Arduino/libraries") - If you have done anything with Adafruit graphics libraries before then you may already have this.

Then you should be able to open the .ino file and it should compile without errors

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

What exactly are the errors? I can't see any attachment images here. Could you upload the example images directly to here in github?

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

image

that is the image for my error

C:\Users\Gabri\AppData\Local\Temp\cccv5yFi.ltrans0.ltrans.o: In function `main':

cccv5yFi.ltrans0.o:(.text.startup+0x8a): undefined reference to `CameraOV7670::init()'

cccv5yFi.ltrans0.o:(.text.startup+0x94): undefined reference to `Adafruit_ST7735_mod::initR(unsigned char)'

cccv5yFi.ltrans0.o:(.text.startup+0xa0): undefined reference to `Adafruit_ST7735_mod::fillScreen(unsigned int)'

cccv5yFi.ltrans0.o:(.text.startup+0x14d8): undefined reference to `Adafruit_ST7735_mod::startAddrWindow(unsigned char, unsigned char, unsigned char, unsigned char)'

cccv5yFi.ltrans0.o:(.text.startup+0x1508): undefined reference to `Adafruit_ST7735_mod::endAddrWindow()'

C:\Users\Gabri\AppData\Local\Temp\cccv5yFi.ltrans3.ltrans.o: In function `global constructors keyed to 65535_0_ExampleTftBufferedCameraFrame.cpp.o.2004':

cccv5yFi.ltrans3.o:(.text.startup+0x3c): undefined reference to `CameraOV7670Registers::CameraOV7670Registers(unsigned char)'

cccv5yFi.ltrans3.o:(.text.startup+0x52): undefined reference to `Adafruit_ST7735_mod::Adafruit_ST7735_mod(signed char, signed char, signed char)'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

this is the error message, please help? thanks:)

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

I upgraded my Arduino IDE from 1.6 to 1.8 and got a similar error.
I will fix it this weekend and report back to here when you should try again.

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

It seems that Arduino IDE does not support cpp files in sub-folders anymore. Version 1.6.7 worked fine.
I will think of something I probably have to move them to the main folder to make it Arduino IDE compatible.

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

I moved the the camera code to a library. Please try downloading the project again. But now you also have to copy LiveOV7670Library from the "lib" folder to your Arduino "libraries" folder. I tried with Arduino IDE 1.8 and it worked

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

What is the error message? Did you copy "LiveOV7670Library" to the "libraries" folder?

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

It seems that you opened the .ino with Arduino IDE and it automatically created sub-folder named "LiveOV7670". The problem is that all the other files are still inside in "src" folder and Arduino IDE does not see them.

You have to rename the "src" folder to "LiveOV7670" (or move all the fils from "src" to the automatically created "LiveOV7670" folder)

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

This is strange. It seems that Arduino IDE can't find cpp files in the library folder.

Does the content of the "LiveOV7670Library" look like this?
liveov7670library

Did you re-download the whole project? Project folder should now look like this:

liveov7670

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

leonhart88 avatar leonhart88 commented on May 29, 2024

i found this error on my 1.8 TFT LCD
how to fix it?
please
20170227_104001

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

Does the example project included with the Adafruit library work?

This video:
https://www.youtube.com/watch?v=boagCpb6DgY&t=150s

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

I updated to project so that at the beginning it will either flash entire screen to green if i2c connection to camera was successful or red if it failed.

Could you please re-download the project and check if you see green or red screen after start-up.
Then we know if the camera setup was successful or failed.

from liveov7670.

lostgab avatar lostgab commented on May 29, 2024

from liveov7670.

syadav8126 avatar syadav8126 commented on May 29, 2024

In file included from C:\Users\sb\Documents\Arduino\libraries\LiveOV7670Library/BufferedCameraOV7670_QQVGA_10hz.h:8:0,
from C:\Users\sb\AppData\Local\Temp\build8092868746636873910.tmp\ExampleTftBufferedCameraFrame.cpp:13:
C:\Users\sb\Documents\Arduino\libraries\LiveOV7670Library/BufferedCameraOV7670.h:46:17: error: 'constexpr' does not name a type
inline static constexpr Tx getLineLength() attribute((always_inline));

Facing this error.....please suggest me some solution.
thank you.

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

What version of Arduino IDE are you using?

"constexpr" is c++11 feature.
c++11 should be enabled for Arduino IDE for some time now.

from liveov7670.

syadav8126 avatar syadav8126 commented on May 29, 2024

i am using arduino ide version 1.6.5 ..
i replace" constexpr "to "cont" and resolved this problem..
the next error is "Resolution:: does not found a class or namespace"....for that i just erase "Resolution"..and got resolved ..
now ide is asking to add some header file like ; "queue.h","twi.h","wire.h".
So does it have to be happen or I'm doing something wrong?
Thanks for your support

from liveov7670.

syadav8126 avatar syadav8126 commented on May 29, 2024

please suggest me proper ide and full procedure...,like the changing "src" to "Live7670".
Thanks in advance. I am looking forward to your answer..

from liveov7670.

syadav8126 avatar syadav8126 commented on May 29, 2024

The code has been compiled successfully. How to show output of OV7670 camera on the screen using java. Please suggest something.

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

Did you get both projects compiling?

  1. LiveOV7670 - https://github.com/indrekluuk/LiveOV7670
  2. Java project ArduinoImageCapture - https://github.com/indrekluuk/ArduinoImageCapture

from liveov7670.

syadav8126 avatar syadav8126 commented on May 29, 2024

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

Does Visual Studio support java?
I personally use IntelliJ for Java. Community eddition is free.

Did you manage to compile and run the java application? A window should open where you can select com port and baudrate.

from liveov7670.

syadav8126 avatar syadav8126 commented on May 29, 2024

i do not know whether visual studio support java .
how to use intelliJ?
no java window is opening. It is getting complicated please tell me some solution.

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

Install and run IntelliJ Community edition.

import project->Select folder "ArduinoImageCapture"->(Create project from existing source) Next->Next->Next->Next->Next-> (Select your Java version. For me it was "C:\Program Files\Java\jdk1.8.0_131") Next -> Finish

Now you have to add run configuration.

  1. In the upper right corner click on the small arrow and then "Edit Configurations.."
    editconfiguration

  2. Click on the "+" and select "Application"
    addnew

  3. Name the configuration and select main java class
    selecttarget

  4. Now if you have copied these files to correct location in JAVA folder
    Copy RXTXcomm.jar ---> <JAVA_HOME>/jre/lib/ext
    Copy librxtxSerial.so ---> <JAVA_HOME>/jre/lib/i386/
    Copy librxtxParallel.so ---> <JAVA_HOME>/jre/lib/i386/
    You should be able to run the application by clicking the green arrow in the upper right corner.
    run

And application window should open
mainwindow

from liveov7670.

leonhart88 avatar leonhart88 commented on May 29, 2024

how is it works on arduino mega 2560?
i've already compile using Arduino Uno it's working but in Arduino/Genuino Mega or Mega 2560 board and Processor ATmega 2560(mega2560). But the message shows :

capture

capture2

Help me Please...

from liveov7670.

indrekluuk avatar indrekluuk commented on May 29, 2024

I have modified the library so it will now compile for Arduino Mega (you have to re-download "LiveOV7670Library").

But I don't know if it actually works with Mega. I have not tested it.

from liveov7670.

leonhart88 avatar leonhart88 commented on May 29, 2024

it's not working yet, but can be compiled
I've change the pin before for TFT LCD, because it's not working (TFT only). So, i change it to
SPI clock/SCL - PIN 13 (5V -> 3.3V) --> change to 52
SPI data/SDA - PIN 11 (5V -> 3.3V) --> change to 51
should i change the connection pin on OV7670?

from liveov7670.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.