Skip to main content

Remote Flying Fish Project Part 3: Motor Testing

And now, it is time to start with the motor part.

No matter which model of motor you decided to purchase, make sure it works under-voltage ~3.3V to 10V.

In the project, Texas Instruments DRV8833CPWP Motor Driver IC is being selected as the motor driver.

And luckily, there is a development kit (184-0471) of this driver available. As a result, we can do testing more efficiently.

Or if you believe in the redundancy of the kit, you might only test the functionality of the motors.


Here are the objectives of this chapter:

  1. Examine the functionality of the motors
  2. Try controlling motor speed through Arduino

Component requirements:

  1. Either one:
    1. two DC supply
    2. 5V USB plug with > 1A rated current, plus DC-DC converter
  2. Male-to-female Dupont lines
  3. DRV8833 Development Kit
  4. Coreless motor 8520
  5. Arduino Nano

Procedures for examining the functionality of the motors

!! Be careful, the temperature of the coreless
motor will increase with time !!

  1. Hold your motor tight
  2. Connect the two-terminal inputs of the motor to the power supply.
  3. Power on
  4. Reverse the +- connection and try again.

By then, you are expected to see the motor revolving in both clockwise and anti-clockwise state.

Procedures for controlling motor speed through Arduino:

  1. Connect the motor and the development kit as shown in the diagram

**Connect VCC -> 5V (1st power supply), GND -> ground,  DIR -> D5(Arduino), EN -> D9(Arduino), VM -> 3.7V (2nd power supply), GND -> ground8437-wrgeu-9a2kd_067c974fcdc46aa89657455c21dc887bd9688b8d.pngpmod_wired1_481a0951b8956a8b58ceeeeb4c71c73399dc91c2.png

  1. Burn the following code into your Arduino
    void setup(){
      analogWrite(9,255);   // 5V
      analogWrite(10,204);  // 4V
      analogWrite(11,153);  // 3V
    void loop(){}
  2. Hold your motor tight
  3. Power on everything, change the EN pin from D9 to D11 to see the change in motor speed.

P.S. Be careful of the rising temperature over a period of time at the surface of the motors.

In the next part, we will talk about Bluetooth testing.

You can download the pdf version of this chapter in the Download section below.

 Parts in this series

lokit has not written a bio yet…
DesignSpark Electrical Logolinkedin