5-Point Retrofit Checklist: Sine vs Square Wave Controllers for Technicians

For most e-bike builds and repairs, a sine wave or FOC-style controller is the better pick because it cuts torque ripple and noise and gives smoother low-speed control, though it costs more and takes longer to set up. A square wave or six-step controller still earns its place when budget or simplicity matters more than refinement. Whichever you choose, disconnect and isolate the battery before you probe any wiring or controller connections.


TL;DR:

  • FOC holds efficiency better on sustained climbs when feedback and tuning are adequate, but its advantage can shrink at high RPM as control delays grow.
  • Before a retrofit, verify motor and sensor compatibility, clean Hall transitions, and the active firmware mode; some controllers revert to six step when feedback fails.
  • Isolate the battery and follow the service manual’s lockout steps before probing; back up existing settings and test new hardware at reduced voltage.
  • Six step remains practical for legacy motors with basic Hall sensors, tight budgets, or field repairs where shops lack specialized tuning tools.
  • A stepped current trace confirms six step operation, not a defect; check motor phases, Hall sensors, and connectors before replacing the controller.

CS Harness
Make Motor Checks More Clear
EVCore D1 tests a vehicle’s motor, sensors and wiring through an adapter harness, with diagnostic codes and next checks.
Get D1 updates

Table of Contents

Why waveform shape changes torque, noise, and efficiency

A controller’s job is to turn battery DC into the phase currents that spin the motor, and how it shapes those currents determines almost everything you feel on the bike. Six-step (trapezoidal) control energizes two of three phases at a time in blocky steps, using simple Hall sensor transitions to decide when to switch. It is cheap to implement and easy to diagnose, but the abrupt current steps create torque ripple, which riders feel as jerkiness at low speed and hear as a buzz or whine from the hub.

Sinusoidal commutation drives all three phases with smoothly varying current, closer to a true sine wave, which reduces the sharp edges that cause ripple and acoustic noise. Field Oriented Control (FOC) goes a step further: it mathematically transforms phase currents into a rotating reference frame so the controller can independently manage torque-producing and flux-producing current. According to Moons Industries’ comparison of motor control methods, FOC and sinusoidal commutation produce smoother torque and lower torque ripple than six-step commutation, and FOC also holds efficiency better across a wider speed range when it is implemented and tuned correctly.

That “tuned correctly” qualifier matters. FOC needs accurate, high-resolution rotor position feedback and more processing power than six-step control, since it is constantly recalculating a rotating reference frame rather than just reading Hall state transitions. A comparative study of sine and square wave drives backs this up from the drive-electronics side, finding that sine-wave and FOC approaches generally deliver lower torque ripple, lower audible noise, and higher overall efficiency, while square-wave and six-step systems keep the advantage in cost and hardware simplicity.

What this means for phase current behavior on your bench:

  • Six-step controllers show stepped current waveforms on a scope, with visible commutation spikes at each 60-degree transition.
  • Sinusoidal controllers show smoother, continuous current traces with fewer high-frequency harmonics.
  • FOC controllers actively adjust current vectors in real time, which is why they can hold torque steadier even as load changes.

One of the clearer findings from the published literature is that FOC and sinusoidal methods reduce torque ripple and improve efficiency over six-step commutation when position feedback and tuning are adequate, a distinction worth keeping in mind before assuming any “sine” label guarantees smoothness.

What riders and techs notice on the bike

The lab findings above translate into specific, checkable symptoms once a controller is actually turning a wheel.

  • Low-speed control: Sine and FOC controllers deliver noticeably smoother takeoff and crawl-speed handling, since reduced torque ripple means less jerk between steps. Six-step controllers tend to feel coarse here, especially under light throttle.
  • Hill climbing and sustained load: Because FOC manages torque-producing current directly, it typically sustains efficiency better under steady heavy load, which shows up as less voltage sag and steadier cadence on long climbs.
  • High-speed behavior: FOC’s advantage can shrink at higher RPM, since digital sampling rate and controller delay limit how fast the control loop can react, sometimes letting ripple creep back in at speed.
  • Noise and vibration: The stepped currents from six-step control excite audible whine and higher vibration in the hub shell, which over time can accelerate bearing and spoke wear.
  • Thermal behavior: Sharp current transitions in six-step switching tend to concentrate heating around commutation points, while smoother sinusoidal currents spread thermal stress more evenly across the switching cycle.

Pro Tip: If a customer complains about a buzzing hub at low speed but the bike rides fine at cruising speed, check the commutation mode before assuming a mechanical fault.

None of this is instant diagnosis. A reading that shows a stepped current trace tells you the controller is in six-step mode, not that something is broken, so always confirm your interpretation against the service manual before you tell a customer what’s wrong.

Retrofit checklist: BEMF, sensors, firmware, and bench safety

Before swapping a controller or flashing new firmware, isolate the battery and follow your service manual’s lockout steps. High-voltage packs can cause serious injury or fire if probed while live, and you should never bypass a BMS, fuse, or interlock to get a reading.

Once the system is safely de-energized and you’re working at low voltage on the bench:

  1. Measure back-EMF. Spin the motor by hand and read the phase voltages on a scope or meter to confirm the motor’s native waveform shape and amplitude at a given speed.
  2. Check Hall sensor signals. Verify clean, evenly spaced transitions; noisy or missing Hall signals will cause problems regardless of which commutation mode you choose.
  3. Confirm sensored vs. sensorless requirements. FOC can run sensorless on some systems, but it generally needs cleaner feedback and more careful setup than six-step; mismatched sensor support is a common cause of failed retrofits.
  4. Review firmware commutation modes. Many controllers can be configured for sine or trap, and some fall back to six-step automatically if they lose sinusoidal position feedback, so check which mode is actually active, not just which mode is selected.
  5. Back up the original configuration. Save the existing firmware and settings before changing anything, so you can restore a known-good state if the swap doesn’t work out.

