Skip to the content
2 layers199.6 × 8.6 mmPowerB, the printed circuit board in 3D

Electrical CAD and firmware

Size
199.6 × 8.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
46
Nets
15
Pads
116
Tracks, vias
258, 0
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
9 Mar 2026
Updated
19 Mar 2026

Overview

PowerB is an open-source printed circuit board by lukokemba2, from the lukokemba2/Comeback-CanSat repository on GitHub. It is a 2-layer board of 199.6 × 8.6 mm with 46 parts on 15 nets, routed with 258 tracks and 0 vias.

It is built around the NE555P and IRF540N. Its parts include 16 resistors, 8 connectors, 6 capacitors, 4 ICs and 4 diodes.

Main components

2

README

README.md

Comeback Cansat - Atmospheric Sounding & Fuzzy Logic Control

📡 Project Overview

This repository contains the firmware and design documentation for a "Comeback" CanSat. The primary mission of this CanSat is to perform atmospheric sounding by collecting pressure, temperature, and humidity data during its descent. Its unique feature is the ability to control its descent or landing point using a main controller that runs a fuzzy logic control system, relying on data from its onboard 10-axis IMU and GPS.

✨ Features

  • Atmospheric Sounding: Measures and logs pressure, temperature, and humidity.
  • Precise Positioning: GPS module for location tracking and recovery.
  • Orientation & Movement Sensing: 10-axis IMU (accelerometer, gyroscope, magnetometer) for full attitude and motion determination.
  • Intelligent Control: A main controller utilizing a fuzzy logic algorithm to process sensor data and make smooth, intelligent decisions (e.g., for actuator control).
  • Data publishing: Records all sensor and GPS are sent back to the ground station.

🛠 Hardware Components

  • Microcontroller: Main controller board (e.g., ESP32 and Pi Zero 2W).
  • Telemetry: LoRa transceiver.
  • Sensor Board: Atmospheric sensor for Pressure, Temperature, and Humidity (e.g., BME280).
  • GPS Module: For location tracking (e.g., NEO-6M, NEO-9M).
  • IMU: 10-axis Inertial Measurement Unit (e.g., GY-87).
  • Actuators: (Implied by control system) - e.g., servos for parafoil control, motor for descent modulation.

🚀 Getting Started

Prerequisites

  • Arduino IDE / PlatformIO / or your preferred embedded development environment.
  • Necessary libraries for the sensors (see libraries.txt or platformio.ini).
  • A way to interface with the serial monitor for debugging.

Installation

  1. Clone this repository:
    bash
    https://github.com/lukokemba2/Comeback-CanSat.git
  2. Open the project in your IDE.
  3. Install the required libraries listed in the dependencies section of the code.
  4. Select the correct board and port in your IDE.
  5. Upload the code to your microcontroller.

💻 Usage

  1. Power On: Connect the battery/power source to the CanSat.
  2. Initialization: The system will initialize all sensors. Calibrate magnetometer. The GPS may take a few moments to acquire a fix.
  3. Flight: Deploy the CanSat. The system will begin logging data immediately.
  4. Control: The fuzzy logic controller will begin operating based on its programming, reading IMU and GPS data to adjust actuators.
  5. Data Retrieval: Onboard telemetry transmits data back to the ground station wirelessly.

⚙️ How the Fuzzy Logic Controller Works

The core intelligence of the comeback feature is based on fuzzy logic. Instead of rigid "if-then-else" statements, the controller uses fuzzy sets and rules to handle uncertainty and make smooth control decisions.

  • Inputs: The controller takes crisp inputs from the sensors (e.g., "distance to target" from GPS, "angle error" from IMU).
  • Fuzzification: These crisp values are converted into fuzzy values like "Close", "Medium", "Far" or "Small Error", "Large Error".
  • Inference: A set of rules (e.g., "IF distance is Far AND angle error is Large, THEN deploy control surface a LOT") is applied.
  • Defuzzification: The fuzzy conclusion is converted back into a crisp command signal for the actuators (e.g., "set servo to 45 degrees").

