Skip to the content
2 layers79.5 × 66.5 mmCube pcb, the printed circuit board in 3D

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

2

README

README.md

BlackBox & Control Station - IFRI

Data Reliability, Flight Resilience.

License Arduino IDE Platform Challenge


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

text
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 FlightData structure.
  • 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
  1. Power both modules (BlackBox and Control Station) simultaneously or sequentially. The grounds (GND) of both modules must be interconnected.
  2. The Control Station will briefly display "Station OK" on the LCD screen, then enter data waiting mode.
  3. 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.

    Normal Operation

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_G in 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.

    Crash Detection

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.

  1. Connect the BlackBox to your computer via the USB-to-Serial adapter (or Arduino Uno USB cable).

  2. Open the Serial Monitor in the Arduino IDE (or a serial terminal of your choice), ensuring the baud rate is set to 9600.

  3. Send the exact command: READ_CRASH_DATA (followed by a carriage return; ensure "Newline" is selected in the serial monitor options).

  4. The BlackBox will respond by displaying the recorded data (Roll, Pitch, AccelZ) in CSV format, allowing for further analysis.

    Data Recovery


6. Detailed Documentation

For an in-depth exploration of the various aspects of this project, please consult the following documents:


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. Normal Operation
  • Crash Detection Demonstration:
    • Observe the Control Station display's transition to "!!! CRASH !!!" mode upon impact detection. Crash 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. Data Recovery

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
QtyValueFootprintReferences
2100nCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1, C2
222pCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC3, C4
24.7kResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR2, R3
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1ATmega328P-PPackage_DIP:DIP-28_W7.62mmU2
1Bus_I2C_CommunConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1Conn_AlimentationConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4
1CrystalCrystal:Crystal_HC49-U_VerticalY1
1MPU-6050Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ3
1Programmateur_ISPConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2

More from Glom-Companies/Test2_BlackBox

1
  • 2 layers91 × 67.5 mmStation pcb, the printed circuit board in 3D

    Station pcb

    Glom-Companies/Test2_BlackBox

    TRC_2025 Test 2 Electronique

    13 partsMIT

Similar boards

  • 2 layersBoite black, the printed circuit board in 3D

    Boite black

    TekBot-Robotics-Challenge/2025-Team-Innovators-Docs

    8 parts
  • 2 layers23 × 120 mmFeather multi oled, the printed circuit board in 3D

    Feather multi oled

    idlehandsdev/volumetric_display

    TENEX OLED Displays

    72 parts312CC-BY-SA-4.0
  • 4 layers95 × 50 mmControl board, the printed circuit board in 3D

    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 mmBluePhil, the printed circuit board in 3D

    BluePhil

    pms67/BluePhil

    STM32-based development board with various sensors.

    106 parts53MIT
  • 2 layers36 × 43 mmAsac fc rev a, the printed circuit board in 3D

    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 mmControlBoard, the printed circuit board in 3D

    ControlBoard

    paradise-fi/RoFI

    Distributed Metamorphic Robots

    224 parts42
  • 2 layers98.5 × 17.8 mmWeeSpindel, the printed circuit board in 3D

    WeeSpindel

    c-/weeSpindel

    Smaller, simpler version of the iSpindel. NOTE: Work-in-progress

    22 parts17

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