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

10865 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

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
d578339debbebef4c30d074fbdc890f91478078105-lg.jpg
d7672c505546fde9b4a9d18c00eef2ce1522301040-lg.jpg
028f7f1a68a433c653e115e499eeb60b1452239402-lg.jpg
05acf1f254708b771bff7de6d901d68d1444190110-lg.jpg
825e129798d50108de9b0c88b3ba7d9f1472202778-lg.jpg
945643a1eeb58c2c439c65eeb7836f2a1542255159-lg.jpg
3dd6ebe6e8e818a304076c31787ac6921533799962-lg.jpg

In this tutorial, (please refer the image above) the components needed are as follow:

  1. Battery 2-3 cell LiPo
  2. Arduino UNO
  3. Brushless DC Motor
  4. Male to Male Jumper cable
  5. BreadBoard
  6. HW30A Brushless Motor Speed Controller
  7. USB 2.0 cable type A/B
  8. Variable Resistor 10k ohm
  9. Crocodile Clip

Hardware Installation

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

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
How to control drone quadcopter brushless DC Motor