Skip to the content
2 layers76 × 97.6 mmHAT, the printed circuit board in 3D

This repository houses the Ferrous Metal Detection Gate (FDS in Dutch), a system designed to enhance safety by preventing ferrous metal passage into the MRI room. The FDS incorporates a Raspberry Pi Pico and a Raspberry Pi 5 (RPI5), facilitating communication between the devices and various sensors.

Size
76 × 97.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
45
Nets
97
Pads
201
Tracks, vias
335, 213
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
26 Feb 2024
Updated
18 Jun 2024

Overview

HAT is an open-source printed circuit board by Casperdroid5, from the Casperdroid5/FDS-Scan2Go repository on GitHub. It is a 2-layer board of 76 × 97.6 mm with 45 parts on 97 nets, routed with 335 tracks and 213 vias.

It is built around the WS2812B. Its parts include 22 connectors, 3 ICs, 2 resistors, 2 diodes and 1 capacitor. It belongs with the RP2040 boards of this library.

Main components

1

README

readme.md

FDS-Scan2Go

Overview

The Ferrous Metal Detection Gate (FDS) is a sophisticated system designed to enhance safety for MRI room access by detecting ferrous metals. This system utilizes a Raspberry Pi Pico and Raspberry Pi 5 to facilitate communication with various sensors, providing both auditory and visual feedback to the user.

Table of Contents

Features

  • Utilizes a ferrous metal detector for metal detection
  • Provides auditory and visual feedback to the user
  • Employs both Raspberry Pi Pico and Raspberry Pi 5
  • Communicates with multiple sensors for enhanced detection accuracy

Hardware Requirements

Raspberry Pi Pico

  • All the wanted peripherals (buttons, sensors etc.)
  • Micro usb cable (ensure it has data wires)

Raspberry Pi 5

  • Raspberry Pi 25W, power supply
  • USB to 3.5mm audio adapter
  • Display/monitor for imageoutput
  • MicroHDMI to HDMI adapter

Software Setup

Prerequisites

  • Python 3.12 or higher
  • Required Python libraries (listed in requirements_rpi5.txt for Raspberry Pi 5)
  • MicroPython libraries for Raspberry Pi Pico (listed in requirements_pico.txt)

Installation

Raspberry Pi Pico

  1. Install Dependencies Since the Pico runs on MicroPython for this project, you'll need to upload the required libraries manually or use a tool like mpremote.

    sh
    mpremote mip install micropython-neopixel micropython-machine micropython-time micropython-i2c micropython-uart
  2. Upload Scripts to Pico Upload the relevant .py files to the Pico:

    sh
    mpremote fs cp hardware_s2g.py :hardware_s2g.py
    mpremote fs cp system_utils.py :system_utils.py
    mpremote fs cp main.py :main.py

Raspberry Pi 5

  1. Prepare MicroSD Card Install Raspbian 64-bit (with desktop) on a 32GB MicroSD card (using Raspberry Pi Imager, for example). Once installed, boot the Raspberry Pi 5, connect it to the internet, and open a terminal with root permissions.

  2. Install Python Dependencies

    sh
    pip install -r requirements_rpi5.txt
  3. Install System Dependencies

    sh
    sudo apt-get update
    sudo apt-get install feh vlc
  4. Run the Application Navigate to the project directory and start the main script:

    sh
    python main.py

Usage

  1. Connect the Raspberry Pi Pico and Raspberry Pi 5 via a MicroUSB cable.
  2. Start the main.py script on the Raspberry Pi 5.
  3. The system will initialize, and the sensors will begin to monitor for ferrous metals. The NeoPixel LEDs and the display will provide feedback based on the detection status.

Contributing

We welcome contributions to the FDS-Scan2Go project. If you would like to contribute, please fork the repository and submit a pull request.

If you would like to emplement this code into your own project, ensure to give credit to the original author and mention any significant changes or improvements.

Disclaimer

This project is licensed under the MIT License. See the DISCLAIMER file for more details.

Parts

45
QtyValueFootprintReferences
11Conn_01x02_SocketConnector_JST:JST_EH_B2B-EH-A_1x02_P2.50mm_VerticalJ2, J8, J9, J10, J12, J13, J14, J18, J19, J22, J24
6LOGOLOGOG***, G***, G***, G***, G***, G***
4Conn_01x03_SocketConnector_JST:JST_EH_B3B-EH-A_1x03_P2.50mm_VerticalJ4, J5, J6, J16
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3Jumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1, JP2, JP3
2Conn_01x04_SocketConnector_JST:JST_EH_B4B-EH-A_1x04_P2.50mm_VerticalJ7, J23
2Conn_01x05_SocketConnector_JST:JST_EH_B5B-EH-A_1x05_P2.50mm_VerticalJ20, J21
10.1uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1
110KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2
13.9KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
15 AFuse:Fuse_2010_5025Metric_Pad1.52x2.65mm_HandSolderF1
15.0VSamacSys_Parts:DIOM5436X261ND1
1Conn_01x14_SocketConnector_PinSocket_2.54mm:PinSocket_1x14_P2.54mm_VerticalJ3
1Jack-DC 5VConnector_BarrelJack:BarrelJack_Wuerth_6941xx301002J15
1LM741Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1MC14043BDR2GSamacSys_Parts:SOIC127P600X175-16NIC1
1PicoMCU_RaspberryPi_and_Boards:RPi_Pico_SMD_THU1
1RPi_GPIO_custom:Pin_Header_Straight_2x20J1
1TestPointTestPoint:TestPoint_Pad_2.0x2.0mmTP1
1WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD2

Similar boards

  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 2 layers95.3 × 161.9 mmDfh badge, the printed circuit board in 3D

    Dfh badge

    tanaes/whopping_Voron_mods

    135 parts787GPL-3.0
  • 2 layers42.8 × 28.8 mmMM Skirt, the printed circuit board in 3D

    MM Skirt

    PrintersForAnts/Micron

    If you want to purchase full kits there are 3 available (Kits are slowly updating to R1 hardware just make sure to double check the included hardware in your kit and if you have any questions reach out in the discord)

    11 parts741GPL-3.0
  • 2 layers149.6 × 127.1 mmErgodash, the printed circuit board in 3D

    Ergodash

    omkbd/ErgoDash

    keyboard

    187 parts732MIT
  • 2 layers285.5 × 95 mmReviung46 ver1 1, the printed circuit board in 3D

    Reviung46 ver1 1

    gtips/reviung

    The REVIUNG41 is 41-key column staggered keyboard.

    119 parts517MIT
  • 2 layers177.7 × 144.5 mmCOMM PANEL, the printed circuit board in 3D

    COMM PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    275 parts431

Questions

How big is the HAT PCB?

It measures 76 × 97.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HAT use?

45 parts, built around the WS2812B. 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 HAT KiCad files?

From the Casperdroid5/FDS-Scan2Go repository on GitHub, at the commit this page was made from: the board is Hardware/RPI5-Scan2Go-HAT/HAT/HAT.kicad_pcb and its schematic Hardware/RPI5-Scan2Go-HAT/HAT/HAT.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the HAT design in my own project?

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