

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
2README
README.mdComeback 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.txtorplatformio.ini). - A way to interface with the serial monitor for debugging.
Installation
- Clone this repository:
bash https://github.com/lukokemba2/Comeback-CanSat.git - Open the project in your IDE.
- Install the required libraries listed in the
dependenciessection of the code. - Select the correct board and port in your IDE.
- Upload the code to your microcontroller.
💻 Usage
- Power On: Connect the battery/power source to the CanSat.
- Initialization: The system will initialize all sensors. Calibrate magnetometer. The GPS may take a few moments to acquire a fix.
- Flight: Deploy the CanSat. The system will begin logging data immediately.
- Control: The fuzzy logic controller will begin operating based on its programming, reading IMU and GPS data to adjust actuators.
- 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | R | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R1, R1, R2, R2, R3, R3, R4, R4, R5, R5, R6, R6, R7, R7, R8, R8 |
| 6 | C | Capacitor_THT:C_Radial_D6.3mm_H7.0mm_P2.50mm | C1, C1, C2, C2, C3, C3 |
| 4 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J3, J3, J4, J4 |
| 4 | LED | LED_THT:LED_D3.0mm | D1, D1, D2, D2 |
| 2 | 1 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | V1, V1 |
| 2 | Conn_01x01 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J1, J1 |
| 2 | Conn_01x04 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2, J2 |
| 2 | IRF540N | Package_TO_SOT_THT:TO-220-3_Vertical | Q1, Q1 |
| 2 | NE555P | Package_DIP:DIP-8_W7.62mm_Socket | U4, U4 |
| 2 | PC817 | Package_DIP:DIP-4_W7.62mm | U1, U1 |
| 2 | SW_Push | Button_Switch_THT:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W7.62mm_P2.54mm_LowProfile | SW1, SW1 |
| 2 | XL4015 MODULE | Custom footprints:XL4015 MODULE | A1, A1 |
More from lukokemba2/Comeback-CanSat
2- 2 layers205.2 × 15.6 mm

- 2 layers206 × 26 mm

Similar boards
- 2 layers72 × 33 mm

Positive Battery Charger Circuit
AbhishekGM23/PCB-Design
This repository contains various PCB design projects.
36 parts - 2 layers90.7 × 55.4 mm

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 mm

- 2 layers180 × 133.3 mm

- 2 layers96.8 × 97 mm

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 mm

- 2 layers55 × 90.8 mm

- 2 layers73.7 × 61 mm

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.