OEM dispatch: 24/7 motor sample routing Regions: North America / Europe / Asia Pacific / Latin America
Engineering Article

What Size VFD for 5HP Motor? 6 Motor Wiring Mistakes I've Already Made for You

2026-08-27Bafang Engineering

I'm an applications engineer at bafang-motor, and I've handled e-bike drive systems and industrial motor orders for six years. In that time I've personally made—and documented—14 significant mistakes, totaling roughly $18,000 in wasted budget. After the third controller failure came back in Q1 2024, I turned that track record into a checklist. This is it.

This article is for anyone about to wire or size a motor. Maybe you're building an e-MTB with a bafang m510 motor and the display won't talk. Maybe you've got a bafang 48v 500w rear hub motor kit on the bench and you're not sure which connector actually matters. Maybe you're an industrial electrician staring at a direct drive servo motor and a bundle of unlabeled cables. Or maybe you typed what size vfd for 5hp motor into a search bar and got ten different answers.

Six steps. Each one is a mistake I've made. None of them require a degree.

Step 1: Read the nameplate before you order or power anything

Most motor wiring problems are ordering problems. The nameplate tells you the voltage, the full-load current, the duty cycle, the insulation class. Everything you need. But you have to actually look at it.

For a bafang 48v 500w rear hub motor kit, the "nameplate" is the product spec. Check the winding rating, usually given in RPM per volt. A 12-RPM-per-volt winding gives a good balance of torque and speed. A 9-RPM-per-volt winding is torquier but slower on top end. Order the wrong one and your conversion will feel like a pedal bike with a dead battery. The motor didn't fail—you spec'd it wrong. Once it's installed, that's the same thing.

For a bafang m510 motor, verify the communication protocol. Bafang's M-series mid-drives—the M510 included—have shipped with different communication variants depending on the build. A display meant for one protocol won't talk to a motor configured for the other. No amount of wiring skill fixes a protocol mismatch.

The industrial version of this mistake: I approved a quote for twelve direct drive servo motor units without checking that the brake voltage matched the drive's brake output. The motors shipped with 24V brakes; the drive supplied 48V. On the bench, the brake release circuit let the smoke out. That was $1,850 in replacement parts plus a one-week delay—and the whole time, the answer was printed on the nameplate.

Not the sales page. The nameplate. If you don't have it in hand, ask for a photo.

Step 2: The controller has to match the motor. No, it really has to.

This gets pushback because the cables sometimes physically fit. They'll click together. That doesn't mean they're compatible.

On a bafang m510 motor, a matched controller isn't optional for anything beyond basic spinning. The torque sensor, the cadence data, the display diagnostics—they all run through the motor's communication link. Use a generic 48V controller and the wheel may turn, but the display will stay blank and the pedal-assist feel will be rough.

On a bafang 48v 500w rear hub motor kit, the number that matters is the controller's current limit. The motor is rated for 500W continuous. At 48V, that's about 10.4 amps. The kit controller peaks around 25A for short bursts, which is fine. The problem shows up when someone reuses an old controller rated for 30A continuous. On a long hill, the motor pulls more than rated current the whole way. It doesn't trip—it overheats. Then the hall sensors fail and the motor stops mid-turn. I've taken that phone call.

I have mixed feelings about aftermarket controllers for Bafang kits. On one hand, some are genuinely good and let you tune the power curve. On the other, I've watched too many hub motors come back with burned windings to ever recommend that "bigger is better." Bigger is how warranty claims happen.

Step 3: Servo motor wiring will find you out

Servo motor wiring scares people, and honestly, it should. A servo cable carries the three power phases, the encoder channel, a thermistor if it's fitted, and sometimes a holding brake. Mix up the power phases and the motor runs backwards—or doesn't run at all. Swap two encoder wires and the drive will fault immediately, if you're lucky.

If you're not lucky, you get what happened in September 2022. I told a customer's electrician that the terminal block on our direct drive servo motor was self-explanatory. Three weeks later, the axis drove hard into a mechanical end stop and bent a ball screw. The electrician had wired the phases by physical terminal position instead of by phase label. The drive didn't catch it in time because the encoder feedback looked right for a few hundred milliseconds. It cost $890 and a 3-day delay.

Now the rule is boring:

  • Wire from the pinout in the servo drive manual, not from terminal positions.
  • Label the phase wires with tape before you remove the old motor.
  • If the motor has a brake, verify the brake voltage before you connect it.

Boring rules are good. Boring rules don't bend ball screws.

Step 4: What size VFD for 5HP motor? Start with the FLA, not the HP

The most common email I answer is some version of what size vfd for 5hp motor. Here's the trap behind that question: VFDs are rated for output current, and horsepower only gets you close when the voltage cooperates.

