Skip to the content
4 layers93 × 70.4 mmThorPCB, the printed circuit board in 3D
Size
93 × 70.4 mm
Copper layers
4
Thickness
1.6 mm
Parts
20
Nets
49
Pads
140
Tracks, vias
204, 155
Pours
7
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
3 Sep 2024
Updated
13 Dec 2024

Overview

ThorPCB is an open-source printed circuit board by sschuchman, from the sschuchman/thorCam repository on GitHub. It is a 4-layer board of 93 × 70.4 mm with 20 parts on 49 nets, routed with 204 tracks and 155 vias.

It is built around the L293D. Its parts include 8 capacitors, 4 ICs and 2 connectors.

Main components

1

README

README.md

Thoracic Camera

Overview

The Thoracic Camera project is a collaborative effort to design a dynamic thoracic camera system capable of precision actuation and real-time feedback for use in minimally invasive surgeries. By combining a Raspberry Pi 5 for advanced processing and a Raspberry Pi Pico for motor control and sensor feedback, the system delivers a robust solution for camera tracking and actuation in the chest cavity.


Contributors

  • Sean Schuchman: January 2024 - December 2024
  • Jakob Schoeberle: August 2024 - December 2024
  • Colton Wall: August 2024 - December 2024

Hardware

Raspberry Pi 5

  • Role: Central processing hub for the system.
  • Responsibilities:
    • Handles video feed from the Pi Camera Module V3.
    • Performs computer vision tasks to detect and track a target object.
    • Sends actuation commands to the Pico Controller via UART.

Pico Controller (Raspberry Pi Pico)

  • Role: Camera actuation controller.
  • Responsibilities:
    • Interprets movement commands from the Raspberry Pi 5 and drives stepper motors.
    • Monitors sensor feedback from tension modules to ensure proper wire tension.
    • Handles precise actuation of the thoracic camera in response to commands.

Pico Controller

The Pico Controller acts as an abstraction layer between the computer vision system on the Raspberry Pi 5 and the physical camera actuation system. It simplifies control by encapsulating motor and tension management, providing an easy-to-interface control system.

Features:

  • Camera Actuation:
    Controls stepper motors to manipulate tension wires, enabling the camera to move along the x-plane and y-plane directions.
  • Tension Monitoring:
    Uses sensor feedback from load cells to dynamically adjust wires and maintain system balance.
  • Control Modes:
    • Manual Mode: Direct input to move the camera.
    • Automatic Mode: Actuation based on computer vision commands from the Raspberry Pi 5.

Directory Structure

The project is divided into several directories to organize hardware, software, and firmware resources.

  • /Software: Contains software running on the Raspberry Pi 5, including computer vision and the Flask web application for control.
  • /Firmware: Firmware for the Raspberry Pi Pico to manage motor control and tension monitoring.
  • /Hardware: Schematic diagrams, PCB designs, and other hardware resources.
  • /Datasheets: Documentation for components such as stepper motors, motor drivers, and sensors.
  • /3D_Models: 3D printable designs for physical components.
  • /legacy: Archive of previous iterations or deprecated designs.

Setup

Raspberry Pi Pico Setup

  1. Development Environment:

    • Use Visual Studio Code with the Raspberry Pi Pico extension to build and flash the firmware.
    • Ensure the Raspberry Pi Pico Debug Probe is connected for flashing and debugging.
  2. Firmware Installation:

    • Clone the repository and navigate to the /Firmware directory.
    • Open the project in Visual Studio Code and use the Pico extension to compile and flash the firmware.
  3. Hardware Connections:

    • Connect stepper motors via L293D drivers to the GPIO pins.
    • Connect ADS1115 ADC modules to GPIO4 (SDA) and GPIO5 (SCL).
    • Ensure UART pins (GPIO0 and GPIO1) are connected to the Raspberry Pi 5 for communication.

