Skip to content

About

This repo is for a 3D Scanner which is made with an Raspberry Pi 3

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Photogrammetry Scanner (Raspberry Pi Edition)

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).


Features

  • 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.

System Architecture

+------------------+         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)|
                                          +------------------------+

Hardware Requirements

  • 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

Software Setup

1. Prerequisites

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 micro

2. Repository Cloning

Clone this repository using SSH:

git clone git@github.com:YOUR_USERNAME/3d-scanner-pi.git
cd 3d-scanner-pi

3. Network Share Configuration

To access capture output directly from a Windows environment, set up the Samba share:

  1. Create the destination directory:

    mkdir -p ~/scans
  2. 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
  3. Restart the Samba daemon:

    sudo systemctl restart smbd
  4. Map the share on Windows Explorer via \\<RASPBERRY_PI_IP>\scans.


Usage

Run the primary scanning routine:

python3 main.py

The system will iterate through set angular step increments, capture high-resolution frames, and instantly populate ~/scans for local processing.


Roadmap

  • 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)

License

Distributed under the MIT License. See LICENSE for more information.

About

This repo is for a 3D Scanner which is made with an Raspberry Pi 3

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages