Skip to the content
4 layers109.6 × 187.6 mmPicture frame carrier board, the printed circuit board in 3D

Special thanks go to my wife, who has always been very patient with my handicrafts :)

Size
109.6 × 187.6 mm
Copper layers
4
Thickness
1.6 mm
Parts
60
Nets
94
Pads
221
Tracks, vias
414, 27
Pours
10
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
4 Jan 2024
Updated
8 Mar 2024

Overview

Picture frame carrier board is an open-source printed circuit board by ft-13, from the ft-13/Picture-Frame-with-ESP32-and-Camera repository on GitHub. It is a 4-layer board of 109.6 × 187.6 mm with 60 parts on 94 nets, routed with 414 tracks and 27 vias.

It is built around the TS3A5018PW, BSH205G2AR and BSS138. Its parts include 28 resistors, 9 connectors, 6 transistors, 3 capacitors and 1 IC. It belongs with the computers and single-board computers boards of this library.

Main components

3

README

README.md

Picture-Frame-with-ESP32-and-Camera

The picture frame consists of Firebeetle2 (ESP32-S3) with OV2640 camera, epaper display, powerbank and a self-desined carrier PCB. The whole electronic is mounted on a 3D printed insert. There are 3 Hall sensors attached to the wood of picture frame: top, bottom left and bottom right. µSD card shield is mounted to the carrier PCB and makes it possible to save the camera picture or to load a picture. Using a magnet triggers one of the three Hall sensors and wakes up ESP32 from deep sleep. When the top Hall sensor is triggered, the picture frame takes a picture and sends it to the epeaper and the µSD card. If the left or right sensor is triggered, the previous or next image is loaded from the µSD card to the epeaper display.

Special thanks go to my wife, who has always been very patient with my handicrafts :)

Software

Hardware

BOM

PartDescriptionLink
Firebeetle2ESP32-S3 8MB PSRAM and OV2640 cameradfrobot link
IT8951 display HAT-Waveshare link
epaper display1200x825, 9.7inchWaveshare datasheet
µSD shieldD1 mini shield adapterAZ delivery link
Hall sensorsDRV5032FA TITI datasheet
Analog SwitchTS3A5018PW TITI datasheet
PowerbankCharmast 26800mAhAmazon link
Picture frameIkea black 21x30 cmIkea link

Powerbank

The powerbank has a hugh capacity of 26800mAh. When ESP32 is in deep sleep the entire electronic draws a current of <=2mA. If the current draw from powerbank is about <70mA the powerbank automatically turns off its outputs after 30 seconds. Then the electronic has no chance to power up unless the button of powerbank is pressed to switch it on again. I figured out that the powerbank has two DCDC converters: IP5306 and IP5310. Both chips can be configured via I2C. I found the I2C protocol of IP5306 on github: github link but no chance for IP5310. For IP5306 there is a register bit which can be set to tell the chip to stay on. Unfortunatelly this bit is not the same for IP5310. Why not using IP5306 instead of IP5310? Because I could get access only to I2C pins of IP5310 via charging state LEDs. The next problem is that IP5310 is responsible for battery charging.

I soldered I2C wires to the LEDs which are connected to IP5310 and tried to write to different registers and voila! Bit 7 of register 0x02 tells the chip to stay on. What else? The powerbank on/off switch is connected to IP5306. As soon as IP5306 wakes up, it will wake up IP5310 via a transitor. Therefore I had to do some modifications on powerbank PCB. Now I can switch IP5310 off and on by pressing the power button of the powerbank (single push: ON, double push: OFF).

Current Consumption

My goal was it that the powerbank lasts for about 1 year. Of course it depends on how many pictures do you take and how many picture do you load from µSD card. In deep sleep mode the entire electronic (excluding powerbank) draws a current of about 344µA. Unfortunately, this is not the figure that can be used for the calculation. The IP5310 DCDC converter has a converter efficiency that drives the figure up at the end. That's why I measured the current consumption from the battery itself. The unloaded powerbank draws a current of 1.4mA and in loaded condition (334µA) the current consumption is about 2mA. If I never took a photo, i.e. ESP32 is in deep sleep all the time, the power bank would last: days = 26800mAh / 2mA / 24h = 558 days (1.5 years).

