
Controller
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards

Industrial 2D Bin Packing & Conveyor Sizing System (Thesis)
Ver1 is an open-source printed circuit board by JuanIDK201, from the JuanIDK201/smart-packing-cv-system repository on GitHub, published under the MIT licence. It is a 2-layer board of 77 × 47.3 mm with 11 parts on 20 nets, routed with 87 tracks and 0 vias.
Its parts include 2 resistors, 1 IC and 1 transistor. It belongs with the ESP32 and RISC-V boards of this library.
Smart Packing CV System is an end-to-end industrial automation and mechatronics solution developed as an Engineering Degree Thesis. The project integrates real-time Computer Vision on a conveyor belt, closed-loop DC motor velocity control (PID) via ESP32/Arduino, and a multi-algorithm 2D Bin Packing Optimization Engine (MaxRects, Skyline, Genetic Algorithm, and Google OR-Tools CP-SAT) to optimize package placement in shipping containers while minimizing spatial waste and processing time.
graph TD
A["Industrial Conveyor Belt (DC Motor + Encoder)"] -->|"Laser Gate Trigger"| B["ESP32 Closed-Loop PID Controller"]
B -->|"Serial Handshake (115200 baud)"| C["Raspberry Pi 4 / Host Computer"]
C -->|"Picamera2 / USB Camera"| D["OpenCV Computer Vision Engine"]
D -->|"Contour Detection & Dimension Estimation"| E["Object Profiler (L x W x H)"]
E -->|"JSON Real-time Feed"| F{"Optimization Engine"}
F -->|"Maximal Rectangles"| G["MaxRects Algorithm"]
F -->|"Skyline Heuristic"| H["Skyline 2D Packer"]
F -->|"Constraint Programming"| I["Google OR-Tools CP-SAT"]
F -->|"Metaheuristics"| J["Genetic Algorithm"]
G & H & I & J --> K["Tkinter Interactive GUI & Benchmark Analytics"]
K --> L["Final Packing Plan (2D Map & Utilization %)"]| Domain | Technologies |
|---|---|
| Software & AI | Python 3.9+, OpenCV, Google OR-Tools, NumPy, Pandas, Matplotlib, SciPy, Tkinter |
| Embedded & Firmware | ESP32, Arduino C++, FreeRTOS, Quadrature Encoder ISR, Hardware Timers |
| Electronics (EDA) | KiCad (Schematic capture, PCB layout, Gerber files) |
| CAD & Mechanical | Autodesk Fusion 360, 3D Printing (PLA/PETG) |
smart-packing-cv-system/
src/
vision/ # Computer vision pipeline and dimensioning
camera_detector.py # Camera capture and calibration
conveyor_vision_pipeline.py # Serial sync and real-time conveyor loop
measure_box.py # Contour sizing algorithms
medidor.py # Real-time measurement streamer
qr_reader.py # QR code payload decoder
optimization/ # 2D Bin packing optimization algorithms
maxrects.py # MaxRects BSSF/BL packing
skyline.py # Skyline heuristic packer
or_tools_optimizer.py # Constraint Programming via Google OR-Tools
genetic_optimizer.py # Evolutionary algorithm implementation
container.py # Container data structure & collision checks
package_generator.py # Synthetic package batch generator
gui/
master_dashboard.py # Operator GUI with interactive Matplotlib plots
benchmark/
statistical_tests.py # ANOVA / t-test benchmark script
firmware/
esp32_conveyor_pid/ # Main ESP32 PID conveyor firmware
esp32_conveyor_pid.ino
arduino_subsystems/ # Modular Arduino testing routines
control_motor_banda.ino# Clone the repository
git clone https://github.com/JuanIDK201/smart-packing-cv-system.git
cd smart-packing-cv-system
# Create and activate virtual environment
python -m venv venv
# On Windows:
venv\Scripts\activate
# On Linux/macOS:
source venv/bin/activate
# Install required dependencies
pip install -r requirements.txtfirmware/esp32_conveyor_pid/esp32_conveyor_pid.ino in the Arduino IDE or PlatformIO.ESP32 Dev Module).115200.# Launch the Master GUI Dashboard with algorithm comparison
python src/gui/master_dashboard.py
# Launch the live conveyor acquisition and sizing pipeline
python src/vision/conveyor_vision_pipeline.pyAcross test benchmarks with multiple box dimensions:
Juan Garzón
Mechatronics & Embedded Systems Engineer
This project is licensed under the MIT License - see the LICENSE file for details.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-2-5.08_1x02_P5.08mm_Horizontal | 10V1, 12VIN1, 12VOUT1 |
| 2 | Conn_01x03_Pin | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | Encoder1, Serial1 |
| 2 | R | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P15.24mm_Horizontal | R1, R2 |
| 2 | Screw_Terminal_01x03 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-3-5.08_1x03_P5.08mm_Horizontal | Laser1, PuenteH1 |
| 1 | 2N2219 | Package_TO_SOT_THT:TO-39-3 | Q1 |
| 1 | ESP32-C3_SUPERMINI_TH | ESP32-C3_SUPERMINI_TH:MODULE_ESP32-C3_SUPERMINI_TH | U1 |

google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards


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

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!


tardate/LittleArduinoProjects
a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

basilfx/TRADFRI-Hacking
Hacking IKEA TRÅDFRI products, such as light bulbs, window blinds and other accessories.
It measures 77 × 47.3 mm and has 2 copper layers, 1.6 mm thick.
11 parts. 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.
From the JuanIDK201/smart-packing-cv-system repository on GitHub, at the commit this page was made from: the board is hardware/kicad/Ver1/Ver1.kicad_pcb and its schematic hardware/kicad/Ver1/Ver1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).