

Cube pcb
TRC_2025 Test 2 Electronique
- Size
- 79.5 × 66.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 13
- Nets
- 30
- Pads
- 64
- Tracks, vias
- 117, 2
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 18 Jun 2025
- Updated
- 19 Jun 2025
Overview
Cube pcb is an open-source printed circuit board by Glom-Companies, from the Glom-Companies/Test2_BlackBox repository on GitHub, published under the MIT licence. It is a 2-layer board of 79.5 × 66.5 mm with 13 parts on 30 nets, routed with 117 tracks and 2 vias.
It is built around the ATMEGA328P-PU and MPU-6050. Its parts include 4 capacitors, 4 connectors, 3 resistors, 1 IC and 1 crystal. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
2ATMEGA328P-PU
DIP-28-300mil-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH DIP-28-300mil Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)MPU-6050
QFN-24-EP(4x4)-40℃~+85℃ 16bit 1KB 2.375V~3.46V 5uA Accelerometer Gyroscope I2C X,Y,Z X,Y,Z ±16g ±2000dps QFN-24-EP(4x4) Accelerometers ROHSTDK InvenSenseAccelerometers
README
README.mdBlackBox & Control Station - IFRI
Data Reliability, Flight Resilience.
1. Project Introduction
This project, developed as part of the Electronic Test 2 for the Tekbot Robotics Challenge 2K25 - RESILIENCE, presents an innovative embedded system comprised of a BlackBox and a Control Station. The primary objective is to demonstrate expertise in embedded electronics, inter-system communication via I2C, and critical data management. The system is designed to record essential flight parameters of a "vehicle" (here simulated by an MPU-6050) and detect crash situations, while offering a ground-based monitoring and data retrieval interface. This project underscores our commitment to data reliability and flight system resilience.
2. Repository Structure
Test2_BlackBox
├── documentation/
│ ├── hardware.md
│ ├── software_firmware.md
│ ├── assembly_configuration.md
│ ├── results_demonstration.md
│ ├── possible_improvements.md
│ └── troubleshooting.md
├── doc/
│ ├── images/
│ │ └── ... (image files)
│ └── trc2k25_infos/
│ └── 8bce113404fdd225ce17eafe8fa12a15.pdf
├── docs/ (for GitHub Pages, if enabled)
│ ├── images/
│ │ └── ... (image files)
│ ├── index.html
│ ├── script.js
│ └── style.css
├── firmware/
│ ├── cube_firmware/
│ │ └── cube_firmware.ino
│ ├── downloaded_libraries/
│ │ └── ... (libraries)3. Key Features
This modular system offers the following capabilities:
- Flight Data Recording: Real-time acquisition of acceleration (Z-axis) and orientation (Roll, Pitch) data via the MPU-6050 sensor on the BlackBox.
- Intelligent Crash Detection: Onboard algorithm on the BlackBox to detect a significant impact and freeze the last essential data.
- Non-Volatile Storage: Saving critical data (crash status, last flight values) in the BlackBox's EEPROM memory, ensuring persistence even after power loss.
- Bidirectional I2C Communication: Real-time transmission of flight data from the BlackBox (Master) to the Control Station (Slave).
- Real-time Display: Clear presentation of flight data on a dedicated LCD screen on the Control Station.
- Visual Crash Indication: Display of a distinct alert message on the Control Station's screen upon impact detection.
- Data Recovery Interface: Ability to read recorded post-crash data from the BlackBox via a serial interface.
4. System Architecture
The system is designed around two main modules, actively communicating to ensure monitoring and data retrieval:
The BlackBox (Flight Recorder Unit)
- Role: Autonomous unit responsible for flight data collection, crash detection, and storage.
- Key Components:
- ATmega328P Microcontroller.
- MPU-6050 sensor (accelerometer and gyroscope).
- EEPROM memory integrated into the microcontroller for non-volatile storage.
- Operation: Continuously reads data from the MPU-6050, calculates angles and vertical acceleration. An algorithm checks for crash conditions. In case of a crash, the last significant data is frozen and saved. It acts as an I2C master to send data to the Control Station.
The Control Station (Ground Monitoring Station)
- Role: Ground interface for real-time visualization and monitoring of system status.
- Key Components:
- ATmega328P Microcontroller.
- I2C LCD screen (16x2).
- Operation: Receives flight data from the BlackBox via I2C (as a slave). Dynamically displays flight parameters and switches to a "CRASH DETECTED" display in case of an incident reported by the BlackBox.
Inter-Module Communication (I2C)
Communication between the BlackBox and the Control Station is established via the I2C (Inter-Integrated Circuit) protocol.
- BlackBox (Master): Initiates data transfers and periodically sends the
FlightDatastructure. - Control Station (Slave): Passively listens on the I2C bus and receives data packets, updating its display accordingly. This architecture ensures efficient communication with a minimum of wires, ideal for embedded systems.
5. Operation and Usage
Once assembled and the firmwares uploaded to each module, your "BlackBox & Control Station" system is ready for operation.
1. System Startup
- Power both modules (BlackBox and Control Station) simultaneously or sequentially. The grounds (GND) of both modules must be interconnected.
- The Control Station will briefly display "Station OK" on the LCD screen, then enter data waiting mode.
- The BlackBox will initialize the MPU-6050 and begin acquiring data. If a crash was previously detected and recorded, the BlackBox will automatically reset the crash status in the EEPROM, preparing the system for a new flight. Startup messages are visible on the serial monitor if connected.
2. Normal Operation Mode
In normal operation mode, the BlackBox continuously acquires orientation and acceleration data from the MPU-6050 and sends it to the Control Station.
-
Control Station Display: The LCD screen of the Control Station will display real-time Roll (R:), Pitch (P:), and Z-axis Acceleration (AccelZ:) angles measured by the BlackBox. These values should change according to the BlackBox's movements.