This approach allows for smooth and adaptive control, which is ideal for the unpredictable environment of a descending CanSat.

📊 Data Output

Typical data fields include:

  • Timestamp
  • Pressure (hPa)
  • Temperature (°C)
  • Humidity (%)
  • GPS Latitude, Longitude, Altitude
  • IMU: Acceleration (X, Y, Z), Gyroscope (X, Y, Z), Magnetometer (X, Y, Z)
  • Calculated Orientation (Pitch, Roll, Yaw)
  • Fuzzy Controller Output (e.g., Servo Angle)

📝 License

Null

🤝 Contributing

Contributions, issues, and feature requests are welcome.

Parts

46
QtyValueFootprintReferences
16RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R1, R2, R2, R3, R3, R4, R4, R5, R5, R6, R6, R7, R7, R8, R8
6CCapacitor_THT:C_Radial_D6.3mm_H7.0mm_P2.50mmC1, C1, C2, C2, C3, C3
4Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3, J3, J4, J4
4LEDLED_THT:LED_D3.0mmD1, D1, D2, D2
21Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalV1, V1
2Conn_01x01Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ1, J1
2Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2, J2
2IRF540NPackage_TO_SOT_THT:TO-220-3_VerticalQ1, Q1
2NE555PPackage_DIP:DIP-8_W7.62mm_SocketU4, U4
2PC817Package_DIP:DIP-4_W7.62mmU1, U1
2SW_PushButton_Switch_THT:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W7.62mm_P2.54mm_LowProfileSW1, SW1
2XL4015 MODULECustom footprints:XL4015 MODULEA1, A1

More from lukokemba2/Comeback-CanSat

2
  • 2 layers205.2 × 15.6 mmTelem, the printed circuit board in 3D

    Telem

    lukokemba2/Comeback-CanSat

    Electrical CAD and firmware

    22 parts2
  • 2 layers206 × 26 mmSensors, the printed circuit board in 3D

    Sensors

    lukokemba2/Comeback-CanSat

    Electrical CAD and firmware

    18 parts2

Similar boards

  • 2 layers90.7 × 55.4 mmH bridge V3, the printed circuit board in 3D

    H bridge V3

    ambadran/Revolute_Joint

    Optimal Cheap Robotic Actuator allowing high Torque and moderate Speed. Allow PRECISE Absolute, Speed and Torque Control. Using 3D-printed Cycloidal Drive, Custom PCB and LQR Control Algorithm.

    57 parts
  • 2 layers93.2 × 66.3 mmPWM, the printed circuit board in 3D

    PWM

    Davedelali/PWM-PCB-design-

    This is the full PCB for a PWM DC motor driver

    17 parts
  • 2 layers180 × 133.3 mmClassd amp, the printed circuit board in 3D

    Classd amp

    prydin/classd-amp

    Class D Amplifier (work in progress)

    176 parts
  • 2 layers96.8 × 97 mmPsoc5power, the printed circuit board in 3D

    Psoc5power

    profdc9/DRSSTC-PCB-Pack

    A pack of PCBs for a dual resonant solid state tesla coil setup. Pretty much everything you need.

    133 parts59
  • 2 layers124.5 × 77.5 mmAutopatzer, the printed circuit board in 3D

    Autopatzer

    jes/autopatzer

    Automatic chess board

    40 parts30
  • 2 layers55 × 90.8 mmSlider, the printed circuit board in 3D

    Slider

    DusterTheFirst/rocketry

    🚀 Thrust Vector Controlled Model Rockets

    33 parts22GPL-3.0

Questions

How big is the PowerB PCB?

It measures 199.6 × 8.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PowerB use?

46 parts, built around the NE555P and IRF540N. 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 PowerB KiCad files?

From the lukokemba2/Comeback-CanSat repository on GitHub, at the commit this page was made from: the board is Electrical Design CAD/Electrical Design/CanSAT/powerB/powerB.kicad_pcb and its schematic Electrical Design CAD/Electrical Design/CanSAT/powerB/powerB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PowerB design in my own project?

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