[WIP] Pedals Board

[WIP] Pedals Board

Hardware Github link: https://github.com/lhr-solar/Controls-PedalBoard/tree/Controls-PedalBoard-2026

Software Github link:

Clickup link: https://app.clickup.com/t/868e8jru4

Description

This board handles pedals inputs, robustly detects connection failures, reads brake line pressure, and relays data to other boards.

Requirements

  • Hardware

    • Step down & supply power to

      • 1x Accelerator pedal

      • 1x Brake pedal

      • 3x Brakeline sensors

    • Read position of accelerator pedal (potentiometer)

    • Read if brake pedal is pressed (potentiometer)

    • Sense if pedals are disconnected

    • Pull down pedals pins

    • 5 ADC connections, 1 CAN connection

  • Software

    • Publish pedal displacement information on Car CAN (for VCU and telem)

    • Publish brakeline sensor readings on Car CAN (for VCU and telem)

    • Detect 0V and inconsistencies in brake pedal/brakeline and throw error

 

RevB Testing Plan

- Priority:

glaze my glorious LeGoat on this board
there’s LEDs on the front that need soldering
solder conns on board
create female testing conns for pedals

- Hardware testing: (THIS IS THE MOST IMPORTANT)

test both the adjustable LDOs with the big test points
test dual voltage buffers - I finally have both the potentiometer AND a wokring board to test this. please please i need pedals tonight to test this - i’ll buy you taco bell
calculate the divider ratio created by the potentiometer, and double check if the voltage buffer outputs the right voltage depending on this ratio
there’s four ADC signals, four voltage buffers so imma have some fun testing this
test the brake pressure signal buffers with potentiometer (just to see if the buffers serve their purpose
test the brake pressure sensor on workday with the set up I’m about to steal from electric
dm alice in the general lhr channel? link to electric discord? ravi shah asks for me?

- Software testing

setting up software folders and PR tonight - but mostly focusing on hardware first because I wasn’t able to do that on RevA
need to familiarize with ADC signal processing
work on software design to checkoff with Akshay
psom blinky with the status leds
create ADC IO driver
create CAN driver