Prusa Core One camera upgrade: autofocus on an ESP32-S3
An autofocus OV5640 on an ESP32-S3 replaces the stock Prusa Core One camera: sharper first layers, timelapses that record themselves to SD, and open firmware.

What it is
An autofocus OV5640 camera on a Seeed XIAO ESP32-S3 Sense, riding in a printed magnetic corner mount inside a Prusa Core One and running a GPL-3.0 fork of Prusa's own camera firmware: sharper first layers, 4× zoom, locked exposure, and timelapses that record themselves to SD with no computer in the loop.
What you need
- Seeed XIAO ESP32-S3 Sense Wi-Fi, 8 MB PSRAM, microSD slot; the bundled camera module gets replaced
- OV5640 autofocus camera module the sources name no supplier — see the build log for the swap
- High-endurance microSD card dash-cam class; FAT32, max tested 16 GB
- Printed holder + case (PETG) the maker's Printables remix, printed on the Core One; CC BY-NC-SA
- Magnets 6 × 4 mm ×3 pockets are parametric — 10 × 2, 8 × 3, 8 × 5 and 6 × 4 mm all covered
How hard
Intermediate: no soldering — the module and card seat onto the board — but there is no prebuilt binary: you compile the firmware in the Arduino IDE with your Wi-Fi credentials in mcu_cfg.h before flashing.
Key Facts
- Firmware is GPL-3.0 (verified from the LICENSE file's own bytes; the upstream prusa3d repo it forks is GPL-3.0 too): Sam's variant is a fork of Prusa's 1.1.2 camera firmware that still reports itself to Prusa Connect as 1.1.2, so Prusa's cloud treats it as a camera it already knows. The printed holder remix on Printables is CC BY-NC-SA — a different license for the mount
- Seeed XIAO ESP32-S3 Sense + an OV5640 autofocus module: 5-megapixel sensor (2592 × 1944) with an autofocus motor, 4× digital zoom capped so the picture never drops below 640 × 480 with drag-to-pan, an exposure lock, and register-level brightness/contrast/saturation control
- Timelapses record themselves: the camera polls the printer's local PrusaLink interface, starts recording when a print starts and closes the file when the print ends — MJPEG AVI on the camera's own microSD card, no computer and no server involved anywhere
- Power-outage-safe by file format, not a UPS: the AVI header is rewritten after every frame, so a recording cut short by a power cut is still playable up to that point; the firmware tells 'card present but corrupt' apart from 'no card' and offers a Recover button that reformats the card from the browser
- No soldering anywhere in the build, but no prebuilt binary either: you compile the fork in the Arduino IDE with your Wi-Fi credentials in mcu_cfg.h — we built it clean on esp32 core 3.3.11 (sketch 48% of program storage, globals 22%); the README pins core 3.1.0, which the zoom code fails to compile on
- The mount is Prusa's own Buddy3D-camera concept: a top corner of the enclosure, three magnets 120° apart on the chamfered corner so the holder self-locates and pulls itself square; printed in PETG on the Core One itself, with parametric magnet pockets (10 × 2, 8 × 3, 8 × 5 and 6 × 4 mm)
- 42 revisions in public: the repo's changelog records every firmware revision (.1 2026-08-14 … .42 2026-10-30) — counted by our script, not taken on faith; two of the SD-mount bugs were filed upstream to Prusa as issue #145
- Board USD 18.90–19.99 at Seeed's own store, in stock (checked 2026-11-26) — the only price any source states; no source gives a total build cost, and this page doesn't either
- Maker's honest advice after three card failures: a high-endurance (dash-cam-class) microSD card is the real fix; the upstream README caps tested capacity at 16 GB, FAT32
- The camera's automatic update from Prusa's GitHub is switched off in this variant — an update would overwrite the fork with stock firmware; updates happen only by uploading a .bin you compiled. MCU Atlas is not affiliated with or endorsed by Prusa Research
About This Project
What it is
If you own a Core One, Prusa Connect will show a live picture of your print bed if you give it a camera — and Prusa publishes open-source firmware that turns an inexpensive ESP32 camera board into one. Sam Lovick wanted more than that from his own machine: a camera "small enough to sit inside the enclosure, sharp enough to read a first layer, and able to record a timelapse of every print without a computer involved." The result is a Seeed XIAO ESP32-S3 Sense with an autofocus OV5640 sensor, riding in a printed magnetic mount, running a GPL-3.0 fork of Prusa's own camera firmware. Hackaday featured the build in November 2026 as "Camera Upgrades For 3D Printers", crediting it as a camera that "dramatically improves quality and reliability."
The short version for a printer owner: this is the camera the stock one should have been. It focuses, zooms, holds its exposure, and records a timelapse of every print to its own SD card — starting and stopping with the print, surviving power cuts, with no Raspberry Pi or OctoPrint server in the loop. And because the firmware is open, the journey of building it is written down where you can read it: all 42 revisions.
(MCU Atlas is not affiliated with or endorsed by Prusa Research — the firmware project says the same about itself. ESP32 is a trademark of Espressif Systems; Prusa, Core One and Prusa Connect are trademarks of Prusa Research.)
What you get over the stock camera
Four upgrades, each one a real fix rather than a spec bump.
Autofocus. The OV5640 has "two things the stock modules lack: a 5-megapixel sensor (2592 × 1944) and an autofocus motor" — and the motor matters here, because the camera sits a few centimetres from a bed that moves. Focus is the difference between guessing at your first layer and reading it.
Zoom you can actually use. Hackaday notes Sam "tackled issues with digital zoom" — the stock setup has none; the finished firmware zooms to 4×, capped so the picture never drops below 640 × 480, and once zoomed you can drag the view around the frame — a virtual pan and tilt, so one fixed camera inspects any corner of the bed.
Exposure that sits still. On a fixed scene the OV5640's automatic exposure "hunts, swinging the picture between washed out and dark." A "Lock exposure to current" button freezes the exposure and gain once the sensor has settled on a good picture, and brightness, contrast and saturation are written straight to the sensor's own registers for finer control than the driver's five steps.
Timelapse without a computer. This is the part the maker uses most, and the part the stock Prusa camera firmware doesn't offer: recording starts itself when a print starts and closes the file when the print ends. More on that below.
The board and the printed mount
The hardware list is short: one board, one camera module, one SD card, one printed mount, three magnets.
The board is the Seeed Studio XIAO ESP32-S3 Sense — an ESP32-S3 with 8 MB of PSRAM, Wi-Fi and a microSD slot "on a board about the size of a thumbnail." Its bundled camera module is fixed-focus, so Sam replaced it with the OV5640 autofocus module; neither the build log nor his forum thread records a soldering step — the module and card seat onto the board.
The mount is where your 3D printer earns its keep: you print the camera's holder on the very machine it will watch. The design follows Prusa's own Buddy3D camera: "it sits in a top corner of the enclosure and is held there by three magnets", arranged 120° apart around the chamfered corner so "the holder self-locates and pulls itself square." Sam's remix of KeepTheBOX's original Printables model makes the magnet pockets parametric (his printer runs 6 × 4 mm discs; the OpenSCAD file takes any size) and deepens the case to fit the taller module. He printed it in plain PETG after testing PP, PC and carbon-fibre nylon — the enclosure is heated, so the material has to cope with chamber temperature as well as hold a magnet.
A timelapse that starts itself
The feature that justifies the whole build: "The camera polls the printer's local PrusaLink interface, and when a print starts it begins recording; when the print finishes it stops and closes the file." No button, no script, no computer left running — the camera watches the printer it is mounted in, and a timelapse of every print simply exists afterwards. Manual recordings are left alone; it only stops what it started.
The recording is a standard MJPEG AVI on the SD card that plays in VLC, and the file header is rewritten after every frame — "so a recording cut short by a power cut is still playable up to that point." That is what power-outage safety means here: not an uninterruptible supply, but a file format disciplined enough that a cut loses you the tail of a video, not the whole thing. When a cheap card's filesystem is damaged by a write during a cut, the firmware tells "card present but corrupt" apart from "no card" and offers a Recover button that reformats the card from the browser. The maker's honest advice after three card failures: "the real fix is a high-endurance card, of the kind sold for dash cams."
Videos and stills download from the camera's own web page. "There is no server involved anywhere."
Forty-two revisions, in public
The build log opens with a warning worth quoting: "This post is an account of what went wrong along the way, because most of it is the kind of thing that will catch anyone who tries the same board." What went wrong is a masterclass in the traps that past example code sets.
The autofocus firmware blob arrived corrupted — 4,332 bytes with a stray 0x80 inserted roughly every 16 bytes, where the real firmware is 4,077 — and because the first bytes were right, reading them back after upload made it look intact. The SD card would not mount at all on this board until three separate bugs were fixed: a status LED and the card's chip-select sharing one pin, task stacks too small for the logging code they called, and a mount attempted 100 ms into boot before the card was ready. Two of those are upstream bugs, reported to Prusa as an open issue. The zoom took two detours — a magenta cast from the sensor's own windowing, then psychedelic colour and a too-dark picture in the JPEG decode path — before landing on the software crop the firmware ships today.
The number that sticks: "over August, 42 revisions of the firmware." The repo's changelog backs that up in public, with a dated entry for every revision — nobody has to take the story on faith.
What the open firmware actually buys you
Prusa ships its camera firmware under the GPL-3.0, and that license is the reason this project exists at all. Sam's variant is a fork of Prusa's 1.1.2 release, "under the same GPL-3.0 licence," and it still reports itself to Prusa Connect as 1.1.2, so Prusa's cloud treats it as a camera it already knows. Hackaday's framing of why this worked: the printer "does have an open-source firmware and will even somewhat automatically accommodate a camera if one is plugged in" — the openness is upstream, and the upgrade is what a stranger built on top of it.
That is the open-hardware story in one build: the source being available is what let one person keep the connection protocol intact while changing everything about the image, find a corrupted vendor blob by comparing bytes, trace a dead SD card to a pin shared with an LED, and file those bugs upstream where Prusa can fix them for everyone. The fixes are public too — the maker's own advice for a different board: "the SD and autofocus fixes are the parts most worth borrowing." The license, the changelog and the bug reports are all part of the same gift.
Known upstream issueLicense note: the camera firmware is GPL-3.0 — verified from the LICENSE file's own bytes (full GNU GPL v3), and the upstream prusa3d repo it forks is GPL-3.0 too. The printed holder remix on Printables is CC BY-NC-SA — a different license for a different thing (the mount, not the firmware); the two are never conflated on this page.
Skills, setup and honest limits
What you need to bring: the printer (for the mount), patience with the Arduino IDE, and honesty about what this is. The maker is plain about it: "It is written for one board and one camera, and I would rather say so plainly than have you discover it."
The build path, in his own steps plus the repo's: print the remix holder in PETG; source the XIAO ESP32-S3 Sense and an OV5640 module; install Arduino IDE with the esp32 core and the pinned libraries; put your Wi-Fi name, password and printer IP in mcu_cfg.h — the committed values are placeholders, and the repo ships no prebuilt binary because a binary would embed your Wi-Fi credentials; compile for the XIAO_ESP32S3 target and flash the .bin from the browser. Then add the camera in Prusa Connect like the stock one: create it in the web interface, paste its token into the camera's page.
Three cautions to keep. The camera's automatic update from Prusa's GitHub is switched off in this variant, because an update would overwrite the fork with stock firmware — updates happen only by uploading a .bin you compiled. The variant joins your Wi-Fi directly rather than opening a setup hotspot, which is why credentials go in at build time (a config flag restores Prusa's setup access point if you prefer it). And the upstream guide's standing warning applies to any ESP32 camera in an enclosure: fix the camera module to the board with thermal tape or it overheats — a hot-running module develops a permanent purple tint.
Honesty split
What we verified first-hand (2026-11-26): every quote and figure above traces to saved source bytes, and we counted the changelog's revision entries by script — exactly 42, numbered .1 through .42, dated 2026-08-14 to 2026-10-30, corroborating both "42 revisions" claims — and read the GPL-3.0 license from the LICENSE file's own bytes. We re-fetched the Seeed board listing live (price and stock above) and the upstream issue confirming the SD-mount bug report. And we compiled the variant firmware ourselves from the repo's published build settings — arduino-cli 1.6.0, esp32 core 3.3.11, the README's pinned libraries, no hardware attached — which built clean: the sketch occupies 1,608,026 of 3,342,336 bytes of program storage (48%), with global variables using 74,152 of 327,680 bytes (22%). One caveat our compile surfaced: the README pins the 3.1.0 Arduino core, but the zoom code needs a newer core's JPEG-decoder types — 3.3.11, the version the maker's own bug report names, builds it without errors. We did not run the camera on a printer, did not measure image quality or timelapse reliability over time, and verified no price beyond the board. What the upgrade does on a real printer is the maker's and Hackaday's own reporting, attributed as such throughout.
Sources
Sam Lovick's build log (lovickconsulting.com, 2026-11-09, "A Prusa Connect camera for the Core One: an ESP32-S3, an OV5640 and 42 firmware revisions") is the primary account: the goal, the holder remix, the corrupted autofocus blob, the SD-card, zoom and exposure fixes, and the timelapse design. The firmware lives at github.com/SamLovick/Prusa-Firmware-ESP32-Cam on the xiao-esp32s3-ov5640 branch — an independent GPL-3.0 fork of prusa3d/Prusa-Firmware-ESP32-Cam (1.1.2) — with the changelog recording every revision and the two upstream SD bugs filed as issue #145. Hackaday's feature (Bryan Cockfield, "Camera Upgrades For 3D Printers," 2026-11-25) is the editorial corroboration. The printed holder is Sam's Printables remix of KeepTheBOX's "ESP32 Camera Mod for CORE One" (CC BY-NC-SA). Sam also posted a compact summary of the whole project on the Prusa3D forum, and Seeed's wiki documents the board itself.
Source & Attribution

Illustration
How to Build It
Parts Needed
- A Seeed Studio XIAO ESP32-S3 Sense (today's price is on the page's Parts list)
- An OV5640 autofocus camera module — the board's bundled module is fixed-focus and gets replaced; see the build log for what the swap involves
- A high-endurance (dash-cam-class) microSD card, FAT32, max tested 16 GB
- The printed holder and case in PETG, printed on the Core One itself (the maker's Printables remix; OpenSCAD and PrusaSlicer files included, magnet pockets parametric)
- Three 6 × 4 mm magnets (10 × 2, 8 × 3 and 8 × 5 mm pockets are also covered)
Steps
- 1
Print the mount on the Core One
Print Sam's remix of the holder in PETG — he tested PP, PC and carbon-fibre nylon before settling on PETG because the enclosure is heated. The remix makes the magnet pockets parametric (his printer runs 6 × 4 mm discs) and deepens the case to fit the taller OV5640 module; the OpenSCAD file takes any magnet size.
- 2
Seat the camera module and card
No soldering: the OV5640 module and the microSD card seat onto the XIAO ESP32-S3 Sense. One upstream caution that applies to any ESP32 camera in an enclosure: fix the camera module to the board with thermal tape, or a hot-running module develops a permanent purple tint.
- 3
Install the Arduino IDE and the pinned libraries
Install the Arduino IDE with the esp32 core and the repo's pinned libraries (AsyncTCP v3.3.1 and ESPAsyncWebServer v3.4.5 at our check). Use esp32 core 3.3.11 — the README pins 3.1.0, but the zoom code needs a newer core's JPEG-decoder types; we verified 3.3.11 builds clean and 3.1.0 fails.
- 4
Put your Wi-Fi credentials in mcu_cfg.h
Edit mcu_cfg.h with your Wi-Fi name, password and printer IP. The committed values are placeholders, and the repo ships no prebuilt binary because a binary would embed your Wi-Fi credentials. The variant joins your Wi-Fi directly rather than opening a setup hotspot — a config flag restores Prusa's setup access point if you prefer it.
- 5
Compile for the XIAO_ESP32S3 target
Compile for the XIAO_ESP32S3 target with the repo's own build flags (its fw_build.sh stanza: PSRAM OPI, 8 MB flash). Our first-hand compile on core 3.3.11: the sketch occupies 1,608,026 of 3,342,336 bytes of program storage (48%), global variables 74,152 of 327,680 bytes (22%).
- 6
Flash the .bin from the browser
Flash the compiled .bin from the camera's own browser page. Note that the automatic update from Prusa's GitHub is switched off in this variant — an update would overwrite the fork with stock firmware; updates happen only by uploading a .bin you compiled.
- 7
Mount the camera in the corner
The holder sits in a top corner of the enclosure and is held by three magnets, arranged 120° apart around the chamfered corner so it self-locates and pulls itself square — the same position as Prusa's own Buddy3D camera.
- 8
Add the camera in Prusa Connect
Add it like the stock camera: create a camera in the Prusa Connect web interface, and paste its token into the camera's page. The firmware reports itself as 1.1.2, so Prusa's cloud treats it as a camera it already knows.
- 9
Print something
The camera polls the printer's local PrusaLink interface: when a print starts it begins recording, and when the print finishes it stops and closes the file. Manual recordings are left alone — it only stops what it started. Videos and stills download from the camera's own web page; there is no server involved anywhere.
Bill of Materials
Parts list
5 parts · 2 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× Seeed Studio XIAO ESP32-S3 Sense
$18.90–19.99 depending on warehouse at Seeed's own store, in stock (checked 2026-11-26)
1× OV5640 autofocus camera module
1 set× Printed holder + case (PETG remix)
3× Magnets 6 × 4 mm
Not included: A Prusa Core One to mount it in — the holder follows Prusa's own Buddy3D camera position, and the firmware reports to Prusa Connect as 1.1.2, A computer with the Arduino IDE, only to compile the firmware once — the repo ships no prebuilt binary because a binary would embed your Wi-Fi credentials in mcu_cfg.h, No soldering anywhere — the camera module and card seat onto the board
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
- Sam Lovick's build logThe primary account: the goal, the holder remix, the corrupted autofocus blob, the SD-card, zoom and exposure fixes, and the timelapse design (lovickconsulting.com, 2026-11-09)Docs
- Firmware repo (GitHub)SamLovick/Prusa-Firmware-ESP32-Cam on the xiao-esp32s3-ov5640 branch — a GPL-3.0 fork of Prusa's 1.1.2 camera firmware, changelog recording every revisionDocs
- Hackaday feature“Camera Upgrades For 3D Printers” by Bryan Cockfield, 2026-11-25Docs
- Prusa3D forum threadSam's compact summary of the whole project (2026-11-09)Docs
- Upstream issue #145The SD-mount bug report — the two bugs filed to Prusa, and the maker's build environmentDocs
- Seeed wiki for the boardGetting-started documentation for the XIAO ESP32-S3 SenseDocs
- SD Card FormatterThe SD Association's official formatter — the maker's advice when a card goes corruptDocs
- Printed holder remix (Printables)The PETG mount with parametric magnet pockets (CC BY-NC-SA; OpenSCAD + PrusaSlicer files) — URL exactly as the maker publishes itDocs
Related Projects