3. Crash Detection
The system is designed to detect a significant impact, simulating a crash, based on the MPU-6050's acceleration data.
-
Trigger: When the total acceleration exceeds a predefined threshold (
CRASH_THRESHOLD_Gin the BlackBox firmware, currently 8G), the BlackBox detects a crash. -
BlackBox Behavior:
- The crash flag is activated.
- The last relevant flight data is frozen and permanently stored in the EEPROM memory.
- The BlackBox stops recording new flight data and enters a recovery mode, awaiting potential commands via the serial port.
-
Control Station Behavior:
- As soon as it receives the crash status from the BlackBox, the LCD screen switches to display a clear alert message: "!!! CRASH !!!" on the first line and "DATA FROZEN" on the second.

4. Post-Crash Data Recovery
After a crash, crucial data is stored in the BlackBox's EEPROM. It can be recovered via a serial connection.
-
Connect the BlackBox to your computer via the USB-to-Serial adapter (or Arduino Uno USB cable).
-
Open the Serial Monitor in the Arduino IDE (or a serial terminal of your choice), ensuring the baud rate is set to
9600. -
Send the exact command:
READ_CRASH_DATA(followed by a carriage return; ensure "Newline" is selected in the serial monitor options). -
The BlackBox will respond by displaying the recorded data (Roll, Pitch, AccelZ) in CSV format, allowing for further analysis.

6. Detailed Documentation
For an in-depth exploration of the various aspects of this project, please consult the following documents:
- Hardware Used: documentation/hardware.md
- Software (Firmware): documentation/software_firmware.md
- Assembly and Configuration Guide: documentation/assembly_configuration.md
- Full Results and Demonstration: documentation/results_demonstration.md
- Possible Improvements: documentation/possible_improvements.md
- Troubleshooting (FAQ): documentation/troubleshooting.md
7. Full System Demonstration
The most compelling elements are the visuals of the system in action. The images and videos below illustrate the behavior of the "BlackBox & Control Station" in its various states.
- Normal Mode Demonstration:
- Visualize the dynamic display of roll, pitch, and Z-axis acceleration data on the Control Station screen based on the BlackBox's movements.

- Visualize the dynamic display of roll, pitch, and Z-axis acceleration data on the Control Station screen based on the BlackBox's movements.
- Crash Detection Demonstration:
- Observe the Control Station display's transition to "!!! CRASH !!!" mode upon impact detection.

