Skip to content

Troubleshooting

Most of these came up while building the prototype.

The servo or the motor doesn’t move, but the Arduino answers OK

Section titled “The servo or the motor doesn’t move, but the Arduino answers OK”

OK only means the signals were sent: the firmware runs. Nothing moving means power or ground.

  • Check every GND connection first. A loose ground stops the servo and motor while all looks fine. Push each GND wire in firmly, or replace it.
  • Is the power jumper on the ULN2003 board in place?
  • Do the stepper driver and servo get 5V? Measure between their + and - pins with a multimeter.
  • A separate 5V supply needs its GND joined to an Arduino GND.

The roller doesn’t turn with the motor. It slips on the shaft; the D-shaped hole should be a push fit. Reprint it with a smaller SHAFT_D (changing the design).

120: the roller turns and the film stays, or moves only now and then. The O-rings slip on the film.

  • Leaf springs for your O-rings’ thickness (leaf_120_oring2 for 2 mm, leaf_120_oring2_5 for 2.5 mm), both in their slots, crown up? A 2 mm O-ring stands half a millimetre higher than a 2.5 mm one: over the 2.5 mm leaves it hardly touches the film.
  • Wipe the O-rings and film path with alcohol: O-rings are often sold oiled.
  • Press the roller’s front end down with a finger while the film advances. If the film now moves, the springs lift the roller in its front support: press more (LEAF_PRESS, 1.3 mm as designed; try 1.6) and reprint the leaf springs. See changing the design.
  • Still slipping: wrap one turn of PTFE plumber’s tape round the crown of each leaf spring. The film then slides more easily over the leaf, which holds it back while the O-ring pulls it.

120: the motor hums and nothing turns. The leaf springs press too hard: print them for less press (LEAF_PRESS 1.0).

The pressure frame doesn’t lift, or doesn’t lie flat

Section titled “The pressure frame doesn’t lift, or doesn’t lie flat”

The servo horn is mispositioned, or the angles don’t suit your build. Adjust PLATE_UP and PLATE_DOWN (servo angles in degrees) near the top of the firmware and upload again.

A button does nothing, or acts as if it’s always pressed

Section titled “A button does nothing, or acts as if it’s always pressed”

A 4-legged push button has two pairs of legs always connected; wired across one pair, it reads as always pressed. Use two diagonally opposite legs.

“Port busy” or “unable to open port” when uploading or scanning

Section titled ““Port busy” or “unable to open port” when uploading or scanning”

Another program has the serial port, usually a serial monitor in another terminal. Close it (Ctrl+C) and retry: only one program can use the port.

  • Is the camera on, connected, and in tethered-shooting USB mode? On the X-T5: PC Connection Mode → USB TETHER SHOOTING AUTO. Webcam and card-reader modes won’t work.
  • A desktop file manager may have grabbed it as storage: close it, or replug the camera.

macOS: “Could not claim the USB device”

Section titled “macOS: “Could not claim the USB device””

macOS took the camera. The app stops the process responsible each time it looks for the camera, so quit Photos and Image Capture and press Refresh. From the command line, run killall PTPCamera ptpcamerad first (installation on macOS; untested).

Windows: the camera “Needs setting up”

Section titled “Windows: the camera “Needs setting up””

Windows gave the camera a driver gphoto2 can’t use.

  1. Press Set up the camera and accept the administrator prompt (installation on Windows). Refused or cancelled? Press it again.
  2. Still failing: switch it to WinUSB by hand with Zadig: Options → List All Devices, choose the camera, WinUSB, Replace Driver. Then press Refresh.

Windows: the camera was set up, but another app no longer sees it

Section titled “Windows: the camera was set up, but another app no longer sees it”

That’s the WinUSB driver: give the camera back to Windows in the Device Manager. Rollscan offers to set it up again next time.

Unplug the USB cable for a few seconds. On the X-T5, switching off isn’t enough: USB keeps it powered.

With no live view, the activity list says “Live view not available” and the app works without: frames are centered from real shots, and Check framing takes one and shows it.

If the live view stops, press Refresh. Still nothing: unplug the camera for a few seconds. A shot left in its memory blocks the live view, and unplugging empties it (how it works).

“Calibrate again: the camera is now used with its live view”

Section titled ““Calibrate again: the camera is now used with its live view””

A calibration made through the live view or in real shots is only used that way. You see this once after updating to a version with the live view, and again if the camera stops giving one. Calibrating again takes a minute.

A calibration belongs to one roll, known by its name: it holds that film’s base (how clear its bare film is) and its exact frame width. A new name needs a new calibration, which takes a minute (Calibrate).

