Giter Site home page Giter Site logo

Comments (5)

jameszah avatar jameszah commented on August 26, 2024 1

Are you re-using pin 14 - camera and sd?

I'll have to compare the schematics to see which data pins the sd uses in 1-bit mode.
The unused pins could be left hanging to prevent interaction. I think gpio4, 12, 13 are the unsed pins on the esp32-cam ai-thinker module sd card connection and gpio2 is the 1-bit.

So I think you are also using gpio2 for the data0, and your data1 and data2 are disconnected from the sd connector (the red X). And cd/data3 was gpio15 and is now disconnected.

You could disconnect 14 and 15 and try it. The camera might be turning on 14, which is disturbing the sd card.

image

image

from esp32-cam-video-recorder.

jameszah avatar jameszah commented on August 26, 2024 1

gpio14 is h2s_clk, spi_clk, MTMS?

You probably need that one, so you would have to tell sd_mmc to use another gpio for that one, as I don't imagine you could move a gpio from the camera connector to use another pin for the gpio14 on the camera.

image
image

from esp32-cam-video-recorder.

jameszah avatar jameszah commented on August 26, 2024 1

When using the camera gpio14 is an input to the esp32 (y4 - data line), when using the sdcard gpio14 is an output (sclk clock)
so independently they will work, but not at the same time.

image

from esp32-cam-video-recorder.

derbmann avatar derbmann commented on August 26, 2024

Sry for the late response, i was busy the last few days...

Since GPIO14 is a clock signal and the board comes wired like that, I don't think that's the issue.
The sd_mmc test works fine but i somehow get the feeling that my ghetto wiring is the issue.

I meanwhile found out that you can use the sd_mmc in the spi mode.
I reverted back the sd card slot to the original spi mode and now try to get the sd_mmc test in the spi mode working.
After that ill try to implement it in your program.

Ill response if I got success or not.

thanks

from esp32-cam-video-recorder.

derbmann avatar derbmann commented on August 26, 2024

You are absolutely right, I did ask waveshare about it and they confirmed it.
What a great product...

I guess I could add a external sd card module but I'm done with it.
I just order a proper esp32 cam module.

Thank you for your help.

from esp32-cam-video-recorder.

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.