Skip to content
Tech Interview Prep

Real Interview Questions for the Embedded Systems Engineer at Melexis

New

Interview Q&A

3 questions · Flow follows Relevance until this set has a learning order.

Q&A-1What excites you most about working on robotic solutions within Melexis?

Reported in 11 Melexis experts shaping the future of robotics I ...

The 90-second answer

The part that pulls me in is the loop between silicon and motion. At Melexis I would not be writing firmware for a board that just reports data. I would be writing it for a sensor or driver that sits inside a joint, a gripper or a drive unit, and whose output decides torque in the next few milliseconds.

That constraint changes the engineering. A position sensor for a robotic joint has to stay accurate over temperature, air gap variation and contamination, and it has to deliver that result with a latency the control loop can trust. If I miss the timing budget, the robot does not just log a bad sample. It oscillates, it loses grip force, or it trips a safety monitor.

I want that kind of accountability, and I want it in a company that sells the IC, the package and the reference design together. You see the failure in the field, you can trace it back to the front end, the demodulation, the calibration data in EEPROM, or the firmware state machine, and you fix it in one place.

What that looks like on a real project

Take a joint angle sensor using a magnetic front end, for example an MLX90372 class device on SPI, feeding a motor controller. The controller might run current control at 10 kHz and position updates at 1 kHz. My firmware and the host interface have to fit inside that.

Hypothetical budget for one 1 kHz position frame, labelled as an example:

StageBudget
Sensor conversion and internal filtering180 µs
SPI transfer, 32-bit frame at 10 MHz plus chip select15 µs
MCU read, CRC check and timestamp25 µs
Host processing and control update120 µs
Margin before the 1 ms deadline660 µs

That margin is where the interesting work lives. If the sensor reports a CRC error, do I reuse the last sample, flag it stale, or force a safe state? Reusing it once keeps the loop smooth. Reusing it for five frames hides a broken wire. My rule would be: one stale sample allowed, second consecutive error raises a diagnostic and the controller derates torque. That decision has to be documented, tested with fault injection, and visible in the diagnostic interface, not buried in a retry loop.

The same thinking applies to current sensing for torque control. A driver IC that integrates current measurement, gate drive and protection has to report overcurrent fast enough to protect the MOSFETs, but not so eagerly that normal ripple trips it. Tuning that threshold means looking at real waveforms, temperature drift and the actual load profile of a gripper or a small actuator, not just the datasheet typical values.

Why Melexis specifically

Melexis sits at the point where automotive-grade discipline meets robotics volumes. AEC-Q100 qualification, ISO 26262 work where the application needs it, and long product lifecycles mean a design has to survive ten years of production, not just a demo. At the same time, robotics is moving toward smaller, more distributed actuators, which means more nodes per robot and more pressure on cost, size and power.

That is the combination I want: a sensor or actuator IC that has to be cheap enough for a consumer robot, reliable enough for a collaborative arm, and deterministic enough for a control loop. I would rather spend my time closing that loop, with oscilloscope traces and fault tests to prove it, than writing firmware where the worst case is a slow web page.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-2From factory floor to field, what are future opportunities for robotics in production and beyond?

Reported in 11 Melexis experts shaping the future of robotics I ...

The 90-second answer

The shift is from robots that do one fixed task behind a fence to fleets of smaller machines that share space with people and move between tasks. In production that means collaborative arms, mobile manipulators and inspection drones on the same line. Beyond the factory it means the same platforms in warehouses, farms, hospitals and construction sites. For embedded work the opportunity is not the arm itself. It is the sensing and actuation layer that makes a cheap, safe, battery powered machine possible: absolute position sensing on every joint, current sensing for torque estimation, motor drivers that report faults, and deterministic communication between them.

Melexis sits in that layer. A cobot or an AMR lives or dies on whether its controller can prove, every millisecond, where each joint is, how much torque it is applying, and whether it can stop safely when a person enters its workspace.

OpportunityWhat changes on the floorEmbedded bottleneck
Flexible production cellsOne cobot does pick, place, screw and inspect, reprogrammed per batchJoint position accuracy and torque limiting under ISO/TS 15066 power and force limits
AMRs and mobile manipulatorsRobots move to the work instead of a conveyor bringing work to themBattery life, wheel motor control, and safe navigation sensors that work in dust and low light
Inspection and predictive maintenanceVision and vibration sensing on the robot, not a separate instrumentEdge processing latency, sensor drift, and time synchronisation across nodes
Field robotics: agriculture, logistics, constructionMachines operate outdoors, unattended, for long shiftsTemperature range, ingress protection, functional safety, and cost per node at volume

How a joint actually closes the loop

[Encoder / Hall position IC] --SPI / SENT--> [MCU: FOC + safety monitor]
[Current sense IC] ------------ADC-------->        |
[Driver IC: gate drive, fault reporting] <---PWM---+
        |                                                |
        +---- CAN FD / LIN / IO-Link to cell controller

A typical cobot joint runs its current loop at 8 to 16 kHz and its position and safety loop at 1 kHz. The arithmetic that decides whether a design works is simple. At 1 kHz you have 1,000 microseconds per cycle. If the position sensor update takes 200 microseconds, the CAN FD frame to the next joint takes 150 microseconds, and the safety monitor needs 100 microseconds to check torque and speed limits, you have used half the budget before the control law runs. That is why sensor latency and bus scheduling, not CPU megahertz, usually limit performance.