- Observe the Control Station display's transition to "!!! CRASH !!!" mode upon impact detection.
- Post-Crash Data Recovery Demonstration:
- Illustration of the connection procedure and command sending to retrieve essential data stored in the EEPROM via the serial monitor.

- Illustration of the connection procedure and command sending to retrieve essential data stored in the EEPROM via the serial monitor.
Note: For a complete and interactive demonstration, please refer to the project's presentation video (link below).
[YouTube / Vimeo Demo Video Link]
8. Difficultés Rencontrées
Ce projet, bien que mené à bien, n'a pas été sans embûches. Plusieurs défis ont dû être surmontés :
- Contraintes de Temps : La période de développement a été particulièrement intense, avec des compositions (examens) pour la plupart des membres de l'équipe. Les délais initiaux ont été difficiles à respecter.
- Prise en Main du Logiciel : L'apprentissage des outils de conception, notamment KiCad, a nécessité un temps considérable, impactant l'avancement global.
- Incompatibilité des Caractéristiques PCB : Les spécifications des PCBs conçus sur logiciel se sont révélées incompatibles avec les capacités de la machine d'impression disponible, nécessitant des ajustements et des compromis.
- Insuffisance des Fonds : Le budget alloué au projet s'est avéré insuffisant pour l'acquisition de tous les composants nécessaires, limitant certaines fonctionnalités ou nécessitant des solutions alternatives.
- Disponibilité des Composants : Certains composants essentiels n'étaient pas disponibles dans les points de vente locaux, entraînant des retards et des modifications dans la conception.
9. Conclusion
The "BlackBox & Control Station - IFRI" system represents a complete and robust solution for critical data acquisition, monitoring, and recovery in an embedded environment. Developed rigorously for the Tekbot Robotics Challenge 2K25 - RESILIENCE, it demonstrates our expertise in electronics, embedded programming, and inter-system communication. We hope this project will serve as a solid foundation for future explorations and innovations in the field of robotics and embedded systems.
10. License
This project is distributed under the MIT License. The terms of this license permit the use, modification, and distribution of the code.
For more details, consult the LICENSE file at the root of this repository.
Parts
13| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 100n | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C1, C2 |
| 2 | 22p | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C3, C4 |
| 2 | 4.7k | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal | R2, R3 |
| 1 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
| 1 | ATmega328P-P | Package_DIP:DIP-28_W7.62mm | U2 |
| 1 | Bus_I2C_Commun | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | Conn_Alimentation | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4 |
| 1 | Crystal | Crystal:Crystal_HC49-U_Vertical | Y1 |
| 1 | MPU-6050 | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J3 |
| 1 | Programmateur_ISP | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J2 |
More from Glom-Companies/Test2_BlackBox
1- 2 layers91 × 67.5 mm

Similar boards
- 2 layers86.8 × 57.5 mm

- 2 layers

- 2 layers23 × 120 mm

- 4 layers95 × 50 mm

Control board
ZhuYanzhen1/MM32_CLion
本项目是全国大学生智能车竞赛GDUT 2022年极速越野组的项目文件。采用了LQR控制器和多速率卡尔曼融合算法,并在单片机上实现。This project is the project document for the GDUT 2022 Extreme Off-Road Category of the National Student Intelligent Vehicle Competition.
129 parts58AGPL-3.0 - 2 layers50 × 66 mm

- 2 layers36 × 43 mm

Asac fc rev a
victorhook/asac-fc
asac fc is an rp2040 based flight controller made for FPV drone flying
119 parts52GPL-3.0 - 4 layers305 × 208.3 mm

- 2 layers98.5 × 17.8 mm

Questions
How big is the Cube pcb PCB?
It measures 79.5 × 66.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Cube pcb use?
13 parts, built around the ATMEGA328P-PU and MPU-6050. 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 Cube pcb KiCad files?
From the Glom-Companies/Test2_BlackBox repository on GitHub, at the commit this page was made from: the board is hardware/IFRI_Test2_PCBs/cube_pcb/cube_pcb/cube_pcb.kicad_pcb and its schematic hardware/IFRI_Test2_PCBs/cube_pcb/cube_pcb/cube_pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Cube pcb design in my own project?
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).