Giter Site home page Giter Site logo

Comments (10)

jameszah avatar jameszah commented on August 26, 2024 3

Hmmm ... very nice!

I was just yesterday trying to understand the 4-wire vs 1-wire io system. The 1-wire does not make things much or any slower -- I do so many write to put the jpeg into avi format, that the greater speed of the 4-wire write does not give me much benefit -- and it uses those 3 other pins that could be used for other things.

I think that program just stuffs all the jpegs together in a file, and then pulls them apart to present them as jpegs -- rather than preparing an avi file that your pc can play without pre-processing.

It has some very nice code -- efficient writing in big 1-MB blocks, etc.

I'll see if I can make a PIR or microwave-sensor version using the 1-wire system in a day or two.

I thought I'd just record everything, and if there is no activity in the last 30 seconds, then close the file and delete it. If there is activity, just keep recording until activity stops for 30 seconds.

from esp32-cam-video-recorder.

jameszah avatar jameszah commented on August 26, 2024 3

Yep - no problem.

I'll do a version to control with a pin, and then get the sd chip to see the results.

from esp32-cam-video-recorder.

amirjak avatar amirjak commented on August 26, 2024 1

Thanks, it's working.

from esp32-cam-video-recorder.

jameszah avatar jameszah commented on August 26, 2024

Hi,

I think if you removed the major_fail() call in the init_wifi() and init_time(), then it would continue running and record with initial conditions, and just date everything with 1970. And continue until it filled the sd card.

The major_fail() flashes S-O-S on the little red led, and then reboots the ESP.

A more general solution with a button or PIR etc, needs another GPIO pin, and there are none available. There are 6 gpio for the SD card, 1 for programming the device, and 1 for controlling the PSRAM - I think that is true, although I'm not sure why that is wired to a header???

If you can give up the comfort of debugging messages on the console -- the Serial.begin(115200) and Serial.println("hello world"); then those 2 gpios could be used to attach a button or PIR, etc.

I've been meaning to give that a try.

from esp32-cam-video-recorder.

amirjak avatar amirjak commented on August 26, 2024

Thanks for your quick response

from esp32-cam-video-recorder.

amirjak avatar amirjak commented on August 26, 2024

I found this one.

https://github.com/s60sc/ESP32-CAM_MJPEG2SD

Ground pin 12 with breadboard wire, female start recording video and Remove stop.

from esp32-cam-video-recorder.

s60sc avatar s60sc commented on August 26, 2024

If you want more pins:
IO0 can be used if what you attach does not pull it low at startup, eg a button
The blink led IO33 can be re-purposed by removing the led and some soldering - I use it for an analog LDR to control the lamp led.
UOR (IO3) can be used for input depending on what circuit you attach. I use it for a DS18B20 temperature sensor - it does not interfere with either serial port output or flashing
UOT (IO1) could be used for an output but I haven't tried.

from esp32-cam-video-recorder.

amirjak avatar amirjak commented on August 26, 2024

Thanks for the help.
I need to remove all internet (wifi) code.
No browser.
Default resolution VGA.
No date and time.
On code record by number if avi1 exists Make avi2 (...). Just a button to record and stop.
Is that possible.

from esp32-cam-video-recorder.

amirjak avatar amirjak commented on August 26, 2024

Thanks

from esp32-cam-video-recorder.

jameszah avatar jameszah commented on August 26, 2024

new version - give that a try, see if it works

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.