How do i connect a M24 Multipin Motor Plug Wire that is coming from a brushless motor to a raspberry Pi , I know i need to use an ESC however the wires attached to my brushless motor is a multipin motor Something like this

  • your question has nothing to do with Raspberry Pi ...... the only suggestion that I can make is for you to build an adapter
    – jsotola
    May 21 '19 at 21:56


How to connect a 24 pin BLDC motor plug to Rpi?


Well, I have been playing with various kinds of BLDC motors, mostly 24V to 30V. BLDC motors usually have 3 to 5 connecting wires, and many more with speed encoders.

There is no standard colour codes for the red, black, yellow, white, blue wires, so you need to very carefully read the datasheet, to make sure you don't connect the blue wire wrongly to the red wire etc, and white smoke comes out.

Your 24 pin plug should use only 3 to 5 wires to connect to your BLDC motor. You can check which motor'scolour wire connects to which of the 24 pins.

Of course you can DIY your own plugs to replace the industrial grade heavy duty plug. I am playing with hobbyist grade motor for RC toys, so I only use Tamiya grade connectors, and I pretty sure they are OK.

For smaller toys motors I just use 0.254" DuPont connectors for Rpi and so far so good.

Warning: BUT if your motor is huge, then perhaps you can give me the advert/datasheet web link of your motor, just to make sure, or I might give you a severe warning to stop playing with fire, ...

You might like to read the following BLDC motor with AB Encoder for reference.

AliExpress CHR-GM25-370-ABHL BLDC Motor with Encoder 6/12/24VDC - US$10

bldc motor 1

I once used a similar BLDC motor and found it powerful. You might like to compare its wiring with yours.

bldc motor 2


Driving an ESC/Brushless-Motor Using Raspberry Pi - AGTx, Instructable Circuits 2018

Brushless DC Electric Motor -Wikipedia

AliExpress Brushless DC motor speed controller 12V 24V 36V 48V with Hall sensor 10 / 50DPW15BL bldc motor driver US$36

BLDC Motor Driver BLD-300B DC18-50V 15A - ¥160

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.