Git Product home page Git Product logo

timercam-idf's Introduction

Timer Cam Example

English | 中文

Description

This case is developed based on the esp-idf platform. It is used for the interaction between the TimerCAM and the host computer software to realize the functions of real-time picture shooting and timer shooting. It supports two device connection modes: serial port and WiFi.

This library provides some basic arduino cases for TimerCAM, including web surveillance cameras, sleep functions, etc. TimerCAM is a camera module based on ESP32, integrated with ESP32 chip and 8M-PSRAM. The camera (ov3660) with 3 million pixels can view 66.5 ° and shoot 1600 x at most 1200 resolution photo, built-in LED status indicator, featuring ultra-low power consumption design. Through RTC (BM8563), timing sleep and wake-up can be realized. sleep current can be reduced to 2μA.The battery interface is reserved on the board, and users can access the battery power supply by themselves. The module supports WiFi image transmission and USB port debugging. The bottom HY2.0-4P port output can be connected to other peripherals.

IDF-Version support

  • ESP-IDF v3.x Not Support
  • ESP-IDF v4.0.1 Test Ok
  • ESP-IDF v4.1.x Not Support

Cam Lib Base

reference

File Description

.
├── components
│   ├── battery -> Battery ouput control and voltage monitoring 
│   ├── bm8563 -> RTC time control and irq wakeup setting
│   ├── esp32-camera -> Camera control
│   ├── led -> Led brightness control
│   ├── network -> AP or STA connect 
│   └── uart_frame -> Used to connect PC software
├── main
│   ├── protocal.c - > Used to connect PC software
│   ├── cam_cmd.c -> Used to connect PC software
│   ├── app_httpd.c -> web jpeg view
│   ├── factory_test.c -> Base Features test
│   ├── timer_cam_config.c -> Pins of the board And  Used to connect PC software
│   └── main.c

API

Get img data

camera_fb_t * fb = NULL;
// will get a img frame
fb = esp_camera_fb_get();
// img buf
uint8_t *buf = fb->buf;
// img buf len
unit32_t buf_len = fb->len;

/* --- do some something --- */

// need return img buf
esp_camera_fb_return(fb);

Set ov3660 config

sensor_t *s = esp_camera_sensor_get();
s->set_framesize(s, FRAMESIZE_VGA);
s->set_quality(s, 10);
...

Detailed view sensor.h

PC Software

Download & tutorial

PinMap

Camera Interface PinMap

Interface Camera Pin TimerCamera
SCCB Clock SIOC IO23
SCCB Data SIOD IO25
System Clock XCLK IO27
Vertical Sync VSYNC IO22
Horizontal Reference HREF IO26
Pixel Clock PCLK IO21
Pixel Data Bit 0 D0 IO32
Pixel Data Bit 1 D1 IO35
Pixel Data Bit 2 D2 IO34
Pixel Data Bit 3 D3 IO5
Pixel Data Bit 4 D4 IO39
Pixel Data Bit 5 D5 IO18
Pixel Data Bit 6 D6 IO36
Pixel Data Bit 7 D7 IO19
Camera Reset RESET IO15
Camera Power Down PWDN -1
Power Supply 3.3V 3V3 3V3
Ground GND GND

GROVE Interface

Grove TimerCamera
SCL IO13
SDA IO4
5V 5V
GND GND

LED Interface

LED TimerCamera
LED_Pin IO2

BAT Interface

BAT TimerCamera
BAT_ADC_Pin IO33

Related Links

TimerCAM Docs

Purchase

timercam-idf's People

Contributors

eeeebin avatar gitshaoxiang avatar

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.