A 5hp, three-phase motor at 460V draws about 7.6A at full load. The same motor at 208V draws about 17.5A per NEC Table 430.250. If you buy a 460V drive rated for 7.6A and put it on a 208V 5hp motor, you're undersized by more than double. It will trip on overcurrent every time the motor starts to work. I do not mean occasionally. Every time.

The voltage changes everything. "5hp" is not a current rating.

So the method I use: check the motor's full-load current (FLA) from the nameplate, then pick a drive whose continuous output current equals or exceeds that number. If the application has shock loads—crushers, heavy feed drives, direct drive machinery—size up one frame. That part is a judgment call.

Why do I spend time explaining this instead of just pushing a sale? Because an informed customer asks better questions and makes faster decisions. A customer who buys the wrong VFD calls back twice as angry and a week behind schedule. Educating people on the front end saves both of us the drama.

I don't have hard data on how many VFD failures are actually sizing errors. But based on my repair log from the last five years, my sense is that about one in three VFD returns we see is not a VFD defect. It's a sizing error, a wiring error, or a grounding problem wearing a VFD label.

Step 5: Grounding and cable routing are part of the system

Grounding errors are quiet. No smoke, no error code, no immediate sign—until the machine starts doing weird things under load.

The rule: use shielded cable for encoder and signal wiring, and ground the shield at one end only. At the drive end. Grounding both ends sounds safer, but it creates a ground loop, and ground loops produce the strangest intermittent faults I've ever chased.

A customer once called about a new direct drive servo motor tripping "encoder feedback lost" at random. Twice a week, different jobs, never reproducible on the bench. Eventually I had them video-call me and point the phone at the cable tray. The VFD output cable and the servo encoder cable were running parallel for twelve feet, zip-tied together. The switching noise from the VFD cable was coupling directly into the encoder signals. We moved the cables apart. Problem gone. That diagnostic trip cost $890 and the answer was "cable routing."

For a bafang 48v 500w rear hub motor kit, the grounding step is simpler: route the harness so it can't rub the frame, and seat every connector until the retaining ring clicks. For a bafang m510 motor, check the torque sensor connector—it sits low on the motor assembly, and if it's not fully seated, you get a pedal-assist fault that has nothing to do with the assist. Ask me how I learned to check that one first.

Actually, don't. It was 2023, it was the third time, and it's the reason I'm kinda paranoid about connectors now.

Step 6: No-load test. Every motor. Every time.

On a bafang 48v 500w rear hub motor kit: prop the wheel off the ground and test with the throttle before you tighten the axle nuts. Listen for rough bearings. Confirm the rotation direction.

On a bafang m510 motor: test with the chain off. Check the pedal assist, the brake cutoffs, and the display readout. The display will show you error codes—but only if the protocol matches. If it stays blank, go back to Step 2 before you disassemble anything else.

On a direct drive servo motor: set the speed to 50 RPM and jog. Then 200. Then 500. Watch the drive's current readout. If it's motionless, check the enable signal and the brake before you assume the motor is dead.

Why this is a step at all: I once tested the first three motors in a 40-piece order. They passed. I told my team to ship. The customer found that every motor in the back half of the batch had the same connector pin not seated. The rework was $1,100 plus a one-week delay. All because I skipped the boring part of the job.

Testing every unit is boring. So is paying to rework 40 of them.

The mistakes I keep seeing

None of this is exotic. You'll see these too, because they're the normal ones:

  1. Ordering from a sales page instead of a spec sheet. I did this in 2019. It's still the most expensive mistake on the list.
  2. Matching horsepower numbers without checking full-load current.
  3. Wiring a servo motor by terminal positions instead of phase labels.
  4. Treating cable routing and grounding as optional.
  5. Skipping the no-load test when deadlines get tight.

This checklist works for us because we're a distributor and repair center—we see the failure patterns. If you're a plant electrician working on one machine, your list might be shorter. But the core steps are the same, whether you're wiring a Bafang mid-drive, a hub motor kit, a servo axis, or a 5hp pump with a VFD.

If I had to pick the one thing that would have saved me the most money, it's Step 1. The nameplate. Every expensive mistake I've made traces back to a spec I assumed instead of verified.

I still maintain this list. We've caught 47 potential errors with it in the past 18 months. That's 47 mistakes I didn't get to make twice.

Bafang Motor Engineering Desk

Application engineers focused on ebike motor selection, controller behavior and OEM validation planning.

Previous: Stop Asking Which Bafang Motor Is Best: The Right Answer Depends on Your Scenario Next: I Bought a Cheap "750 Watt Bafang Rear Hub Motor" and It Cost Me 3X – A Bafang Ebike Motor Review

Discuss this article with engineering