Skip to the content
2 layers81.9 × 62.5 mmLapse O Matic PCB, the printed circuit board in 3D

This is code, PCB and enclosure design for an ESP32_CAM based wildlife camera

Size
81.9 × 62.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
40
Nets
34
Pads
106
Tracks, vias
312, 7
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
30 Aug 2020
Updated
8 Jul 2025

Overview

Lapse O Matic PCB is an open-source printed circuit board by curiouselectric, from the curiouselectric/Lapse-O-Matic repository on GitHub. It is a 2-layer board of 81.9 × 62.5 mm with 40 parts on 34 nets, routed with 312 tracks and 7 vias.

It is built around the MCP1826S-3302E/DB, BC547C and BD135. Its parts include 14 resistors, 11 connectors, 6 diodes, 3 transistors and 2 capacitors. It belongs with the ESP32 and RISC-V boards of this library.

Main components

3

README

README.md

Solar Powered ESP32 Camera For Wildlife and Time-Lapse

This is code, PCB and enclosure design for an ESP32_CAM based, solar powered wildlife camera

This unit is based on the ESP32_CAM.

Code has been written to upload onto the ESP32.

Control of the unit is through a "settings.txt" file on the SD card.

The unit can either be in "LAPSE" mode (where it wakes up every set period and takes a photo/number of photos) or it can be in "TRIGGER" mode where it will take a number of photos when the unit is triggered. It will then go back to sleep.

Triggering can either be done with a PIR, or with an external switch.

This unit has an input for a small solar panel to recharge an 18650 Li Ion cell, so it can be left for remote monitoring.

A flash can be implemented, with a start and stop delay to adjust shadow effects.

This code relies heaviliy on the following tutorials and information:

ESP32 Code

Please follow these instructions for setting up your arduino IDE to upload code to the ESP32_CAM.

There is no USB connection to the ESP32_CAM, so I used this nice programmer from Tindie (around £10 UK): https://www.tindie.com/products/bitluni/cam-prog/

The code starts by reading the settings.txt file on the root directoy of the SD card. If the SD card fails to mount, then the unit will go to default settings, which will mean sleeping for 10 seconds then trying the SD card again. If there is no settings.txt file then the unit will use the default values (stored in the config.h page of the firmware).

Settings file

Here is an example settings.txt file:

text
// Adjust these settings as required: //
FLASH_FLAG=1
NUMBER_PHOTOS=4
TIME_TO_SLEEP=800
MODE=TRIGGER
PHOTO_DELAY=250
FLASH_START_DELAY=100
FLASH_STOP_DELAY=100
DEBUG_FLAG=1
DEBUG_PHOTO=1
// END OF SETTINGS - LEAVE THIS LINE  //
  • FLASH_FLAG - Use a flash with the photo? (0 (OFF) or 1 (ON))
  • NUMBER_PHOTOS - How many photos to take when waking up?
  • TIME_TO_SLEEP - How long (in seconds) between wake-ups (when in SLEEP mode)
  • MODE - The mode to use is either LAPSE (wake up every TIME_TO_SLEEP seconds) or TRIGGER (either wake up on PIR trigger or external trigger)
  • PHOTO_DELAY - delay (in milli Seconds) between taking the photos.
  • FLASH_START_DELAY - Flash will switch on then wait this time before taking photo (in milli Seconds)
  • FLASH_STOP_DELAY - Flash will be on and wait this time after taking photo (in milli Seconds)
  • DEBUG_FLAG - See debug info on serial port (0 (OFF) or 1 (ON))
  • DEBUG_PHOTO - See debug info on serial port (0 (OFF) or 1 (ON))

Note: Spaces can be used in the WIFI SSID. Do not use spaces around the equals sign.

Solar Power

This unit has a sinlge 18650 lithium polymer cell for power. This has a battery charging circuit using one cell PV module.

Based upon the BQ24210 800mA, single-input, single cell Li-ion Solar battery charger from Texas Instruments:

https://www.ti.com/sitesearch/docs/universalsearch.tsp?searchTerm=BQ24210#q=BQ24210&t=everything&linkId=1

PCB design

PCB is designed in KiCAD.

A Real Time Clock (RTC) has been added to use as a timestamp on the photo files. This can also be used for the timing of the unit wake up.

WiFi Upload

This unit uses ReadyMail from mobizt to send photos via an email SMTP server to any email address. You must set up your own email from which to send photos (I used gmail).

This is not always totally reliable, especially if any reception issues. But photos are still saved on the SD card.

More information

There is lots more about this project at this blog post:

https://www.curiouselectric.co.uk/blogs/blog/prototyping-a-wildlife-camera*

Parts

