Coder Social home page Coder Social logo

Comments (6)

kozuch avatar kozuch commented on June 27, 2024

Fixed by changing HardWire mWire(2); to TwoWire mWire(2);

Now I get error 4 (other error) at mWire.endTransmission() in setRegister function. mWire.write reports 1 byte written for both addr and val.

from liveov7670_stm32.

stevstrong avatar stevstrong commented on June 27, 2024

Please post the complete error messages.

from liveov7670_stm32.

kozuch avatar kozuch commented on June 27, 2024

It now compiles without error, I get the error 4 value at runtime by printing it to serial - I put logging in CameraOV7670Registers.cpp in bool CameraOV7670Registers::setRegister(uint8_t addr, uint8_t val) function. mWire.endTransmission() simply returns 4 instead of 0. I guess this is an I2C problem. I am not sure if my camera is not dead, but I have 2 of them and both giving the same error. I think I connected everything correctly, additionally tried on camera the RESET pin to 3.3V and PWDN to ground, did not help.

I have a little different camera module than is usual - my camera is similar to the image on the left here, while the camera from the various videos is usually the one on the right: https://forum.arduino.cc/index.php?topic=535819.0

Exact photos of my camera:
https://photos.app.goo.gl/vUySrQZJQJDwMZvx5

from liveov7670_stm32.

stevstrong avatar stevstrong commented on June 27, 2024

I will check this soon.

from liveov7670_stm32.

kozuch avatar kozuch commented on June 27, 2024

Thanks, but you don't have to any more. The problem was you used i2c bus #2 in code but your pin wiring uses bus #1. This code change fixes it:

TwoWire mWire(1);

Now the camera inits already.

from liveov7670_stm32.

stevstrong avatar stevstrong commented on June 27, 2024

9829eaf should fix it.

from liveov7670_stm32.

Related Issues (3)

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.