A compact, automated 3D photogrammetry scanning system powered by a Raspberry Pi 3. This project handles turntable step execution, synchronized image capture, and automated network file sharing to streamline host PC photogrammetry pipelines (e.g., Meshroom).
- Automated Motion & Capture: Precise stepper motor rotation (28BYJ-48 / ULN2003) paired with scheduled USB camera snapshot capture.
- Network Integration (Samba): Automatic image sync to a shared Samba network drive for direct processing on a host workstation.
- Modern Terminal Workflow: Configured for seamless remote management via Micro editor and Git SSH syncing.
- Modular Codebase: Clean Python architecture designed for expansion into a full Web UI / Desktop Application.
+------------------+ USB +------------------------+
| USB Web Camera | <-------------------> | |
+------------------+ | Raspberry Pi 3 |
| (Scan Control Node) |
+------------------+ GPIO | |
| Stepper Motor | <-------------------> | |
| (28BYJ-48/ULN) | +------------------------+
+------------------+ |
| Samba (SMB/CIFS)
v
+------------------------+
| Host Windows PC |
| (Photogrammetry Engine)|
+------------------------+
- Controller: Raspberry Pi 3 (Raspberry Pi OS)
- Actuator: 28BYJ-48 Stepper Motor + ULN2003 Driver Board
- Camera: Standard USB Web Camera
- Power Supply: 5V 2.5A Micro-USB Power Supply
- Host Workstation: Windows PC for Meshroom/Photogrammetry processing
Ensure system packages and Python dependencies are installed on the Raspberry Pi:
sudo apt update && sudo apt upgrade -y
sudo apt install -y python3-pip python3-opencv python3-rpi.gpio samba git microClone this repository using SSH:
git clone git@github.com:YOUR_USERNAME/3d-scanner-pi.git
cd 3d-scanner-piTo access capture output directly from a Windows environment, set up the Samba share:
-
Create the destination directory:
mkdir -p ~/scans -
Append the following configuration block to
/etc/samba/smb.conf:[scans] path = /home/pi/scans writeable = yes browseable = yes public = yes create mask = 0777 directory mask = 0777 force user = greimelinio
-
Restart the Samba daemon:
sudo systemctl restart smbd
-
Map the share on Windows Explorer via
\\<RASPBERRY_PI_IP>\scans.
Run the primary scanning routine:
python3 main.pyThe system will iterate through set angular step increments, capture high-resolution frames, and instantly populate ~/scans for local processing.
- Basic GPIO stepper integration
- USB camera feed handling
- Samba network drive setup
- Automated folder creation with timestamped scan directories
- Embedded Web Dashboard (Live Preview & Control)
Distributed under the MIT License. See LICENSE for more information.