1 / 5
Hardware

ESP-Mosaico makes a thermal “instant camera”

This page was translated by AI and may differ from the original
其他

Put ESP-Mosaico, camera, dual-button interactive board, and thermal printer into a custom-designed 3D‑printed case, creating a small camera that can take photos, preview, and print on site. Supports five real‑time filters: normal black‑and‑white, inverted, halftone, threshold engraving, and ASCII. You can take a photo by pressing a physical button, or say “prepare to take a photo,” which triggers a five‑second countdown and shutter sound effect. The photo is first previewed on the screen, and after confirmation it is sent directly to the printer via Bluetooth, without needing a mobile app or computer as an intermediary. This project shares the case model, application source code, firmware, and assembly usage materials.

Creatorsytsyt188
Created
2026-11-23
3509

I wanted to turn Mosaico into a handheld little camera that prints a photo immediately after shooting, so I attached a thermal printer to it and combined the two with a 3D‑printed case.

The current usage flow is straightforward. Power on, go to viewfinder, select a filter, take a photo, confirm the result on the screen, and print if satisfied. If the shot is bad, retake; a shutter press does not consume paper each time.

Case and Hardware

The case uses a light‑colored body with rainbow stripes; the upper part houses the Mosaico and two physical buttons, while the lower part holds the thermal printer. The screen, lens, and control buttons remain on the front, and the body provides cutouts for connectors and the paper output.

The complete device uses the following components.

  • ESP-Mosaico main unit.
  • Camera module mounted on the left side.
  • Interaction dual mechanical button module mounted on the right side.
  • Bluetooth thermal printer.
  • 58 mm thermal paper and the matching 3D‑printed case.

Mosaico sends photos directly to the printer via Bluetooth. The printer retains its own driver board and power system, so the photo‑to‑print workflow does not require a phone app or computer forwarding.

Shooting and Operation

The screen shows a black‑and‑white viewfinder image overlaid with a red framing line and operation hints; the top‑right corner displays battery level and charging status.

Current PageUpper ButtonLower Button
Live viewTake photoEnter filter selection
Filter selectionPrevious filterSingle click to switch to next, double click to confirm and exit
Photo previewConfirm printRetake
Photo countdownTake photo immediatelyCancel countdown

You can also say “prepare to shoot” while in viewfinder. The device starts a five‑second countdown, plays five beeps, then emits a shutter sound and takes the picture. Voice recognition is performed on‑device, and after shooting you still need to manually confirm printing.

Five Black‑and‑White Filters

Since thermal paper can only output black and white, I focused the filters on how grayscale is converted into a dot matrix.

  • Normal B&W, preserving tonal gradation with varying dot density.
  • Inverted B&W, swapping black and white.
  • B&W halftone, using circles of different sizes to represent light and dark.
  • Threshold printmaking, increasing white space, merging local speckles to form more coherent black areas.
  • ASCII, composing the image with characters of varying density.

Filters can be previewed in real time. After shooting, the screen preview and the print use the same black‑and‑white dot matrix; the framing line, buttons, and countdown do not appear on the paper.

Print Results and Debugging

During development I encountered paper feed stuttering and white horizontal bands in photos. After adjusting the bitmap transmission method and Bluetooth flow control, the horizontal bands disappeared on this printer and the paper feed became smoother.

The current output is 384 × 384 dots. Although the paper width is 58 mm, the effective printable width measured on this device is 384 dots, leaving unprintable margins on both sides of the paper. Expanding the output width would truncate the image, so forced stretching was not used.

Shared Materials

The project materials are divided into four parts for convenient selective download.

  1. 3D‑printed case model.
  2. Firmware version 1.4.0 and installation guide.
  3. Application source code, fixed‑version official dependencies, and development documentation.
  4. Hardware bill of materials, assembly steps, and user guide.

The source code is continuously maintained in the VersatileCamera GitHub repository. You can continue to modify the case colors, UI, filters, or print effects.

Things to Know Before Replicating

The current firmware is hard‑coded to connect to my development printer’s address and does not yet have an automatic printer discovery and selection UI. When using your own printer, you need to modify the Bluetooth address in the source code, verify the pairing PIN, and recompile and install. Protocols and printable widths of other models need to be validated separately.

Photos are currently stored only in memory; there is no gallery or power‑off persistence.

Viewfinder, shooting, retaking, filters, physical buttons, voice countdown, and Bluetooth printing have all been verified on hardware. However, when powered by battery, the device sometimes repeatedly restarts after shooting and recovers when an external power source is connected; the cause is still under investigation, and this issue has not been resolved in the current version.

Comments (0)