Skip to content

Build guide

From a pile of parts to your first scanned roll: an afternoon of printing and assembly, then an hour of setup. No soldering: everything plugs together with jumper wires.

  1. What you need
  2. Print the parts
  3. Assemble the transport
  4. Wire the electronics
  5. Flash the Arduino
  6. Test the transport
  7. Install the software
  8. Set up the camera
  9. Calibrate
  10. Scan a roll

Part Qty Notes
Arduino Uno (or a clone) + USB cable 1
28BYJ-48 5V stepper motor with ULN2003 driver board 1 Usually sold together
SG90 micro servo 1 Comes with screws and horns
Push buttons 3 Any momentary switch; small 6 × 6 mm tactile buttons are fine
Jumper wires (and a small breadboard, optional) ~15
Part Qty Notes
Screws + nuts for the motor’s two mounting ears 2 About 10 mm long. M2 with nuts holds (the prototype uses them) but is loose in the 4.2 mm holes; M3 or M4 fit better
A 6 cm piece of 1.75 mm filament 1 Cut into the pressure frame’s hinge pin (3 to 4 cm) and, for 35mm, the insert’s two locking pins (about 1 cm each)
O-rings, 10 mm inner diameter × 2 or 2.5 mm thick 2 120 only. 9 mm inner diameter works too. Print the leaf springs for their thickness. Wipe them with alcohol: they are often sold oiled, and then slip on the film
Part Notes
A digital camera gphoto2 can trigger over USB Developed with a Fujifilm X-T5. Check yours on the libgphoto2 support list
A macro lens One that fills the frame with a 35mm negative (1:1, or close to it). The prototype uses a Laowa 65 mm f/2.8 2× Ultra Macro APO
A copy stand or tripod To hold the camera pointing straight down at the film
A flat LED light panel The legs are sized for a 20 mm thick panel such as a CineStill CS-Lite (see changing the design)

Linux (tested on Arch Linux), Windows 11 (tested; Windows 10 untested) or macOS (untested). See installing the software.


Parts per film format and printing notes are in hardware/README.md. In short: deck, two legs, then your film’s insert, roller and frame(s). Print the insert in a dark filament.


The 35mm assembly

Grey: the universal base. Teal: the insert for this film width. Blue: the pressure frame and the roller. Green: servo and stepper.

  1. Legs. Push their pegs into the holes under the deck, one leg at each end (a firm fit).

  2. Stepper. Bolt the 28BYJ-48 by its two ears to the back of the tall motor wall (M2 screws and nuts are enough), shaft poking through to the front.

  3. Roller. For 120, first stretch an O-ring into each groove. Slide its thin front stub into the small front support, then push its D-shaped back hole onto the motor shaft. It should turn freely without slipping on the shaft.

    Motor coupling

  4. Servo. Push the SG90, on its side, through the U-shaped cut-out in the servo wall, shaft towards the film, and screw it in. Leave the horn off.

    Servo mount

  5. Insert. For 120, first lay a leaf spring crown up in each of its two slots: the pair for your O-rings’ thickness. Slide the insert into the deck’s guides from the left until it hits the end stop (its slots pass under the sprocket; on 120 the O-rings press the springs down). Then lock it:

    • 35mm: push a locking pin into each small hole at its left end.
    • 120: nothing to do: its two ears drop behind the guides’ ends at the stop. To take it out, lift its left end until they clear.
  6. Pressure frame. Put its hinge barrel between the insert’s two hinge blocks and push the filament pin through all three. The pin is tight in the insert and free in the frame, so the frame swings.

  7. Servo horn. Fit it in step 6, once the Arduino has set the servo to rest.

  8. Light. Slide the panel under the deck, between the legs, centered under the opening.


Wiring diagram

Also as a vector SVG, drawn by make_wiring.py: edit and re-run it to change it.

From To Arduino Uno
ULN2003 board IN1, IN2, IN3, IN4 D4, D5, D6, D7
ULN2003 board + / - 5V / GND
Servo signal (orange or yellow wire) D9
Servo power (red) / ground (brown or black) 5V / GND
BACK button D10, other leg to GND
FWD button D11, other leg to GND
FRAME button D12, other leg to GND
  • Plug the motor’s 5-wire connector into the ULN2003 board.
  • Keep the board’s power jumper on: without it, no power.
  • No resistors: the firmware turns on the Arduino’s internal pull-ups.
  • On 4-legged buttons, use two diagonally opposite legs: they always go through the switch.
  • Push every GND wire in firmly: a loose ground is the most common cause of a servo or motor that silently does nothing.

With arduino-cli:

arduino-cli core install arduino:avr
arduino-cli lib install Stepper Servo
arduino-cli compile --fqbn arduino:avr:uno firmware/film_scanner
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno firmware/film_scanner

arduino-cli board list shows the port (on macOS, like /dev/cu.usbmodem14101).

Or in the Arduino IDE: open firmware/film_scanner/film_scanner.ino, install Stepper and Servo from the Library Manager, select Arduino Uno, and upload.


Once powered, the Arduino moves the servo to rest.

  1. Fit the servo horn just under the pressure frame’s lift arm, not lifting it.

  2. Try the buttons. Hold FWD or BACK: the frame lifts and the film moves, faster after a second. FRAME advances one frame.

  3. Try the serial commands (optional) in a monitor at 9600 baud:

    arduino-cli monitor -p /dev/ttyACM0 -c baudrate=9600

    Wait two seconds (opening the port restarts the Arduino), then type + and Enter: the frame lifts, the film moves about 0.5 mm, the frame drops, and the Arduino answers OK. M1630 advances one 35mm frame. Quit (Ctrl+C) afterwards: the app needs the port.