For a mobile robot the budget is energy. A 48 V, 20 Ah pack holds about 960 Wh. Drive motors drawing 300 W continuous and compute plus sensors drawing 80 W give roughly 2.5 hours of operation. Cutting sensor and driver quiescent current by 20 mA at 48 V saves about 1 W, which sounds small until it adds 15 minutes per shift across a fleet of 200 robots.

Where I would focus, and what fails

First, safety as a hardware path, not only software. A torque limit computed in firmware can be defeated by a stuck gate driver or a miscalibrated current sensor. Strong designs put overcurrent, overspeed and safe torque off in the driver IC or a separate safety monitor, with the MCU able to request a stop but not able to mask it. Detection is a discrepancy: commanded torque versus measured current, or encoder angle versus a redundant Hall sensor. When they diverge beyond a threshold, the joint goes to safe torque off and reports a fault code the cell controller can log.

Second, the factory environment. EMI from welders and variable frequency drives, temperature swings from 5 to 55 degrees in a cell, and vibration all shift sensor offsets. A position IC specified at plus or minus 0.1 degrees in the lab can drift if the magnet alignment or air gap changes with thermal expansion. The mitigation is calibration at end of line, temperature compensation tables in the sensor, and periodic self checks during idle cycles.

Third, cost and supply. Field robots need hundreds of sensing points. A solution that works in a lab at 500 euros per joint will not ship in an agricultural robot built for 5,000 units a year. That pushes toward integrated sensor plus driver plus transceiver parts, fewer external components, and a single calibration flow.

If I joined a team here, I would start with one joint and one AMR drive train, measure latency and current sense accuracy under load and temperature, and build the fault injection tests first: shorted phase, lost encoder, delayed bus frame. The robotics opportunity is real, but it only converts to shipped machines when the embedded layer can prove safety, determinism and battery life with numbers, not claims.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-3What have been the challenging situations in your work?

Reported in 11 Melexis experts shaping the future of robotics I ...

The 90-second answer

The hardest one I shipped was a LIN slave sensor that passed bench tests and failed in the car at temperature. Intermittent frame errors, no hard fault, and only on some boards. It took three weeks to find, and the fix was not in the LIN stack.

The part was a Melexis-style position sensor on a Cortex-M0, 8 MHz, running a LIN 2.2 slave at 19.2 kbit/s, plus a SENT output and a watchdog. In the lab at 25 C it ran for days. In a thermal chamber it started dropping frames above 85 C, roughly 1 in 400 frames, and the master logged LIN_ERR and re-polled. The customer saw it as a frozen angle for 200 ms.

What made it hard: the failure was timing, not logic. The code was correct on a scope at room temperature.

How I narrowed it

I stopped guessing and logged what the slave actually saw. I added a diagnostic build that counted, per 1,000 frames: header timeouts, checksum errors, break-field errors, and UART overruns, plus the internal temperature sensor reading and the last watchdog cause. That turned a vague complaint into a pattern.

Symptom at 105 CCount per 1,000 framesAt 25 C
Break-field error180
Checksum error30
UART overrun210
Header timeout00

Break and overrun together pointed at the UART receive path, not the LIN protocol. The ISR was doing too much: it parsed the PID, checked the checksum, and updated the angle in the ISR. At 19.2 kbit/s a byte takes about 520 us. At high temperature the oscillator drifted, the master and slave baud rates diverged by about 1.8%, and the ISR occasionally missed the next byte while still processing the previous one. The scope confirmed it. The slave was sampling near the edge of the stop bit on long frames.

The fix, and what I changed

Two changes, both small. First, move all parsing out of the ISR. The ISR now only writes bytes into a 32-byte ring buffer and sets a flag. Second, add a guard band: if the measured bit time drifts more than 1% from nominal, resync on the break field and discard the frame instead of trying to salvage it. A salvaged frame with a bad checksum is worse than a dropped frame, because the master retries cleanly.

C
// ISR: capture only. Checked against GCC 12.2, Cortex-M0, -O2.
void USART1_IRQHandler(void) {
    uint8_t b = USART1->DR;
    uint16_t next = (rx_head + 1) & 31;
    if (next != rx_tail) {
        rx_buf[rx_head] = b;
        rx_head = next;
        rx_ready = 1;
    } else {
        rx_overrun++;
    }
}

Worst-case ISR time dropped from about 40 us to under 3 us. At 8 MHz that is the difference between missing a byte at 1.8% drift and having margin. I also added a production counter for overruns, exposed over the diagnostic channel, so the next team would see drift before the customer did.

What I would do differently, and the trade-off

I should have logged counters from the first bring-up, not after the customer report. The other trade-off was resync versus salvage. Discarding a frame costs one retry, about 10 ms on that bus. Salvaging risks sending a stale angle, which for a steering or throttle signal is a safety issue under ISO 26262. We chose discard, and documented it as the ASIL behaviour.

That is the pattern I look for now: reproduce at the corners, count instead of eyeballing, and fix the timing budget before touching the protocol.

Curated: · Written: · Reviewed:

Difficulty: Easy

Curated: · Written: · Reviewed: