DIY Tiny Photo Printer — Build Plans Kit

€ 19,00

Build your own DIY photo printer using affordable 3D-printed parts, servos and fine-liner pens. Includes CAD files, Arduino firmware and Python software to convert and print your own images. Requires basic electronics, mechanical assembly and programming skills.

Category:

Description

DIY Marker Printer — Build Plans Kit

⚠️ Important: Please read before starting

This is an experimental DIY project, not a beginner-friendly kit.

You should be comfortable with basic electronics, mechanical assembly, 3D printing, CAD, and working with code. You may need to adjust mechanical parts, modify CAD files, or debug the software to get everything working.

I built this printer using the specific components and parts available to me at the time. Component dimensions, tolerances, and fit can vary between suppliers and production batches. Even parts that look identical may not fit exactly the same way.

The software is provided as-is. It is essentially the code I used to make the printer work for my video. It’s a bit messy, hasn’t been developed into a polished software product, and was built largely with help from AI chatbots. It worked on my machine, but I cannot guarantee it will work perfectly out of the box on yours. You may need to inspect and modify the code yourself.

Printing can also take a while. At 300 pixels wide, a single print can take up to an hour. Reducing the image width to around 100 pixels makes printing considerably faster.

Please approach this project as an experiment that you may need to troubleshoot and adapt. That’s part of the fun, but it’s worth knowing before you start!


1. General workflow

The general process is:

  1. 3D print all the parts.
  2. Assemble the printer as shown in the build video.
  3. Install and adjust the mechanical components.
  4. Upload the Arduino firmware.
  5. Set up the Python software on your computer.
  6. Calibrate the printer and prepare your images. The GRIDTEST command is used to print the calibration dots.
  7. Send an image to the printer and start printing.

3D printing

I printed the parts using a 0.16 mm layer height. Use supports wherever you think they are necessary.

You may need to adjust some parts depending on your printer and the tolerances of your printed components.

Screws and fasteners

I recommend buying a few assorted self-tapping screw kits rather than ordering every screw individually. They’re inexpensive, and having a variety of sizes available is very useful when assembling and adjusting the printer.

You may find that some screw lengths or diameters need to be changed slightly to suit your printed parts.


2. Mechanical assembly and adjustment

Build the printer following the assembly shown in the video.

One particularly important step is adjusting the servo travel to match the mechanical geometry of your printer.

The servo positions need to match the paper holder and the travel of the front-to-back gear rack. Pay special attention to the orientation and position of the front-to-back gear rack before fastening it. If it is installed incorrectly, the mechanism can jam.

Check that the mechanism can travel through its entire intended range without binding or hitting anything.


3. Software setup

The software consists of two parts: Arduino firmware and a Python application.

I use the Arduino IDE for the Arduino firmware and Visual Studio Code (VS Code) to run the Python application.

Files included

  • printer_arduino.ino — The Arduino firmware. Open this file in the Arduino IDE and upload it to your Arduino Nano.
  • marker_printer_lab.py — The main Python application. Run this file to start the printer interface.
  • marker_printer_profile.json — A configuration/profile file that is populated and updated by the Python application through the browser interface.
  • photos/ — Place the photographs you want to convert into this folder.

Arduino firmware

Open printer_arduino.ino in the Arduino IDE, select your Arduino Nano and the correct serial port, then upload the firmware.

If the Arduino IDE asks you to install a missing library, install the required library before running again.

Python application

Install Python 3 and the required packages.

The external Python dependencies used by the script are:

  • NumPy
  • Pillow (PIL)

You can install them using pip:

pip install numpy pillow

The other imports used by the script are part of Python’s standard library.

Open marker_printer_lab.py in VS Code and run it. This should start a local application and open a browser window.

The browser interface allows you to:

  • Adjust printer calibration settings.
  • Prepare and convert photographs.
  • Preview and simulate prints.
  • Connect to the printer and communicate with the Arduino.
  • Send print data to the printer.

The browser interface also functions as a serial terminal. You can send commands to the Arduino through the Arduino IDE’s Serial Monitor as well, but the browser interface is needed to transfer the actual image data in chunks.

The marker_printer_profile.json file is populated by the application. You generally shouldn’t need to edit it manually.

USB connection issues

I initially had some trouble getting the printer detected in Firefox. In my case, this turned out to be a bug in the CH340 USB-to-serial driver. Updating to a newer driver version fixed the issue.

If your Arduino is not detected correctly, check that you have the correct CH340 driver installed and that your operating system recognizes the USB serial device.


