Skip to the content
2 layers66.5 × 71.5 mmApps, the printed circuit board in 3D

APPS-R2D (Accelerator Pedal Position Sensor – Ready to Drive) is a dual-redundant throttle safety system built for Team Fateh's Formula Student electric vehicle.

Size
66.5 × 71.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
39
Pads
83
Tracks, vias
156, 8
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
24 Mar 2026
Updated
24 Mar 2026

Overview

Apps is an open-source printed circuit board by Vedant0527, from the Vedant0527/APPS-R2D-Safety-System repository on GitHub. It is a 2-layer board of 66.5 × 71.5 mm with 24 parts on 39 nets, routed with 156 tracks and 8 vias.

Its parts include 15 resistors, 2 transistors, 2 connectors and 1 IC.

README

README.md

APPS-R2D — Accelerator Pedal Position Sensor Safety System

Safety-critical firmware for Formula Student electric vehicle | STM32 NUCLEO-F303K8 · Embedded C · KiCad


Overview

APPS-R2D (Accelerator Pedal Position Sensor – Ready to Drive) is a dual-redundant throttle safety system built for Team Fateh's Formula Student electric vehicle. It monitors two independent throttle position sensors and one brake pressure sensor in real time, detecting implausibility conditions and blocking unintended torque commands to prevent drive-by-wire hazards.

Designed and validated to comply with FSAE/Formula Bharat EV safety regulations.


The Problem

In a drive-by-wire electric vehicle, a single faulty sensor reading can command full throttle while the driver is braking — a potentially fatal condition. FSAE rules mandate that any implausibility between dual APPS sensors lasting more than 100ms must cut motor torque immediately.

This system solves that.


Key Features

  • Dual-redundant APPS sensing — Two independent throttle position sensors cross-checked in real time
  • Brake Plausibility Check (BPC) — Detects simultaneous brake + throttle input and cuts torque
  • <10ms interrupt response — Safety interlocks trigger within one control loop cycle
  • Implausibility detection — Flags >10% deviation between the two APPS sensors
  • Fault-safe design — System defaults to zero torque on any sensor fault or implausibility condition
  • KiCad schematic — Full dual-sensor circuit with voltage dividers and protection

Hardware

ComponentDetails
MCUSTM32 NUCLEO-F303K8
Throttle SensorsOpkon linear potentiometer
Brake SensorAnalog pressure sensor (0–5V)
IDESTM32CubeIDE
PCB DesignKiCad
Power3.3V regulated via NUCLEO onboard

System Architecture

text
TPS_1 (ADC CH1) ──┐
                   ├──► Implausibility Check ──► Motor Controller Output
TPS_2 (ADC CH2) ──┘          │
                              │ >10% deviation OR
BPS   (ADC CH3) ──────────────┘ brake + throttle simultaneously
                              │
                              ▼
                        TORQUE CUT (0 PWM)

Firmware Logic