But lets make the calculation with some assumptions:
(I have not yet made any exact measurements, so this is a simplified calculation)

  • 1 picture per day and 2 µSD card read access' per day.
  • take picture and send to display and µSD card: 300mA for 10s
  • load picture from µSD card and send to display: 250mA for 8s

We need to know the average current consumption
Iavg = (300mA * 10s + 250mA * 8s * 2 + 2mA * 3570s) / 3600s = 3.93mA
to calculate how long the powerbank lasts
days = 26800mAh / Iavg / 24h = 284 days.

FAQ

  1. Why is the carrier PCB so hugh?
    Firebeetle2 (Camera has short flex PCB) and IT8951 cannot not be postioned on the same side, as the flex PCB of epaper fills the entire bottom side. Therefore there is no space left where the camera could see through.
  2. Why did you use Firebeetle2? What's so special about?
    The Firebeetle2 has a DCDC Converter, which can be configured over I2C and can deactivate the power of the camera, thus bringing the power consumption of the camera to null.
  3. Why is the size of the camera picture (XGA 1024x768) smaller than the available size of the display (1200x825)?
    Because the passpartout cut-out of the picture frame has nearly the size of XGA. Of course I could have bought a passpartout with a larger cut-out, which I will do next.
  4. If you have already designed your own PCB, why didn't you include a charging circuit instead of struggling with the power bank?
    I didn't do much research but I couldn't find a suitable Li-Ion charging IC with integrated boost converter and pass through function. I also wanted to keep the development time as short as possible and do without non-SOICs, as I soldered the components on by hand. And it was also fun "hacking" the powerbank.
  5. Why did you decide to use Hall sensors instead of switches, proximity sensors or even gesture recognition using the camera?
    The current consumption of the Hall sensors is a maximum of 3.5µA per sensor, as other sensor technologies cannot keep up. I wanted to do without electromechanical switches, as the overall picture would not have been nice for me, apart from the fact that I couldn't find any very small built-in pushbuttons. Gesture recognition using the ESP camera would have increased power consumption and drastically reduced battery life. A capacitive proximity switch consisting of e.g. an AD7151/AD7156 and a capacitive foil would certainly have worked as well, if not more elegantly, but in this case I wanted to save costs as I had the Hall sensors lying around anyway.
  6. In which format are the files saved on the SD card or in which format do they have to be?
    The recorded image is saved as raw bytes with an ascending number and the file extension .txt. The file size is always exactly 768432 bytes (1024x768 pixels and 8bit/pixel).
  7. Is there a way to view the images on the SD card on a PC and is it possible to save images other than those taken by the camera itself?
    Yes, both are possible. It is possible with the free tool magick e.g. In the repository folder "Software/2_pic_converter" there is a self-written python tool. This tool converts all jpg images in a folder and stores them in an "output" folder. These can then simply be copied to the SD card (with ascending number). With the command "magick -depth 8 -size 1024x768 gray:files_on_sd_card.txt result.jpg" the raw bytes can be converted back into a jpg image. The tool is currently very simple and does not yet have any terminal arguments etc.
  8. AI generated pictures?
    The next upgrade will be for my Raspberry Pi server to generate an image once a day from an AI on the internet and then send it to the picture frame via Wifi.

Parts

