Stratospheric view of the HELIOS HASP UNI payload during high-altitude flight.
This repository contains the experimental and final implementation scripts for an on–off temperature control system developed for the payload flown in the HELIOS HASP 2024 project.
The system was designed and validated within the Control and Electronics area of the payload, with the primary objective of ensuring thermal stability during a high-altitude stratospheric balloon mission.
The HELIOS project was conceived to study the behavior and performance of perovskite solar cells under stratospheric environmental conditions. At altitudes above 30 km, electronic systems are exposed to extreme thermal gradients, low atmospheric pressure, and intense solar radiation. Under these conditions, temperature regulation becomes critical to preserve sensor accuracy, ensure repeatable measurements, and maintain the operational integrity of the onboard electronics throughout the mission.
The High Altitude Student Platform (HASP) is an educational and research program that enables undergraduate students to design, build, and fly experimental payloads at high altitudes for scientific and technological purposes using a zero-pressure balloon system capable of reaching approximately 36 km in altitude, with typical flight durations of 15 to 20 hours. HASP is operated with the support of the NASA Balloon Program Office and the Louisiana Space Grant Consortium, and is launched annually from the Columbia Scientific Balloon Facility (CSBF) in Fort Sumner, New Mexico. The program supports up to twelve student payloads per flight and provides standardized power, mechanical, and communication interfaces that simplify experiment integration and encourage hands-on student participation throughout all stages of project development. By engaging teams from universities in the United States and abroad in the design, launch, and data analysis of their experiments, HASP promotes practical training in engineering and science and supports the development of future careers in the aerospace field.
On–off control is one of the simplest and most robust control strategies for embedded systems implemented on microcontrollers. The control action is based on a binary decision: the actuator is fully activated when the measured variable is below a reference threshold and deactivated when it exceeds that threshold. Due to its simplicity, low computational cost, and high reliability, on–off control is widely used in thermal regulation applications where strict precision is not required but robustness is essential.
The implemented system is a closed-loop temperature control system. A reference temperature is defined, and the actual temperature is measured using a thermocouple interfaced through a MAX31865 signal conditioning sensor. The sensor is connected to an ESP32 microcontroller, which executes the control logic. Based on the temperature error relative to the reference, the ESP32 activates or deactivates a set of heating pads that act as thermal actuators. These heating elements are driven through a power driver stage, allowing the system to maintain the payload temperature within an acceptable operating range during laboratory testing and simulated flight conditions.
- Initial laboratory tests were conducted using a fuzzy logic temperature control strategy. A reference temperature of 45 °C was established, and stable temperature regulation was achieved. However, the settling time of the fuzzy controller was excessively long for the intended application.
- As a result, an on–off control strategy was adopted. A new reference temperature of 25 °C was selected, and the on–off controller demonstrated improved performance, achieving faster settling times and more efficient temperature regulation under laboratory conditions. These results justified the selection of the on–off control approach for the final payload implementation.
code/: final firmware and experimental scripts written in C for STM32 microcontroller coresdatasheets/: datasheets for sensors, microcontrollers, and communication modulesdocumentation/: technical documentation describing sensor operation, hardware configuration, and firmware usageleagcy/: early experimental scripts and preliminary development versionslibraries/: fuzzy control and sensor interface libraries used during developmentpapers/: reference articles and technical papers reviewed during the projectpinout/: verified pinout diagrams for the employed STM32 NUCLEO boardsresults/: experimental results obtained from temperature control tests and data acquisition
- STM32 NUCLEO-F446RE
- STM32 NUCLEO-L432KC
- Heating pads
- L298N driver module
- Arduino development boards
- ESP32 development board
- Adafruit MAX31865 with thermocouple
- Laboratory power supply (12 V, 3 A)
- Digital multimeter
-
IDEs:
- STM32CubeIDE
- Arduino IDE
-
Programming Languages:
- C
- C++
-
Libraries:
- MAX31865 sensor library
- StratoCat – High-Altitude Balloon Flight Database
Public database providing detailed documentation, imagery, and metadata of scientific high-altitude balloon missions, including the HASP 2024 flight. Image used in this repository was sourced from the corresponding mission page.
https://stratocat.com.ar/fichas-e/2024/FSU-20240904.htm
David Fernando Evangelista Cuti
National University of Engineering (UNI), Peru