c
// Core safety check — runs every control loop cycle (~1ms)
void apps(void){
	 diff = fabs(tps1 - tps2);
    tps1 = ((float)tps1_raw * 3.3f) / 4095.0f;
	       tps2=((float)tps2_raw*3.3f)/4095.0f;

           percent1=(tps1/3.3)*100;
           percent2=(tps2/2.5)*100;

	 diff=fabsf(percent1-percent2);

	  if ((tps1 == tps2) || diff>10 || tps1 ==0.0|| tps2 ==0.0) {
			if ((current_millis - previous_millis) >= 100) {
			if(r2d == GPIO_PIN_RESET || r2d==GPIO_PIN_SET){
			HAL_GPIO_WritePin(GPIOB,MC_ENABLE, GPIO_PIN_RESET);
			previous_millis = current_millis;
		//    		            		HAL_Delay(500);
			}
		}
			}
			else {
				if ((r2d == GPIO_PIN_SET)){
					HAL_GPIO_WritePin(GPIOB, MC_ENABLE, GPIO_PIN_SET);
					HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_3);

Performance

MetricResult
Safety interlock response time< 10ms
APPS implausibility detection< 1ms (per loop cycle)
Torque cut latency after 100ms faultCompliant with FSAE T.4.2.5
Dual-sensor deviation threshold10%

Project Structure

text
APPS-R2D/
├── Core/
│   ├── Src/
│   │   ├── main.c              # Entry point, peripheral init, Implausibility + BPC logic
│   │  
│   └── Inc/
│       ├── main.h
├── KiCad/
│   ├── APPS_R2D.kicad_sch      # Full circuit schematic
│   └── APPS_R2D.kicad_pcb      # PCB layout
├── Docs/
│   └── APPS_R2D_Validation.pdf # Test results + calibration log
└── README.md

Setup & Flashing

bash
# Clone the repo
git clone https://github.com/Vedant0527/APPS-R2D.git

# Open in STM32CubeIDE
# File → Import → Existing Projects into Workspace

# Build: Project → Build All (Ctrl+B)
# Flash: Run → Debug (F11) or use ST-LINK

Requirements:

  • STM32CubeIDE v1.13+
  • STM32 HAL drivers (auto-included via CubeIDE)
  • ST-LINK V2 programmer

Safety Compliance

This system is designed to meet the following FSAE/Formula Bharat EV rules:

  • T.4.2.5 — APPS Implausibility detection and torque cut
  • T.4.3.3 — Brake System Plausibility Device (BSPD) requirements
  • EV.4.6 — Torque encoder plausibility check

Team

Vedant Shri Agarwal — Firmware & PCB Design
Team Fateh Formula Racing · Thapar University


License

MIT License — see LICENSE for details.

Parts

24
QtyValueFootprintReferences
62.2kResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR1, R2, R5, R6, R7, R14
63.3kResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR3, R4, R8, R9, R10, R15
3~Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR13, R16, R17
2MountingHoleMountingHole:MountingHole_4.3mm_M4_DIN965H1, H6
2Q_NMOS_GDSPackage_TO_SOT_THT:TO-220F-3_VerticalQ2, Q3
1BuzzerBuzzer_Beeper:MagneticBuzzer_ProSignal_ABI-010-RCBZ1
1INPUTConnector_JST:JST_EH_B8B-EH-A_1x08_P2.50mm_VerticalJ2
1MountingHoleMountingHole:MountingHole_4.3mm_M4_ISO7380H5
1NUCLEO-F303K8apps:MODULE_NUCLEO-F303K8U1
1OUTPUTConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ1

Similar boards

  • 2 layers56 × 65 mmSeaTalk1, the printed circuit board in 3D

    SeaTalk1

    dotnet/iot

    This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.

    24 parts2.4kMIT
  • 2 layers26.2 × 45.5 mmPL18 multiprotocol, the printed circuit board in 3D

    PL18 multiprotocol

    pascallanger/DIY-Multiprotocol-TX-Module

    Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.

    24 parts1.9kGPL-3.0
  • 2 layers58 × 35.5 mmHat, the printed circuit board in 3D

    Hat

    menloresearch/asimov-1

    v1 of Asimov, an open-source humanoid robot

    24 parts1.4kCERN-OHL-S-2.0
  • 2 layers21.6 × 19.5 mmMicron Logo LED, the printed circuit board in 3D

    Micron Logo LED

    DraftShift/StealthChanger

    Tool changing system for Vorons and other front mount printer motion systems, not just stealthburner.

    24 parts1.2kGPL-3.0
  • 2 layers158 × 11 mmRainbow Matchstick, the printed circuit board in 3D

    Rainbow Matchstick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    24 parts1.1kGPL-3.0
  • 2 layers85.6 × 54 mmTRACED wio1262-carrier, the printed circuit board in 3D

    TRACED wio1262-carrier

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    24 parts915
  • 2 layers36 × 20 mmCombined, the printed circuit board in 3D

    Combined

    adamb314/ServoProject

    Getting the most out of your hobby servo

    24 parts545

Questions

How big is the Apps PCB?

It measures 66.5 × 71.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Apps use?

24 parts. 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 Apps KiCad files?

From the Vedant0527/APPS-R2D-Safety-System repository on GitHub, at the commit this page was made from: the board is apps/apps.kicad_pcb and its schematic apps/apps.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Apps design in my own project?

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