Pro Tip: Bench-test any new controller at reduced voltage before full installation; it’s far easier to catch a wiring mismatch at low current than after the pack is fully connected.

Cost, complexity, and a short decision checklist

Sine and FOC controllers generally cost more, not just for the controller itself but for the encoder or high-resolution Hall setup they often need and the extra tuning time to get smooth performance. Six-step controllers keep hardware and setup simple, which is part of why they remain common on budget builds and older platforms.

Tuning FOC well is also a different skill set. Getting clean results usually calls for an oscilloscope or current logger and config software to dial in current loops, rather than the simpler Hall-timing checks that six-step systems need.

Use this when deciding between the two for a given build:

  • Motor type: Confirm the motor’s winding and sensor setup actually supports the commutation mode you want before buying a controller.
  • Rider priority: Smooth, quiet low-speed control points toward sine/FOC; budget and simplicity point toward six-step.
  • Payload and terrain: Cargo bikes and hill-climb-heavy routes benefit more from FOC’s steadier torque under load.
  • Serviceability: A simpler six-step system is often easier for a shop to diagnose quickly in the field without specialized tools.
Factor Sine/FOC controller Square wave (six-step) controller
Torque ripple Lower Higher
Audible noise Lower Higher
Hardware cost Higher Lower
Tuning complexity Higher Lower
Sensor/feedback needs Higher resolution required Basic Hall sensors sufficient

These trade-offs come from the sine and square wave drive comparison, which lists efficiency, torque ripple, noise, and complexity as the core factors separating the two approaches.

Confirming controller health before you swap anything

Before replacing a controller, it helps to know for certain whether the problem is actually the controller, and not a failing motor phase, a bad Hall sensor, or a loose connector that looks like a controller fault. Guided diagnostic tests that check motor, sensor, and wiring health separately give you that confirmation before you spend money or labor time on a swap that may not fix anything.

Separate motor sensor and wiring checks before replacement

A saved service report that documents BEMF readings, Hall signal quality, and wiring continuity before and after a swap also gives you a record to compare against if symptoms return. This is the gap our diagnostic tools are built to close: There is Windows desktop software currently available for pre-order as a 6-month license, with a beta version available now, supporting guided diagnostic jobs and readable service reports. The EVCore D1 bench hardware is still in development and is not yet for sale or usable in a shop today.

A few things worth keeping in mind regardless of which tools you use:

  • Always separate what a reading shows from what you think is wrong. A fault code or an odd trace points you toward a likely cause, not a confirmed diagnosis.
  • Isolate the battery and follow your service manual’s lockout procedure before probing any controller or wiring connection.
  • Keep a written or saved record of readings taken before and after any controller swap.

When a square wave controller is still the right call

Sometimes the smoother option isn’t the better business decision. A six-step controller can be the right call for a legacy motor with basic Hall sensors only, for a tight budget build, or for a shop that needs fast field repairs without specialized tuning tools. If you stay with square wave, snug mounting and good phase wire shielding reduce vibration and extend hub life.

— Colton Masterson

A diagnostic workflow for shops weighing a controller swap

CS Harness

We built EVCore Studio for shops that want to confirm a diagnosis before committing to a controller swap, with guided jobs, firmware-check support, and service reports a customer can actually read. EVCore Studio is available now as a 6-month license pre-order, with its beta usable today; the EVCore D1 bench hardware it pairs with is still in development and not yet for sale.

  • Guided jobs walk a technician through motor, sensor, and wiring checks in order.
  • Service reports translate diagnostic codes into plain language a customer can read.
  • Records stay on the shop’s own computer rather than a third-party account.

See the current offering on our software page.

FAQ

Which is better, square wave or sine wave?

For e-bike motor control, sine wave and FOC generally produce smoother torque, less noise, and better efficiency, according to the sine and square wave drive comparison. Square wave (six-step) remains a reasonable choice where lower cost and simpler hardware matter more than ride smoothness.

Which inverter is better, sine wave or square wave?

A sine wave inverter produces a cleaner output waveform that is gentler on sensitive electronics and motors than a square wave inverter. This article focuses on e-bike motor controllers rather than standalone power inverters, so the tradeoffs described here apply specifically to controller waveform choice, not inverter selection for household or AC devices.

What is the difference between a sine wave and a square wave?

A sine wave rises and falls smoothly in a continuous curve, while a square wave switches abruptly between two fixed levels. In motor control, that difference means sine-based commutation delivers smoother current transitions and lower torque ripple than six-step switching.

How to change a square wave to a sine wave?

Converting a controller from square wave (six-step) to sine wave commutation usually requires a controller and firmware that actually support sinusoidal or FOC modes, along with motor position feedback precise enough to support it. Always back up the original firmware and settings first, and bench-test at low voltage before a full install, since a mismatch between the motor’s sensor resolution and the firmware’s requirements is a common cause of failed conversions.

Sources

CS Harness
Questions About Shop Diagnostics?
Email CS Harness with questions about EVCore’s diagnostic system for electric bike, motorcycle and scooter repair shops.

This article is general information for trained technicians and is not a substitute for the vehicle manufacturer’s service manual. Electric vehicle batteries and wiring can cause serious injury or fire: disconnect and isolate the battery before testing, and use properly rated tools and protective equipment.