Embedded · TEKNOFEST Hyperloop
TEKNOFEST Hyperloop: telemetry and control software
For two seasons I wrote the software of a Hyperloop pod: the code that reads the sensors, drives the motor and brakes, and streams everything live to the control panel. The pod reached the TEKNOFEST final two years running.
İbrahim Taşkıran2025 – 20261 min readData flow
Sensors
An IMU, a current and voltage sensor, a temperature sensor, an encoder and an IR stripe sensor measure the pod's state.
Reading on STM32
I read the sensors in C with HAL over two separate I2C buses, a hardware timer in encoder mode and UART.
Control on the same board
The same STM32 uses that data to drive the motor and brakes and to handle commands from the station.
Ethernet/UDP
Data flows to the station over UDP on Ethernet, and commands come back on the same link.
Control panel
The Python panel I wrote shows speed, position, temperature and power live, and runs levitation, brakes and emergency stop.
Sensors
Acceleration and orientation
IMU (BNO055)
I read acceleration, braking and orientation over I2C and carried them to the panel.
Power draw
Akım ve gerilim (INA226)
I measured current and voltage on the motor and battery line and computed instant power; the BMS checks relied on it too.
Motor and battery temperature
Temassız sıcaklık (MLX90614)
I measured hot spots without contact and streamed them live to the panel.
Speed and distance
Encoder
I counted pulses with a hardware timer in encoder mode, without loading the CPU, and derived speed and distance.
Position in the tube
IR şerit sensörü
Using stripe markers on the track, I added a second position source independent of the encoder.
Choosing the board
The first decision on the Hyperloop team at Kocaeli University was the main board. We evaluated FPGA boards and tried them with logic-gate designs, then settled on STM32.
Rather than wait for boards, I validated sensor integration and vehicle control on an ESP32 first and then ported it to STM32. The 2025 pod ran on an STM32F756 (Cortex-M7); in 2026 I ported the firmware to the STM32H7 family. A Raspberry Pi served as an auxiliary board.
Telemetry
Five sensors produce data at different rates and in different formats. My job was to read them on the STM32 in C with HAL, turn them into one orderly stream and send it to the station over UDP on Ethernet.
UDP was the right fit for live data: what matters is the latest value, not waiting for an old packet that got lost. In 2026 we split the telemetry and command handler into modules and improved current calibration and ADC error handling.
Control panel
I wrote the station panel in Python. Levitation, brakes and emergency stop run from it, and speed, acceleration, position, temperature and power draw update live. I built the first panel for the 2025 pod and a new one for the 2026 pod.
On a screen like this, looks come second: at the tensest moment the right button has to be in place and the right number in plain sight.
Software process
In the 2026 season I led the three-person software unit: task assignment, code review and an on-board test plan. We split the code into modules so everyone could work at once without breaking each other's work.
I set up a CI pipeline on GitHub Actions for the STM32CubeIDE project, so code that doesn't build never reaches the board. For task tracking I wrote a real-time kanban board synced with our GitHub commits. That board later became the open-source ClanBoard.
At the bench
I did through-hole soldering, wiring and assembly on the sensor boards and the main board, spot-welded battery cells and ran the BMS checks.
I tested boards with an oscilloscope, a multimeter and a signal generator. When a reading came in wrong, I measured the signal first: cable, board or code?
TEKNOFEST 2025
Hyperloop Development Competition, TÜBİTAK Gebze Campus





TEKNOFEST 2026
Board assembly and tests in the competition area



Finals
TEKNOFEST Hyperloop 2025 final
The final, held with TÜBİTAK RUTE, ran on 26–31 August at the TÜBİTAK Gebze Campus. We were there with AXAR, whose sensor, motor, brake and telemetry firmware I wrote on the STM32F756.
TEKNOFEST Hyperloop 2026 final
In the season I led the software unit, we were back in the final with ARION on 1–6 September at TÜBİTAK Gebze. We mounted the boards on the chassis and tested them with the software on site.
European Hyperloop Week 2025 finalist
The same season the team was also a finalist at European Hyperloop Week. I didn't travel to the event, but the pod's software came from my desk.