Introduction: Run Brushless Motor by Arduino + L298
This instructable will show how to run DC Brushless motor (taken from HDD) with H-Bridge L298
Step 1: Take Brushless Motor From HDD
Take out DC brushless motor from broken HDD. This motor has 3 output wire. Next step will show how it run
Step 2: How Brushless Motor Run
Brushless motor has rotation part (called rotor) running without any electrical contact. This will allow it can run in high speed
Statistic part (called stator) will make rotating magnetic field to rotate rotor
In phase 1, head of coil green is (+) and coil blue is (-). Sum of magnetic field of those two coil will make total magnetic direction as in picture -> make rotor rotate to this direction and stop here.
Next in phase 2, head of coil red is (+) and coil blue is (-). Again, total magnetic direction as in picture -> make rotor rotate this direction and stop here.
Again in phase 3, 4, 5, 6, it will make rotor rotates 1 circle.
Step 3: Driver for Brushless Motor
Three pairs of resistor is connected to head of coil green, blue, red -> those transistors will be ON/OFF synchronized to make magnetic field rotating (as in above step explaination)
Step 4: Use H-bridge L298 for Driver
Half of H-bridge is used as 1 pair of transistor.
See inside L298 IC, it is possible to flow current from this H-bridge to another H-bridge
Step 5: Make a Circuit
Connect H-bridge to motor and Arduino (Pro Mini) as in picture
Here is my result connection
Step 6: Code Works
The code will implement the pattern as in picture, which will apply power to each coil as in step 2
Entire code for Arduino is here (Google share)

Participated in the
Arduino Contest 2017
2 Comments
Question 3 years ago
Hey, nice tutorial, I'm trying to implement something similar
but I'm missing something, since the L298 has 4 outs, can't we use just
one L298?
Answer 2 years ago
You will find the answer in this instructable https://www.instructables.com/id/Arduino-CDROM-BLDC-Motor-Driver-Enhanced-Performan/