4. Preparing and printing an image

Follow these steps when you’re ready to print:

  1. Close the Arduino IDE. It can interfere with the Python application’s serial connection if both programs try to access the same COM port.
  2. Place the photographs you want to print in the photos/ folder.
  3. Open the browser interface and prepare your images using the available settings. Check the preview and make sure you’re happy with the result.
  4. Connect the printer to your computer using the USB cable.
  5. Make sure the printer is connected, but do not enable ARM yet.
  6. Click Upload in the browser interface to send the prepared image to the Arduino.
  7. Wait for the confirmation message in the serial interface that the upload was successful.
  8. Insert the correct pen into the pen holder. Use the supplied spacer to set the correct pen height.
  9. Confirm that the correct pen has been installed.
  10. Enable ARM and hit PRINT when the printer is ready to move. The print should now start!

A note on pen height: Correct pen height is important for getting consistent dots. Make sure you use the spacer to position the pen correctly before starting a print.


5. Estimated printing time

Printing time depends heavily on the image width and the selected settings.

As a rough guideline:

  • 100 pixels wide: Relatively quick prints.
  • 300 pixels wide: Can take up to an hour for a complete print.

The 300-pixel-wide prints shown in my video are therefore quite time-consuming. Start with a smaller image while testing and calibrating your printer.


6. Bill of materials

The estimated total cost of the components is around €20.

This is only an approximation. Actual costs depend on where you source the components, shipping costs, the price of your filament, and whether you already have some of the required parts.

For example, I assume you already have access to a suitable 12V power supply, perhaps salvaged from an old electronic device.

Electronics

Component Approx. cost
PCA9685 servo driver board €2.50
Arduino Nano €3.00
2 × SG90 servo clones €2.70
TAU-0530T 12V solenoid €1.50
1N4007 diode —
IRFZ44N MOSFET —
~270 Ω resistor —
~10 kΩ resistor —
Small breadboard —
2-pole terminal blocks for 12V and GND distribution —
12V power supply —

I used a 12V power supply rated at 2.25A. A supply with a lower current rating might also work, depending on your setup.

You can often salvage a suitable power supply from an old electronic device. Always check the output voltage and polarity first. Identify the +12V and 0V wires before connecting the supply to your circuit.

The small breadboard is only used for the solenoid control circuit. You can also use a different board or build and solder the circuit yourself.

Mechanical parts and pens

Component Notes
3D-printed parts See the included CAD files
STAEDTLER triplus fineliner 334 pens I used the CMYK colours
M2 nut Pen clamp
M2 × 20 mm bolt Pen clamp
2 × M3 × 4 mm bolts Solenoid mounting
2 × M3 × 8 mm self-tapping screws Solenoid to gear rack
3 × M3 × 25 mm self-tapping screws Rollers
1 × M3 × 25 mm self-tapping screw Front roller
4 × M1.4 × 8 mm self-tapping screws Arduino mounting
2 × M2 × 10 mm self-tapping screws Breadboard mounting
4 × M2 × 6 mm self-tapping screws PCA9685 mounting
4 × M2 × 6 mm self-tapping screws Large gear to servo horn
2 × M2 × 8 mm self-tapping screws Large gear
2 × M3 × 12 mm self-tapping screws Roller holder
1 × M2 × 8 mm guide screw Keeps the large wheel from pivoting and getting stuck

I used STAEDTLER triplus fineliner 334 pens. Other pens may work too, but avoid ballpoint pens. If you use a different pen, you may need to modify the pen holder in CAD to get a proper fit.

Cables and miscellaneous items

  • USB-C cable for connecting the printer to your computer.
  • Servo power cable (I used an old USB cable).
  • USB power supply for the servos (an ordinary USB-A charger can be used).
  • Sticky cable guide and a small cable tie for the solenoid cable.
  • Paper. Try to use the thickest paper you can find. A6 paper fits in the holder.

Optional items

  • IKEA RÖDALM 10 × 15 cm photo frames.
  • Cable ties.
  • Adhesive cable-tie mount for attaching the solenoid cable to the frame.

Component links

Prices and availability may change. These are examples of the components I used, not guaranteed permanent product listings. Check dimensions and specifications before ordering.


7. Need help?

Building this printer can involve some trial and error. If you run into problems, feel free to send me an email or post a question in the Discord server.

You’re welcome to join, share your build, ask questions, or just show off your prints!

Discord: https://discord.gg/C7jCeqk38y

Have fun building your printer!