Comparator 1
Has the brake signal crossed its required threshold?
Turns an analog brake condition into a clear decision edge for the logic stage.
A Penn Electric Racing recruiting circuit, not a part on the car.
Fall 2026

Independent engineering work for Penn Electric Racing's recruitment process. The circuit watches brake and current sensor conditions, decides when those conditions are satisfied together, and activates an indicator within a required response window. Power comes from an automotive-style 12 V domain that must be regulated for the sensing and logic stages.

12 V supply → regulation → sensor/reference network → comparators → logic → timing → indicator.
| Decision | Alternative | Why |
|---|---|---|
| Treat the buck as a system, not a voltage label | Pick the first 5 V regulator that fits the pinout | Score candidates on system metrics first. |
| Response time is a max, not a delay aesthetic | Treat 0.5 s as a minimum delay | Re-check simulation against the requirement text, then revise the timing interpretation. |

I first read 0.5 s as a minimum delay. The requirement is a maximum response time. There is no pass or fail number on this page for that timing.
Transient simulation captured. CircuitLab transient analysis is on the page as primary verification evidence for response behavior. Measured response time. I have not written down a measured response time from the simulation readout. Requirement check. I have not marked the revised timing pass or fail against the written window.
Still open. Datasheet comparison cells are filled from my Task C write-up; re-check against the latest datasheet revision when needed.
Motivation
What pulled me in, and what I wanted to get better at.
Why I built it
Penn Electric Racing's recruiting problem asked for a circuit that watches two sensors, decides when both conditions are true, and lights an indicator inside a written time window. The supply is an automotive-style 12 V rail.
What interested me
The interesting part was not drawing a schematic. It was deciding how threshold detection, logic, timing, and a 5 V rail from a noisy ~12 V vehicle supply should fit together without inventing convenience that the environment will punish.
What I wanted to learn
I wanted a harder look at buck-converter selection: efficiency, headroom, ripple, EMI, and board area as a system, not as a single 'outputs 5 V' checkbox.
System Overview
Independent engineering work for Penn Electric Racing's recruitment process. The circuit watches brake and current sensor conditions, decides when those conditions are satisfied together, and activates an indicator within a required response window. Power comes from an automotive-style 12 V domain that must be regulated for the sensing and logic stages.
Power regulation
Steps the vehicle supply into a clean enough low-voltage rail for references, comparators, and logic.
Sensor inputs
Bring brake and current sensing into the threshold stage with usable reference levels.
Threshold detection
Comparators answer whether each sensor has crossed its required level.
Logic + timing
Combine conditions and shape the response so the indicator meets the timing requirement.
Indicator
Make the decision visible without loading the decision node incorrectly.
Data flow
12 V supply → regulation → sensor/reference network → comparators → logic → timing → indicator.
Control flow
Analog thresholds become digital decisions; the timing network enforces response behavior before the LED stage.
Design Challenge Deep Dive
Independent engineering work completed as part of Penn Electric Racing's recruitment process. Not hardware designed for or used on the PER car.
Signal / power path
Each stage answers one question. If a block cannot justify itself, it should not be on the board.
Comparator 1
Has the brake signal crossed its required threshold?
Turns an analog brake condition into a clear decision edge for the logic stage.
Comparator 2
Has the current signal crossed its required threshold?
Same idea for current sensing so both conditions share a comparable decision language.
Logic
Are the required conditions simultaneously true?
Prevents an indicator trip on a single sensor event when concurrency is required.
Timing
Does the circuit satisfy the required response behavior?
Shapes how quickly the decision becomes a visible indicator event.
Power regulation
Is the low-voltage rail honest under automotive supply and load?
Keeps references and logic alive without dumping switching pain into the sensing path.
Indicator
Can a human see the decision without loading the circuit badly?
Closes the loop from requirement to observable behavior.
Process notes

Paper planning before the CircuitLab schematic.

Divider vs linear vs buck, ON/OFF paths, and duty-cycle knobs.
Schematic

