DesignSpark Electrical Logolinkedin
Menu Search
Ask a Question

30 Sep 2019, 9:42

Part 3: DIY Series of Remote Flying Fish - 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.

Objectives:

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 -> ground

  1. Burn the following code into your Arduino
    void setup(){
      digitalWrite(5,HIGH);
      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.

Other articles in this series:

lokit has not written a bio yet…

30 Sep 2019, 9:42

Comments

October 3, 2019 07:28

  • Moderated

Hi #DMc2977 - My colleague has noticed this in the past. When she logs in from America sometimes the product links are not working (I think because the RS and Allied offer are slightly different), but she now checks on RS Export if she needs to view the products. I just checked and it's there https://export.rsdelivers.com/product/digilent/410-259/development-kit-pmoddhb1-module-for-use-with/1840471
Hope this helps.

0 Votes

October 3, 2019 07:14

Link to driver development kit not working

0 Votes