Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

m5stack/TimerCam-idf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#############################################################################

Please check this repository

#############################################################################

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

Releases

No releases published

Packages

No packages published

Languages