How to Control Drone Quadcopter Brushless DC Motor (3 Wires Type) by Using HW30A Motor Speed Controller and Arduino UNO
by mybotic in Circuits > Electronics
11242 Views, 7 Favorites, 0 Comments
How to Control Drone Quadcopter Brushless DC Motor (3 Wires Type) by Using HW30A Motor Speed Controller and Arduino UNO
![945643a1eeb58c2c439c65eeb7836f2a1542255159-lg.jpg](/proxy/?url=https://content.instructables.com/F6N/7GFI/JQWSX170/F6N7GFIJQWSX170.jpg&filename=945643a1eeb58c2c439c65eeb7836f2a1542255159-lg.jpg)
Description:
The HW30A Motor Speed Controller can be used with 4-10 NiMH/NiCd or 2-3 cell LiPo batteries. The BEC is functional with up to 3 LiPo cells. It can be used to control speed of Brushless DC motor (3 wires) with maximum up to 12Vdc.
Specification:
- Max Continuos Current : 30A on 3 Cells
- Max Input Voltage: 12V
- BEC : 2A
- Input Voltage : 2-3 Lithium Polymer or 4-10 NiCd/NiMH
- Resistance: 0.0050 ohm
- FETs: 12 Lithium
- Cut OFF Voltage: 3.0V / cell
- Size: 45 x 24 x 9 mm
- Protection: 110 CPWM: 8KHzMax Rotation Speed 20,000 RPM for 14 pole motor
List of Components
![84300eac403b655c6df8712c7721f8d71507261406-lg.jpg](/proxy/?url=https://content.instructables.com/FIQ/D91T/JQWSX1ZD/FIQD91TJQWSX1ZD.jpg&filename=84300eac403b655c6df8712c7721f8d71507261406-lg.jpg)
![d578339debbebef4c30d074fbdc890f91478078105-lg.jpg](/proxy/?url=https://content.instructables.com/FG2/Z435/JQWSX231/FG2Z435JQWSX231.jpg&filename=d578339debbebef4c30d074fbdc890f91478078105-lg.jpg)
![d7672c505546fde9b4a9d18c00eef2ce1522301040-lg.jpg](/proxy/?url=https://content.instructables.com/F0I/A15B/JQWSX218/F0IA15BJQWSX218.jpg&filename=d7672c505546fde9b4a9d18c00eef2ce1522301040-lg.jpg)
![028f7f1a68a433c653e115e499eeb60b1452239402-lg.jpg](/proxy/?url=https://content.instructables.com/FB6/RPT5/JQWSX2AH/FB6RPT5JQWSX2AH.jpg&filename=028f7f1a68a433c653e115e499eeb60b1452239402-lg.jpg)
![05acf1f254708b771bff7de6d901d68d1444190110-lg.jpg](/proxy/?url=https://content.instructables.com/FCM/SUSL/JQWSX1XI/FCMSUSLJQWSX1XI.jpg&filename=05acf1f254708b771bff7de6d901d68d1444190110-lg.jpg)
![825e129798d50108de9b0c88b3ba7d9f1472202778-lg.jpg](/proxy/?url=https://content.instructables.com/FY7/87GL/JQWSX1XJ/FY787GLJQWSX1XJ.jpg&filename=825e129798d50108de9b0c88b3ba7d9f1472202778-lg.jpg)
![945643a1eeb58c2c439c65eeb7836f2a1542255159-lg.jpg](/proxy/?url=https://content.instructables.com/FA8/2JAB/JQWSX20B/FA82JABJQWSX20B.jpg&filename=945643a1eeb58c2c439c65eeb7836f2a1542255159-lg.jpg)
![3dd6ebe6e8e818a304076c31787ac6921533799962-lg.jpg](/proxy/?url=https://content.instructables.com/F4I/39OB/JQWSX2L1/F4I39OBJQWSX2L1.jpg&filename=3dd6ebe6e8e818a304076c31787ac6921533799962-lg.jpg)
In this tutorial, (please refer the image above) the components needed are as follow:
- Battery 2-3 cell LiPo
- Arduino UNO
- Brushless DC Motor
- Male to Male Jumper cable
- BreadBoard
- HW30A Brushless Motor Speed Controller
- USB 2.0 cable type A/B
- Variable Resistor 10k ohm
- Crocodile Clip
Hardware Installation
![F4N06RXJQKTZ4WK.LARGE.jpg](/proxy/?url=https://content.instructables.com/FX2/0TZ6/JQWT0GQA/FX20TZ6JQWT0GQA.jpg&filename=F4N06RXJQKTZ4WK.LARGE.jpg)
Refer the diagram above for your reference.
- Connect the battery 2-3 LiPo to HW30A Motor Speed Controller (ESC).
- Refer the diagram, connect together the HW30A Motor Speed Controller (ESC) with Arduino UNO
- Last HW30A pin output connect to Brushless DC motor
Source Code
Download this sample source code and open it in your Arduino IDE
Downloads
Uploading
![Board Manager.png](/proxy/?url=https://content.instructables.com/FLT/DETU/JQWSX91S/FLTDETUJQWSX91S.png&filename=Board Manager.png)
After open the code in Arduino IDE, go to the [Tools] --> [Boards Manager] --> select [Arduino/Genuino UNO] as we using Arduino UNO in this tutorial.
Then connecting the Arduino UNO to PC, after that select the correct port (go to [Tools] --> [Port] --> Select correct port for Arduino UNO).
Next, compile and upload the code into your Arduino UNO.
Result
![20190115_143728.jpg](/proxy/?url=https://content.instructables.com/FS1/L9CZ/JQWSWPY1/FS1L9CZJQWSWPY1.jpg&filename=20190115_143728.jpg)
![How to control drone quadcopter brushless DC Motor](/proxy/?url=https://content.instructables.com/FGA/OI22/JQWSZVWE/FGAOI22JQWSZVWE.jpg&filename=How to control drone quadcopter brushless DC Motor)