60
QtyValueFootprintReferences
1110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R6, R7, R8, R9, R11, R14, R17, R37, R38
8DNPResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5, R16, R21, R23, R25, R32, R34, R36
40RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R18, R19, R20
4Jumper_2_OpenConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1, JP2, JP3, JP8
3BSH205G2ARPackage_TO_SOT_SMD:SOT-23Q1, Q2, Q4
3JST-PH RM2Connector_JST:JST_PH_S3B-PH-K_1x03_P2.00mm_HorizontalJ8, J9, J10
3SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mm_NumberLabelsJP4, JP5, JP6
210RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4, R13
21kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR10, R15
2BSS138Package_TO_SOT_SMD:SOT-23Q5, Q6
2Conn_01x08_SocketConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ4, J5
2MountingHoleMountingHole:MountingHole_2.7mm_M2.5_DIN965H2, H4
2TestPointTestPoint:TestPoint_Pad_1.5x1.5mmTP1, TP2
1100kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR12
1100nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3
11uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2
14u7Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
1Conn_01x14_SocketConnector_PinSocket_2.54mm:PinSocket_1x14_P2.54mm_VerticalJ1
1Conn_01x18_SocketConnector_PinSocket_2.54mm:PinSocket_1x18_P2.54mm_VerticalJ2
1Conn_02x20_Odd_Evenfootprints:bkl_10122235J3
1JST-PH RM2Connector_JST:JST_PH_S4B-PH-K_1x04_P2.00mm_HorizontalJ6
1LEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1
1SI2366DS-T1-BE3Package_TO_SOT_SMD:SOT-23Q3
1TS3A5018PWfootprints:SOP65P640X120-16NU1
1TestPointTestPoint:TestPoint_THTPad_D2.5mm_Drill1.2mmTP4

More from ft-13/Picture-Frame-with-ESP32-and-Camera

1
  • 2 layers19.2 × 8.9 mmHall sensor board, the printed circuit board in 3D

    Hall sensor board

    ft-13/Picture-Frame-with-ESP32-and-Camera

    Special thanks go to my wife, who has always been very patient with my handicrafts :)

    3 parts3

Similar boards

  • 2 layers264 × 34 mmVindor, the printed circuit board in 3D

    Vindor

    ftrias/vindormusic

    Electronic saxophone firmware and PCB

    100 parts19
  • 4 layers62 × 82 mmUltimate invitation card, the printed circuit board in 3D

    Ultimate invitation card

    espena/ultimate-invitation-card

    Invitation card for real nerds.

    55 parts4GPL-3.0
  • 4 layers44 × 55.1 mmAg ce A7671G card, the printed circuit board in 3D

    Ag ce A7671G card

    Open-Air-Foundation/pcb-module-ce-card

    The CE card adds 4G cellular connectivity (LTE Cat 1) to AirGradient monitors. It can be used in the AirGradient Open Air, the AirGradient ONE, and the Open Air Max.

    106 parts1CC-BY-SA-4.0
  • 4 layers310 × 110 mmLowerBoard1v2, the printed circuit board in 3D

    LowerBoard1v2

    hsetlik/PolySynth

    Analog polyphonic synth powered by STM32F4

    287 parts
  • 4 layers36 × 50.2 mmRacer, the printed circuit board in 3D

    Racer

    StuckAtPrototype/Racer

    These are structured into their own files. I could have used submodules, but decided against it.

    83 parts3.8kApache-2.0
  • 4 layers95 × 95 mmCube motherboard, the printed circuit board in 3D

    Cube motherboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    52 parts1.1kGPL-3.0
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 2 layers44.2 × 29.3 mmI2c tiny usb, the printed circuit board in 3D

    I2c tiny usb

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    27 parts454

Questions

How big is the Picture frame carrier board PCB?

It measures 109.6 × 187.6 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Picture frame carrier board use?

60 parts, built around the TS3A5018PW, BSH205G2AR and BSS138. 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 Picture frame carrier board KiCad files?

From the ft-13/Picture-Frame-with-ESP32-and-Camera repository on GitHub, at the commit this page was made from: the board is Hardware/KiCad/picture_frame_carrier_board/picture_frame_carrier_board.kicad_pcb and its schematic Hardware/KiCad/hall_sensor_board/hall_sensor_board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Picture frame carrier board design in my own project?

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