Skip to content
Landry Tchouela
FR
All projects
Capstone design project · Team 29In progress

Performia

A sled training machine that measures the athlete’s force and adjusts resistance in real time.

Role
Team lead and software subsystem owner
Team
7 people
Stack
ESP32, FreeRTOS, Manchester, CRC16, ARQ, HX711, Nextion
ESP32 · PHY_TX → PHY_RXReceived intact
Frame
14 bytes
CRC-16
0x4774
Coding
Manchester
useful throughput (calculated)
~18kbit/s
protocol phases
5
tasks on 2 cores
5
team members
7

Try it

Send a message through the data link.

Type a word: it becomes a real frame, Manchester-encoded and protected by a CRC-16. “Disturb the line” flips one bit; the CRC catches it and the frame is sent again. The format is simplified; the principle is the one I programmed on ESP32.

01The problem

The machine has to measure the athlete’s force and adjust resistance in real time, while several subsystems exchange data without losing any.

02Architecture

  1. 01Force sensorsHX711
  2. 02ESP32FreeRTOS, 5 tasks on 2 cores
  3. 03Data linkManchester, CRC16, ARQ
  4. 04TouchscreenNextion, UART

03Decisions

  1. 1Offload graphics rendering to the Nextion screen so the ESP32, already running the sensors and control loop, is not overloaded.
  2. 2Five-phase protocol: initialization, continuous flow, fault detection, retransmission and closure.
  3. 3RMT-based replacement code for the PHY_TX and PHY_RX tasks.

04Challenges solved

  1. Watchdog crash: bit-banging was starving Core 0.
  2. Phase misalignment in PHY_RX caused by interrupt latency.
  3. Wrong preamble: eight zero bits instead of the alternating 0x55 pattern.

05Where it stands

Calculated useful throughput of about 18 kbit/s. The project is still in progress.