Raspberry Pi 5 Setup

  1. Install Required Software:

    • Ensure Python is installed with the required libraries (Flask, OpenCV, etc.).
    • Navigate to the /Software directory and install dependencies using:
      bash
      pip install -r requirements.txt
  2. Start the Web Application:

    • Run the app.py script to start the Flask web server:
      bash
      python app.py
    • Access the control interface via a web browser on the local network.
  3. Hardware Connections:

    • Connect the Pi Camera Module V3 to the CSI port.
    • Ensure UART is configured on /dev/ttyAMA0 for communication with the Pico Controller.

Usage

  1. Manual Control:

    • Use the web interface to manually send movement commands to the Pico Controller.
    • Adjust camera settings and monitor sensor feedback through the interface.
  2. Automatic Control:

    • Enable automatic mode via the web interface to allow the system to track a selected object.
    • The Raspberry Pi 5 processes the video feed to calculate the offset and sends movement commands to the Pico Controller.
  3. Real-Time Feedback:

    • Monitor sensor values and system logs in the web interface.
    • View live video and mask feeds to verify object tracking.

Parts

20
QtyValueFootprintReferences
4.1uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC5, C6, C7, C8
41uFCapacitor_THT:C_Disc_D6.0mm_W2.5mm_P5.00mmC1, C2, C3, C4
4L293DPackage_DIP:DIP-16_W7.62mmU0, U1, U2, U3
1+12VConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical+
1LEDConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3
1LOGOLOGOG***
1Motor0Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalM0
1Motor1Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalM1
1Motor2Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalM2
1Motor3Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalM3
1RaspPiHeaderConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalJ1

More from sschuchman/thorCam

1
  • 4 layers120 × 112 mmThorPBC2.0, the printed circuit board in 3D

    ThorPBC2.0

    sschuchman/thorCam

    46 parts1

Similar boards

  • 2 layers178 × 145 mmUltra DB X51 v1, the printed circuit board in 3D

    Ultra DB X51 v1

    ExploreEmbedded/8051_DevelopmentBoard

    Design files and sample code for 8051 development Ultra Boards

    145 parts70
  • 2 layers84.3 × 58.4 mmEnocderDriver, the printed circuit board in 3D

    EnocderDriver

    NikodemBartnik/Small-Projects

    All of smaller projects (Arduino, PCBs, electronics, code)

    35 parts55
  • 2 layers56.4 × 72.6 mmRas pi hat, the printed circuit board in 3D

    Ras pi hat

    geno543/Redropi_highway

    the project aims to detect asteroids and meteor movement using high-quality cameras and radar detection methods using an AI model for accurate analysis, and it classifies bodies be in three categories: non-meteor…

    8 parts13
  • 2 layers87.5 × 70 mmLaberinto, the printed circuit board in 3D

    Laberinto

    CRM-UAM/CRMaze

    Open source robot for maze solving + line following

    34 parts12
  • 2 layers92.5 × 62.5 mmDropGenPCB, the printed circuit board in 3D

    DropGenPCB

    harrislab-brown/DropGen

    DropGen uses a fluid reservoir and a piezoelectric buzzer to precisely and repeatably dispense small droplets on demand.

    25 parts12CC-BY-SA-4.0
  • 2 layers47.5 × 49.5 mmElectronic, the printed circuit board in 3D

    Electronic

    zosko/magspoof

    Magspoof with Arduino Pro Micro

    5 parts11
  • 2 layers120.7 × 184.1 mmBeachRover circuit, the printed circuit board in 3D

    BeachRover circuit

    wizardofrobots/roverCode

    Jetson Nano powered Arduino Rover

    11 parts10
  • 2 layers90 × 53.4 mmOpenOx, the printed circuit board in 3D

    OpenOx

    hacklabkyiv/openox-pcb

    PCB design for OpenOx - open source oxygen concentrator

    43 parts7GPL-3.0

Questions

How big is the ThorPCB PCB?

It measures 93 × 70.4 mm and has 4 copper layers, 1.6 mm thick.

What parts does the ThorPCB use?

20 parts, built around the L293D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the ThorPCB KiCad files?

From the sschuchman/thorCam repository on GitHub, at the commit this page was made from: the board is legacy/pre-2024/ThorPCB/ThorPCB.kicad_pcb and its schematic Hardware/Loadcells_Schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ThorPCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask sschuchman before reusing the design.