“This film is clearer than the base measured at the calibration”

Section titled ““This film is clearer than the base measured at the calibration””

Nothing on a film is clearer than its base, so the base measured is another film’s, or the exposure or lamp changed. The scan waits:

  • Stop scan, calibrate again for this film, and start over: right when you did change something.
  • Go on with a guess: for the rest of the scan, the base is guessed from each picture, as when nothing was measured.

Keep the camera on manual exposure from calibration to the end of the scan.

“That is not a blank frame” / “What you picked is not all bare film”

Section titled ““That is not a blank frame” / “What you picked is not all bare film””

The base is only measured on bare film.

  • A blank frame must be unexposed across the whole window, with no picture in view.
  • A rectangle must sit inside a gap: a little narrower than it, clear of both pictures, and at least a few pixels wide and tall.
  • No bare film? Press Skip.

“The picture in the live view never came to rest”

Section titled ““The picture in the live view never came to rest””

The scanner waits for the live view to settle, and gives up after ten seconds of movement or flicker: a flickering lamp, a strip still curling, a hand in the way. Check the light and the film, and retry.

A tenth of a pixel of shake between frames is normal and allowed for. A camera that visibly wobbles on its mount is not: tighten it.

“The camera refused to take the picture”

Section titled ““The camera refused to take the picture””

In USB tether mode the X-T5 keeps each shot until the computer deletes it, and refuses to shoot after about 12 RAW+JPEG pairs. The scanner deletes each shot once downloaded, so this shouldn’t happen mid-scan. If it does (shots left by another program, say), unplug the USB cable for a few seconds, then press Refresh.

The scanner analyses each shot’s JPEG. Set image quality to RAW+JPEG (or JPEG).

Look at the app’s live view (or run rollscan preview and open the picture). Red boxes are the gaps the frame was placed by, faint boxes bright bands it ignored, green lines the frame’s edges and center.

  • No red boxes: the gaps are out of view or too dark. Frame a little wider, with some gap on both sides, and check the exposure neither clips the base to pure white nor leaves it too dark.
  • The strip runs up and down in the picture: it must run left to right. Rotate the camera.
  • A red box inside a picture: a pale area passed for a gap. Calibration saves the frame width, so only gaps a frame apart are accepted: re-run calibrate on a frame detected correctly.
  • Thin negatives: where the picture is as clear as the base, the frame’s edge is invisible. The scanner uses the frame before or after if that one is dense; otherwise it asks you to line the frame up. Wider pressure-frame windows help by showing more of the neighbours.
  • Frames found in the wrong place after an update: calibrate again. Calibrations made before the gap’s width was recorded place thin frames less well.
  • Slides: add --polarity positive before the command.
  • Re-run calibrate after any change to the lens, camera height or magnification.
  • Two calibrations should give nearly the same numbers. If pixels per motor step differ by more than a percent or two, the film slips or catches between motor and camera.
  • The first frames of a roll are the least accurate, while the scanner learns your camera’s frame spacing.

“won’t center … calibration may be stale”

Section titled ““won’t center … calibration may be stale””

The corrections aren’t converging: the calibration no longer matches the setup. Re-run calibrate.

Read the app’s log:

  • Linux: ~/.local/state/rollscan/app.log
  • macOS: ~/Library/Logs/rollscan.log
  • Windows: %APPDATA%\rollscan\app.log

Most often another program already uses port 8765; rollscan --listen-port 8766 picks another. Opening Rollscan twice just shows the running copy.

“Port busy” when using the command line or uploading to the Arduino

Section titled ““Port busy” when using the command line or uploading to the Arduino”

The running app holds the camera and the scanner. Press Quit in the app first.

The app says “No scanner found” or “No camera found”

Section titled “The app says “No scanner found” or “No camera found””

Plug it in and press Refresh. For the scanner, pick the right port in the list if there are several.

Scans are never overwritten. Use another --name, or continue the numbering with --start.

Errors about the serial port on Linux (“Permission denied”)

Section titled “Errors about the serial port on Linux (“Permission denied”)”

Your user needs access to the Arduino’s serial port. The .deb installs a rule for it; with the AppImage, install it yourself (installation), then replug the Arduino.

rollscan: command not found, or “couldn’t run gphoto2”

Section titled “rollscan: command not found, or “couldn’t run gphoto2””
  • command not found: the app wasn’t installed from the .deb. Run the AppImage file itself.
  • “couldn’t run gphoto2”: gphoto2 isn’t installed (installation).