Halvor Hafnor
Embedded & applied ML engineer. I build machine learning pipelines that run on real hardware and real sensor data at Aerendir Mobile, alongside a master’s in computer engineering at UC San Diego.
California
About
I'm a computer engineering master’s student at UC San Diego working at the intersection of embedded systems and applied machine learning. I'm especially interested in how technical systems translate into practical products, through clear requirements, usability considerations, and cross-disciplinary communication.
Away from work I read philosophy, play soccer, chess and guitar, get out camping and hiking when I can, and do my own mechanical work on cars and motorcycles.
- Focus Embedded software, machine learning, sensors and biometrics
- Languages English, Norwegian, Spanish
- Honors Tau Beta Pi, Provost Honors every quarter at UC San Diego
Experience
-
Embedded Software Engineer
- Trained classifiers in scikit-learn on inertial sensor data, from feature engineering through to models small enough to run on the sensor itself.
- Built the collection and conversion tooling around STM32 based ST sensor boards, turning raw datalogger output into labeled datasets a model can be trained on.
- Evaluated and hardened the motion-sensor classifiers behind A-Live, the anti-bot liveness check, and built the harness that measures what each change actually does.
- Built Android applications for real-time biometric sensing, data streaming and workflow control.
- Wrote C++ and QML software on Linux-based phones, interfacing with sensors and ML inference components.
- Named inventor on a pending patent application covering automotive biometrics and driver monitoring.
-
Math & Science Tutor and CS Teaching Assistant
- Teaching assistant for computer science courses in C++, Java and x86 assembly, covering object-oriented design and manual memory management in the high-level languages, and the register and instruction model underneath them in assembly.
- Ran office hours as working debugging sessions, reading compiler errors and tracing logic faults alongside students rather than handing back corrected code.
- Tutored calculus, physics and discrete mathematics, one-on-one and in groups, across a wide range of starting proficiency.
- Taught the approach rather than the answer, so the method carried to the next problem.
-
Electrical Technician
- Three consecutive summers supporting electrical manufacturing and control system assembly for industrial clients.
- Assembled and wired around 300 industrial control panels and power distribution cabinets from engineering schematics, with QA testing and fault debugging before delivery.
- Mentored incoming interns and improved onboarding through shared best practices.
-
Data Management Intern
- Migrated legacy technical data to updated digital systems, including cleaning, formatting and verification.
- Organized documentation supporting internal engineering and operations.
Projects
-
Vibration-based hands on the wheel classifier
AerWheelAerendir Mobile
Fitted a Tesla steering wheel with an STMicroelectronics LSM6DSV16X six-axis IMU sampling at 240 Hz, and trained decision-tree classifiers in scikit-learn to tell from the micro-vibrations of a driver's grip whether their hands were on the wheel, reported live on an indicator light. It ran first through ST's own on-sensor Machine Learning Core, then as an external tree in firmware on the STM32 alongside it. No camera, no extra hardware, and nothing the driver has to do deliberately. Better than 99% accuracy at under 0.5% false positives, answering within 1.5 seconds. Built with one other engineer, and the subject of the pending patent application I am named on.
-
TabTerm
Chrome Web Store SourcePersonal project
A macOS terminal built as a Chrome extension over a background daemon. The daemon owns the shell processes, the extension owns the views, and the result is that every terminal is an ordinary Chrome tab. All of Chrome's tab machinery then applies to terminals for free: keyboard shortcuts, groups, pinning, moving between windows, reopening from history. That shape also leaves room for things a terminal window has nowhere to put, so there is a command launcher, search across everything you have ever run, saved commands scoped to the project you are in, workspace templates, splits, a terminal in Chrome's side panel next to any page, inline images, and a live view of the local servers you have going. You can also watch, type into and switch between all your terminals from a phone or another computer, and get a notification on your phone when an agent like Claude Code needs you. A device is paired by scanning a code and approved on the Mac with Touch ID, traffic is end to end encrypted through a relay you deploy on your own Cloudflare account, and keys echo locally so typing feels instant. Processes outliving their tabs falls out of the daemon owning them, rather than being the point. Written in TypeScript. A Node daemon runs the PTYs, keeps each screen's state in headless xterm.js and its sessions in SQLite, and talks to a Manifest V3 extension over an authenticated loopback WebSocket.
-
Personal project
A flight search for people who fly a lot. It asks Google Flights, Kiwi.com and about ten airlines' own sites at once, shows results as each source answers, and builds cheaper trips out of separate tickets: self transfers, stopovers, nested round trips and multi city routes. Leave the destination empty and it maps the cheapest places to go from where you are. Routes you care about are checked twice a day by a scheduled job that keeps the price history and sends alerts. A Next.js site and a Python engine on Vercel with Postgres behind them, plus a CLI and an MCP server so a Claude session can search flights directly.
-
A 400-person biometric motion dataset
Aerendir Mobile
Collected and classified the motion dataset behind Aerendir's biometric authentication work. 400 participants, each recorded holding the phone in three postures, sitting, standing and walking, from the accelerometer and gyroscope. The variety is the point, because a model that only recognizes you sitting perfectly still is no use in a pocket.
-
Self-driving car, and a laser that follows you
SourceUC San Diego, ECE 148
Built a small autonomous car on a Raspberry Pi 5, wiring the drive, sensing and compute together and getting them to work as one vehicle. On top of the course work we added a laser targeting system of our own. YOLOv8 finds the people in frame, an OAK-D stereo camera puts a distance on each of them, and the nearest one is turned from a pixel position into pan and tilt angles through the camera's field of view, so two servos hold a laser pointer on that person while they move. Depth is sampled as the median of a small patch rather than a single pixel, since one bad reading is enough to throw the aim off. It streams what the camera sees to a browser while it tracks.
-
Personal project
Guitar chords and tabs for any song. Paste a link from YouTube, Spotify, SoundCloud or most anywhere else, upload a file, or let it listen to what's playing, and it works out the chords and a note by note tab from the audio itself. The whole signal chain runs in the browser on a Web Worker, so a song costs nothing to process. Audio is turned into a constant-Q spectrogram, a port that matches librosa's to within 0.02 mean log difference, and fed to a bidirectional transformer chord model (BTC) and a CRNN guitar transcription model, both exported to ONNX and run on WebGPU with a multithreaded WebAssembly fallback. Beats come from a spectral flux onset envelope, autocorrelation tempo and dynamic programming beat tracking, and chord probabilities are Viterbi decoded onto the beat grid with a pass that favors changes on downbeats. A CNN I trained on GuitarSet and EGDB hears which string each note was played on from its first 16 harmonics, right about nine times in ten, and a second Viterbi pass over hand positions picks fingerings that keep the hand still. It detects the key and lowered tunings, suggests a capo, transposes, and plays the tab back in time with the song. Next.js on Vercel, with every result saved to a public library.
-
Tryton, a subsea ROV
Project pageUC San Diego
A modular, low cost underwater ROV with a 3D printed frame inside an acrylic pressure tube, driven by five thrusters and flown from a USB game controller with live video coming back over Ethernet from a Raspberry Pi camera. A Pixhawk running ArduPilot holds position using a depth sensor and an IMU. I did the electrical side, sensor wiring, the LiPo power system and ESC integration. Team of three.
Education
-
MS, Computer Engineering
Graduate work in computer engineering, focused on embedded systems and machine learning.
- Hardware design FPGA high-level synthesis and hardware and software codesign on PYNQ boards (CSE 237C). Custom VLSI design: MOS transistor theory, CMOS logic, transistor-level simulation, layout and verification in CAD tools (ECE 260A).
- Compilers Compiler construction (CSE 231).
- Machine learning Statistical natural language processing (CSE 256), recommender systems and web mining (CSE 258).
-
BS, Computer Engineering
Major GPA 3.9 / 4.0
- Digital design Combinational and sequential logic and finite state machines, built in Verilog (CSE 140, 140L). An advanced digital design project in Verilog (ECE 111). A processor designed and implemented in Verilog (CSE 141L). CMOS digital circuits at the transistor level (ECE 108).
- Architecture and systems Computer architecture from the software side: memory hierarchy, caches and performance (CSE 142). Computer organization and ARM assembly (CSE 30). Systems programming in C and Unix tools (CSE 29).
- Embedded and robotics A team embedded systems design project (CSE 145). Autonomous vehicles, including real-time person tracking and laser targeting on a Raspberry Pi 5 (ECE 148). Ubiquitous computing with sensors and wearables (CSE 118).
- Machine learning and signals Deep learning and its applications (ECE 176), machine learning for music (CSE 153R), linear systems and signals (ECE 101).
- Software Advanced data structures (CSE 100), software engineering (CSE 110), computer graphics (CSE 167), 3D user interaction (CSE 165), algorithms and their analysis (CSE 21).
-
Computer Science & Engineering
4.0 / 4.0
Skills
- Languages C++, C, Python, TypeScript, Java, Bash, ARM Assembly
- Embedded Embedded Linux, Android, QML/Qt, STM32, STM32CubeIDE, ST sensor boards, firmware, on-sensor inference, Docker
- Signals & ML PyTorch, scikit-learn, NumPy, pandas, SciPy, OpenCV, YOLOv8, signal processing, feature extraction
- Systems Node, SQLite, WebSocket protocols
- Agentic development Claude Code, MCP, spec-driven work breakdown, subagent orchestration, verification gates
Interests
-
Applied machine learning
What happens to a model once it leaves clean data and meets the world.
-
Signal processing
Pulling structure out of measurements that arrive noisy and unlabeled.
-
Embedded engineering
Software written close enough to the hardware that its limits matter.
Loading…