

Lapse O Matic PCB
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
3MCP1826S-3302E/DB
SOT-223-3-40℃~+125℃ 1 1A 220uA 3.3V 400mV@(1A) 60dB@(100Hz) 6V Fixed Positive Under Voltage Lockout、Over Current Protection、Over Temperature Protection、Short Circuit Protection SOT-223-3 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSMicrochip TechnologyVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsBC547C
TO-92-55℃~+150℃ 1 NPN 100mA 100nA 150MHz 300mV 45V 610 625mW 6V NPN TO-92 Bipolar (BJT) ROHSLGEBipolar (BJT)BD135
TO-126-3-55℃~+150℃ 1 NPN 1.25W 1.5A 100nA 250 45V 500mV 5V NPN TO-126-3 Bipolar (BJT) ROHSJiangsu Changjing Electronics Technology (CJ)Bipolar (BJT)
README
README.mdSolar 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:
- https://techtutorialsx.com/2020/06/27/esp32-connecting-to-sd-card/
- https://randomnerdtutorials.com/esp32-cam-take-photo-save-microsd-card/
- https://www.olimex.com/Products/IoT/ESP32/ESP32-CAM/
- https://marksbench.com/electronics/esp32-cam-low-power-trail-camera/
- https://hackaday.com/2020/05/18/esp32-trail-camera-goes-the-distance-on-aa-batteries/
- https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/
- https://dronebotworkshop.com/esp32-cam-intro/
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:
// 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:
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100 | REInnovationFootprint:TH_Resistor_1 | R13, R14, R15, R16 |
| 4 | 330 | REInnovationFootprint:TH_Resistor_1 | R1, R6, R9, R11 |
| 4 | FLASH | REInnovationFootprint:TH_LED-5MM | D5, D6, D7, D8 |
| 3 | 100k | REInnovationFootprint:TH_Resistor_1 | R2, R8, R12 |
| 2 | 1k | REInnovationFootprint:TH_Resistor_1 | R3, R4 |
| 2 | 1uf | REInnovationFootprint:C_1V7_TH | C1, C3 |
| 2 | BC547C | REInnovationFootprint:NPN_BC337 | Q1, Q2 |
| 1 | 10k | REInnovationFootprint:TH_Resistor_1 | R10 |
| 1 | BD135 | REInnovationFootprint:TO220_BD135 | Q3 |
| 1 | ESP32_CAM | REInnovationFootprint:ESP32_CAM | U3 |
| 1 | LOGO1 | CuriousElectric3:TCEC_Words_13mm | J6 |
| 1 | LOGO2 | CuriousElectric3:2019_011_16_CuriousElectricCompany_Logo_Round_Logo_No_words_KiCAD_10mm_PCBLogo | J7 |
| 1 | LOGO3 | REInnovationGraphics:lapseomatic logo_20x6mm | J9 |
| 1 | LOGO4 | REInnovationGraphics:lapseomatic logo_20x6mm | J11 |
| 1 | MCP1826S-3302 | REInnovationFootprint:TO220_MCP1826S | U1 |
| 1 | PCB | REInnovationFootprint:PCB_Lapse-O-Matic | J8 |
| 1 | PIR | REInnovationFootprint:SIL-3_PIR_SENSOR | J1 |
| 1 | POWER | REInnovationFootprint:SIL-2_screw_terminal | J10 |
| 1 | POWER | REInnovationFootprint:SW_SPDT_R_Angle_ALIEX | SW1 |
| 1 | PROG | REInnovationFootprint:TH_6x1_CONN | J4 |
| 1 | PROG_EN | REInnovationFootprint:TH_Pin_Header_Straight_1x02 | J5 |
| 1 | RTC_DS3231 | REInnovationFootprint:TH_RTC_MODULE_SM | J3 |
| 1 | TRIG? | REInnovationFootprint:TH_LED-5MM | D4 |
| 1 | TRIGGER | REInnovationFootprint:SW_PUSH_SMALL_lg_pad | SW2 |
| 1 | TRIGGER | REInnovationFootprint:SIL-3_screw_terminal | J2 |
| 1 | ZENER | REInnovationFootprint:TH_Diode_3 | D1 |
Similar boards
- 4 layers68.5 × 89.9 mm

- 2 layers127 × 57.1 mm

- 2 layers160 × 84 mm

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 mm

Mattie v0
svenssonjoel/Mattie
stM32f4 lATTIcE - MATTIE - A PCB with an STM32f4 and a LATTICE FPGA
59 parts2GPL-3.0 - 2 layers49 × 91 mm

- 4 layers22.9 × 58.5 mm

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 mm

- 4 layers

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.