12 V → 7805 rail, brake/current comparator windows, logic aggregation, RC timing, latch, and LED indicator.
Datasheet comparison
These cells are blank on purpose. I have not copied a number from the datasheet into this table.
| Metric | LM5164 | LMR33630 | Why it matters |
|---|---|---|---|
| Efficiency | High (no matched 12–17→5 V / 0.5 A curve in sheet) | 5 V curves published; >95% peak claimed | Less energy wasted as heat in a packed enclosure. |
| MOSFET R_DS(on) | HS 725 mΩ · LS 330 mΩ | HS 75 mΩ · LS 50 mΩ (VQFN) | Lower switch resistance reduces conduction loss as load current rises (P = I²R). |
| Output-current capability / headroom | 1 A class part (challenge shortlist) | 3 A class part (challenge shortlist) | Provides margin when MCU, sensors, or CAN circuitry create transient loads. |
| Transient response | External L/C dominated | External L/C dominated | Determines how well the 5 V rail stays regulated when load current suddenly changes. |
| Output-voltage ripple | Passives + f_s set the result | Higher f_s options help smaller passives | Excessive supply noise can affect sensitive analog measurements. |
| EMI behavior | CISPR 25 Class 5 documented | Low EMI / HotRod package claimed | Fast switching edges can inject noise into nearby sensor and communication circuitry. |
| Switching frequency | Adjustable up to 1 MHz | Fixed options: 400 kHz / 1.4 MHz / 2.1 MHz | Higher frequency can shrink L and C; it also raises switching loss and EMI risk. |
| PCB footprint | SO PowerPAD ~4.9 × 6 mm | VQFN ~3 × 2 mm | Matters in tightly packaged automotive electronics. |
| Unit cost (approx.) | ~$4.50 | ~$3 (Detkin stock caveat for LM) | BOM pressure on a multi-board vehicle program. |
| Thermal behavior | Package + conduction loss story | Lower R_DS(on) helps conduction heat | Heat that has nowhere to go becomes a reliability and layout problem. |
Efficiency
Less energy wasted as heat in a packed enclosure.
LM5164
High (no matched 12–17→5 V / 0.5 A curve in sheet)
LMR33630
5 V curves published; >95% peak claimed
MOSFET R_DS(on)
Lower switch resistance reduces conduction loss as load current rises (P = I²R).
LM5164
HS 725 mΩ · LS 330 mΩ
LMR33630
HS 75 mΩ · LS 50 mΩ (VQFN)
Output-current capability / headroom
Provides margin when MCU, sensors, or CAN circuitry create transient loads.
LM5164
1 A class part (challenge shortlist)
LMR33630
3 A class part (challenge shortlist)
Transient response
Determines how well the 5 V rail stays regulated when load current suddenly changes.
LM5164
External L/C dominated
LMR33630
External L/C dominated
Output-voltage ripple
Excessive supply noise can affect sensitive analog measurements.
LM5164
Passives + f_s set the result
LMR33630
Higher f_s options help smaller passives
EMI behavior
Fast switching edges can inject noise into nearby sensor and communication circuitry.
LM5164
CISPR 25 Class 5 documented
LMR33630
Low EMI / HotRod package claimed
Switching frequency
Higher frequency can shrink L and C; it also raises switching loss and EMI risk.
LM5164
Adjustable up to 1 MHz
LMR33630
Fixed options: 400 kHz / 1.4 MHz / 2.1 MHz
PCB footprint
Matters in tightly packaged automotive electronics.
LM5164
SO PowerPAD ~4.9 × 6 mm
LMR33630
VQFN ~3 × 2 mm
Unit cost (approx.)
BOM pressure on a multi-board vehicle program.
LM5164
~$4.50
LMR33630
~$3 (Detkin stock caveat for LM)
Thermal behavior
Heat that has nowhere to go becomes a reliability and layout problem.
LM5164
Package + conduction loss story
LMR33630
Lower R_DS(on) helps conduction heat

Duty cycle, ON/OFF energy path, and switching-frequency tradeoffs.

Use-case-weighted comparison; recommended LMR33630 for this board.

Final pick with EMI counterargument kept explicit.
Understanding EMI
Radiated EMI
Conducted noise on the supply path
Conducted noise
Switching disturbances travel through PCB traces, supply rails, or ground and show up as rail bounce or reference noise.
Radiated noise
Fast-changing currents and voltages create electromagnetic fields that can couple into nearby circuitry without a shared conductor.
On a sensor / data-acquisition board near electrically noisy drivetrain hardware, both paths matter. A quiet schematic can still become a noisy measurement if the buck stage is treated as isolated from the analog neighborhood.
Verification is where the design meets the written requirement. Waveform first; numbers only when measured.

