Skip to content
← All projects
2022engineering

Embedded Systems ML

Voltage prediction from amplifier circuit data.

PythonJupyterMicro-Cap
Embedded Systems ML · case study

Context

An embedded-systems coursework project where most students simulated circuits and submitted plots. I wanted to combine it with the ML elective I was taking that semester.

Problem

Predict the output voltage of a differential amplifier circuit from its design parameters (bias current, transistor sizing, supply voltages) using a regression model trained on simulator data, instead of solving the analytic equations every time.

Approach

Generated a few thousand parameter combinations in Micro-Cap, captured the simulated output voltages, then trained a regression model in Jupyter against that dataset.

Build

  • Parameter sweep script driving Micro-Cap to produce a CSV of (input parameters, output voltage) pairs.
  • EDA in pandas; dropped degenerate cases where the amplifier saturated.
  • Random forest regressor as a baseline, then a small MLP for comparison.
  • Inference notebook that took new design parameters and returned a predicted output voltage in milliseconds — vs. a 30-second SPICE run.

Outcome

Mean absolute error of ~3% on the held-out set. Submitted as an unconventional take on the brief and got marked accordingly.

What I would change

The dataset was too clean — I generated it, after all. A real-world version would need to model component tolerances and temperature drift, both of which the simulator-only data set ignored.

← Previous
Haystack Similarity Search
Semantic search over arbitrary documents.
Next →
C-Shell
Custom Unix shell from scratch.