40
QtyValueFootprintReferences
4100REInnovationFootprint:TH_Resistor_1R13, R14, R15, R16
4330REInnovationFootprint:TH_Resistor_1R1, R6, R9, R11
4FLASHREInnovationFootprint:TH_LED-5MMD5, D6, D7, D8
3100kREInnovationFootprint:TH_Resistor_1R2, R8, R12
21kREInnovationFootprint:TH_Resistor_1R3, R4
21ufREInnovationFootprint:C_1V7_THC1, C3
2BC547CREInnovationFootprint:NPN_BC337Q1, Q2
110kREInnovationFootprint:TH_Resistor_1R10
1BD135REInnovationFootprint:TO220_BD135Q3
1ESP32_CAMREInnovationFootprint:ESP32_CAMU3
1LOGO1CuriousElectric3:TCEC_Words_13mmJ6
1LOGO2CuriousElectric3:2019_011_16_CuriousElectricCompany_Logo_Round_Logo_No_words_KiCAD_10mm_PCBLogoJ7
1LOGO3REInnovationGraphics:lapseomatic logo_20x6mmJ9
1LOGO4REInnovationGraphics:lapseomatic logo_20x6mmJ11
1MCP1826S-3302REInnovationFootprint:TO220_MCP1826SU1
1PCBREInnovationFootprint:PCB_Lapse-O-MaticJ8
1PIRREInnovationFootprint:SIL-3_PIR_SENSORJ1
1POWERREInnovationFootprint:SIL-2_screw_terminalJ10
1POWERREInnovationFootprint:SW_SPDT_R_Angle_ALIEXSW1
1PROGREInnovationFootprint:TH_6x1_CONNJ4
1PROG_ENREInnovationFootprint:TH_Pin_Header_Straight_1x02J5
1RTC_DS3231REInnovationFootprint:TH_RTC_MODULE_SMJ3
1TRIG?REInnovationFootprint:TH_LED-5MMD4
1TRIGGERREInnovationFootprint:SW_PUSH_SMALL_lg_padSW2
1TRIGGERREInnovationFootprint:SIL-3_screw_terminalJ2
1ZENERREInnovationFootprint:TH_Diode_3D1

Similar boards

  • 4 layers68.5 × 89.9 mmBeagle wire, the printed circuit board in 3D

    Beagle wire

    mwelling/beagle-wire

    ICE40 FPGA Cape for Beaglebone

    104 parts53
  • 2 layers127 × 57.1 mmGlowtie, the printed circuit board in 3D

    Glowtie

    sphawes/glowtie

    The light-up bowtie you control over Wifi

    56 parts25
  • 2 layers160 × 84 mmSB LOGICBOARD V01, the printed circuit board in 3D

    SB LOGICBOARD V01

    wvdv2002/SMA-SB2500-Off-Grid

    Try to open source the grid tie solar inverter SMA Sunny Boy SB2500

    119 parts11
  • 4 layers55 × 32 mmMattie v0, the printed circuit board in 3D

    Mattie v0

    svenssonjoel/Mattie

    stM32f4 lATTIcE - MATTIE - A PCB with an STM32f4 and a LATTICE FPGA

    59 parts2GPL-3.0
  • 2 layers49 × 91 mmTank PCB, the printed circuit board in 3D

    Tank PCB

    akira215/zTank

    Zigbee Water tank monitor for Home Assistant

    64 parts1GPL-3.0
  • 4 layers22.9 × 58.5 mmESP32 DevBoard Minimal Electgpl, the printed circuit board in 3D

    ESP32 DevBoard Minimal Electgpl

    electgpl/ESP32S3_DEV_Minimal_LowPower

    This project implements a minimal low-power development board based on the ESP32-S3. The design focuses on reducing component count, board complexity, and idle power consumption, while still exposing the full…

    38 parts1
  • 4 layers26 × 108 mmESP32-Portatil, the printed circuit board in 3D

    ESP32-Portatil

    alanclerici/ESP32-Portatil-PCB

    57 parts
  • 4 layersBeamformer, the printed circuit board in 3D

    Beamformer

    rheejason/circular-mic-array

    UIUC ECE 395: an 8-mic circular beamforming microphone array (steerable conference-table mic and acoustic imager).

    113 parts

Questions

How big is the Lapse O Matic PCB PCB?

It measures 81.9 × 62.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lapse O Matic PCB use?

40 parts, built around the MCP1826S-3302E/DB, BC547C and BD135. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Lapse O Matic PCB KiCad files?

From the curiouselectric/Lapse-O-Matic repository on GitHub, at the commit this page was made from: the board is Lapse-O-Matic_PCB/Lapse_O_Matic_PCB.kicad_pcb and its schematic Lapse-O-Matic_PCB/Lapse_O_Matic_PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lapse O Matic PCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask curiouselectric before reusing the design.