Primary simulation evidence from the challenge submission.
| Requirement | Design mechanism | Verification method | Result |
|---|---|---|---|
| Indicator responds within the allowed response window | Comparator + logic + timing network | CircuitLab transient analysis | Not recorded |
| Both sensor conditions required before indication | Concurrent logic on comparator outputs | Functional simulation / schematic review | Not recorded |
| 5 V rail suitable for sensing/logic under automotive input | Buck regulation stage | Datasheet comparison. No rail simulation is recorded. | Not recorded |
Indicator responds within the allowed response window
Mechanism: Comparator + logic + timing network
Method: CircuitLab transient analysis
Not recorded
Both sensor conditions required before indication
Mechanism: Concurrent logic on comparator outputs
Method: Functional simulation / schematic review
Not recorded
5 V rail suitable for sensing/logic under automotive input
Mechanism: Buck regulation stage
Method: Datasheet comparison. No rail simulation is recorded.
Not recorded
Engineering was iterative. The circuit could function and still be wrong relative to the written response-time requirement.
Initial interpretation
Treated 0.5 s more like a minimum delay aesthetic than a maximum allowable response.
Simulation
Captured transient behavior for the indicator path.
Compare against the written requirement
Re-read the response-time wording as a bound the design must stay inside.
Identify the mismatch
A 'working' delay story can still fail a maximum-response requirement.
Revise understanding / design
Updated the timing interpretation so verification targets the real constraint.
Engineering Breakdown
Each block is the requirement, how that part works, what I checked, and what is still open.
Goal
Detect when brake and current conditions are simultaneously satisfied and drive an indicator.
Design
Comparator stages for each threshold, logic that requires the concurrent condition, and a timing network that sets response behavior.
Challenges
Iterations
Final implementation
Comparator + logic + timing path aimed at concurrent detection and bounded indicator response.
Goal
Generate a usable 5 V rail from an automotive ~12–17 V domain without treating the converter as a black box.
Design
Compared candidate buck architectures (LM5164 vs LMR33630 class parts) against efficiency, current headroom, transient behavior, ripple, EMI, footprint, and thermal story.
Challenges
Iterations
Final implementation
Documented selection criteria and comparison scaffold for the buck stage.
Key Design Decisions
| Decision | Alternative | Why |
|---|---|---|
| Treat the buck as a system, not a voltage label | Pick the first 5 V regulator that fits the pinout | Score candidates on system metrics first. I have not copied exact datasheet numbers into this page. |
| Response time is a max, not a delay aesthetic | Treat 0.5 s as a minimum delay | Re-check simulation against the requirement text, then revise the timing interpretation. |
Generating 5 V from ~12–17 V looks simple until load steps, ripple, EMI, and packaging show up.
A tiny or cheap part can still heat the board, ring the rail, or couple noise into analog paths.
Score candidates on system metrics first. I have not copied exact datasheet numbers into this page.
An RC timing network can satisfy 'the circuit waits' while still violating a maximum allowable response.
Misreading the written requirement produces a working waveform that fails the spec.
Re-check simulation against the requirement text, then revise the timing interpretation.
Results & Validation
What worked in the end, what I can show for it, and where it's still limited.
CircuitLab transient analysis is on the page as primary verification evidence for response behavior.

CircuitLab transient analysis from the submission package. Read timing from the plot; do not invent numbers here.
I have not written down a measured response time from the simulation readout.

I have not marked the revised timing pass or fail against the written window.
Limitations
The longer design notes, the timeline, and the revisions. The sections above are the system and what I measured.
Evolution
The steps I can put in order from the notes. A clip opens from its still.


Draft
Built the sensing → compare → logic → indicate story before locking the power stage.


Simulate
Ran CircuitLab transient analysis to see indicator timing against the intended behavior.


Correct
Caught that the response-time wording was a maximum, not a minimum delay, and revised understanding/design.
Reflection
What surprised me, what I'd redo, and questions I'm still chewing on.
What surprised me
What I would redesign
Future improvements
Questions that emerged