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

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.
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.
Safety-critical firmware for Formula Student electric vehicle | STM32 NUCLEO-F303K8 · Embedded C · KiCad
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.
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.
| Component | Details |
|---|---|
| MCU | STM32 NUCLEO-F303K8 |
| Throttle Sensors | Opkon linear potentiometer |
| Brake Sensor | Analog pressure sensor (0–5V) |
| IDE | STM32CubeIDE |
| PCB Design | KiCad |
| Power | 3.3V regulated via NUCLEO onboard |
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)// 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);| Metric | Result |
|---|---|
| Safety interlock response time | < 10ms |
| APPS implausibility detection | < 1ms (per loop cycle) |
| Torque cut latency after 100ms fault | Compliant with FSAE T.4.2.5 |
| Dual-sensor deviation threshold | 10% |
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# 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-LINKRequirements:
This system is designed to meet the following FSAE/Formula Bharat EV rules:
Vedant Shri Agarwal — Firmware & PCB Design
Team Fateh Formula Racing · Thapar University
MIT License — see LICENSE for details.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 2.2k | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal | R1, R2, R5, R6, R7, R14 |
| 6 | 3.3k | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal | R3, R4, R8, R9, R10, R15 |
| 3 | ~ | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal | R13, R16, R17 |
| 2 | MountingHole | MountingHole:MountingHole_4.3mm_M4_DIN965 | H1, H6 |
| 2 | Q_NMOS_GDS | Package_TO_SOT_THT:TO-220F-3_Vertical | Q2, Q3 |
| 1 | Buzzer | Buzzer_Beeper:MagneticBuzzer_ProSignal_ABI-010-RC | BZ1 |
| 1 | INPUT | Connector_JST:JST_EH_B8B-EH-A_1x08_P2.50mm_Vertical | J2 |
| 1 | MountingHole | MountingHole:MountingHole_4.3mm_M4_ISO7380 | H5 |
| 1 | NUCLEO-F303K8 | apps:MODULE_NUCLEO-F303K8 | U1 |
| 1 | OUTPUT | Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical | J1 |

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

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


rusefi/rusefi
rusefi - GPL internal combustion engine control unit

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

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

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

It measures 66.5 × 71.5 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask Vedant0527 before reusing the design.