After step 7, the app’s Test motor & servo button does the same, without a terminal or camera.

Frame lifts too little or too much? Change PLATE_UP and PLATE_DOWN (servo angles in degrees) at the top of the sketch and upload again.


Install the app as installing the software explains: .deb on Debian and Ubuntu, AppImage on other Linux, -setup.exe on Windows, .dmg on macOS (untested). Open Rollscan: its window shows whether it found the camera and the scanner.

Steps 8 to 10 are the short version; Using the app covers every button and a first roll from start to finish.


Mount the camera straight down, the strip running left to right in the picture. Frame the whole frame plus a little of the gap on each side: the scanner centers on those gaps.

On the camera:

Setting Value Why
Focus Manual, focused once on the film grain Autofocus can hunt on a uniform negative
Exposure Manual Every frame exposed alike, and the film’s base stays where calibration measured it
Image quality RAW+JPEG (or JPEG) The scanner reads the JPEG; keep the RAW for editing
Shutter Electronic Frames that need a nudge are shot again; this spares the mechanical shutter

Fujifilm X-T5: set Connection Setting → PC Connection Mode to USB TETHER SHOOTING AUTO. RAW Recording on Lossless Compressed roughly halves each shot’s transfer time.

Connect the camera over USB and check that gphoto2 sees it:

gphoto2 --auto-detect

Press Refresh in the app for a live view to frame and focus with. Red outlines are the gaps found between frames, green lines the frame’s edges and center, the white line the picture’s middle; the text below says how far the frame is off center.

“Live view not available”? The app works without it: see troubleshooting.


Calibration measures how far the picture moves per motor step, how wide a frame is in it, and how clear the film’s bare base is.

Do it for each film (the base changes with the stock; cameras differ a little in frame width), and again after changing the lens, camera height, exposure or lamp. Each scan asks for a calibration made for its roll’s name.

In the app, choose film and frame size, name the roll, and press Calibrate. Two steps:

1. The film’s base. The scanner finds the gaps by how clear the bare film is. Show it one of three ways:

  • A blank frame (best; it also shows how even the light is): put unexposed film under the camera and press Measure this blank frame. A roll’s end usually has two or three; the leader has seen light.
  • A gap (cut film, no blank frame): draw a rectangle on the live view inside a gap, clear of both pictures, and press Measure what I drew.
  • Skip: the base is learned from the frames found during the scan.

2. A frame. Roughly center a frame with a picture and press Calibrate. Keep the window’s whole height in view, black above and below: the frame size is read off it, as the printed pressure frame’s window is exactly one frame tall. Make your own the same.

The second step of the calibration, under the live view

The base is measured (in a gap drawn on the live view); with a frame roughly centered, Calibrate finishes. Shown against the tests’ simulated scanner.

Stay on manual exposure until the scan ends: the base is measured at one exposure. A scan meeting clearer film (another film or exposure) stops and asks before guessing.

Cameras without live view get a Check framing button: it takes a picture and shows where the frame is. A calibration belongs to one format and one film; the app says when your choice needs a new one.

On the command line, only the second step:

rollscan calibrate
rollscan preview

That skips the base and the roll’s name, so the app still wants its own calibration. rollscan scan uses this one and guesses the base from each picture.

calibrate looks at the film (through the live view if there is one, no picture taken) while moving it 200 steps, 600 more, then 200 back. The forward moves give the scale and the loss at the start of each move; the move back, the play on turning round. It saves ~/.config/rollscan/calibration.json and brings the film back near where it was.

preview looks once and saves preview.png, marked like the live view (other bright bands it looked at outlined faintly). Frame not found? See troubleshooting.


Line up the first frame with FWD and BACK or the app’s arrows: the inner ones move the distance picked between them (0.25 to 10 mm), the outer ones a whole frame. The mouse wheel zooms to check the edges; drag to pan.

Set the folder and number of frames, and press Start scan. Files take the roll’s name (roll42_01.raf); to rename them without changing the roll (and so the calibration), fill File name.

The live view stays on, freezing about five seconds per photo. If a frame can’t be found, the scan pauses: move the film with the arrows, then press Shoot it.

A scan paused on a frame the scanner could not find

The scan waits over the picture: line the frame up with the controls under it, then Shoot it, or Stop scan.

From the command line:

rollscan scan 35mm 36 --name roll42 --out ~/scans/roll42

Each frame is centered through the live view, shot, and checked, giving roll42_01.raf, roll42_01.jpg, roll42_02…. Without live view, centering uses real shots: around 12 seconds per frame on an X-T5.

Keyboard: arrows move the film (Shift: a whole frame; up and down: how far), S starts the scan, Esc stops it, ? lists the rest.

While it runs:

  • A frame isn’t found or won’t center: the scan pauses. Line it up with the buttons and press Enter to shoot, or q to stop.
  • Blank frames are skipped; two in a row mean the strip’s end, and the scan stops.
  • Don’t press FRAME mid-scan: the Arduino would advance a frame by itself. The software warns you, but that frame is skipped.

Options:

Option What it does
35mm, pano, 6x45, 6x6, 6x7, 6x9 The film format (sets the initial frame spacing)
--name, --out File name prefix and output folder
--start 7 Number the first file 7, to continue a roll cut into strips

Two options apply to every command, so they go before it:

Option What it does
--polarity positive For slides: rollscan --polarity positive scan …
--port /dev/… The Arduino’s serial port, if it isn’t /dev/ttyACM0

Existing files are never overwritten: a scan won’t start if its first file names are taken. Use another --name, or --start after your last frame.