Tutorial for VNH2SP30 Monster Motor Module (Single Channel)

by mybotic in Circuits > Arduino

24608 Views, 23 Favorites, 0 Comments

Tutorial for VNH2SP30 Monster Motor Module (Single Channel)

Capture.JPG

Description

VNH2SP30 is a full bridge motor driver intended for a wide range of automotive applications. The device incorporates a dual monolithic high side driver and two low side switches. The high side driver switch is designed using the STMicroelectronic’s well known and proven proprietary VIPower M0 technology which permits efficient integration on the same die of a true Power MOSFET with an intelligent signal/protection circuitary. The VIN and motor out are pitched for 5mm screw terminals, making it easy to connect larger gauge wires. INA and INB control the direction of each motor, and the PWM pins turns the motors on or off. For the VNH2SP30, the current sense (CS) pins will output approximately 0.13 volts per amp of output current.

Specification:

  • Voltage Range : 5.5V - 16V
  • Maximum Current rating : 30A
  • Practical Continuous Current: 14 A
  • Current sense output proportional to motor current
  • MOSFET on-resistance: 19 mΩ (per leg)
  • Maximum PWM frequency: 20 kHz
  • Thermal Shutdown
  • Undervoltage and Overvoltage shutdown

Material Preparation

B68286E6149EE692CC9D63C89A431656C6D28B56CA99CAD2CF0366159BD2CD56CB33D226E2164316C6CB9A73CDB436C683F5CA-700x700-product_popup.jpg
2.JPG
1.JPG
3.JPG
4.JPG

For this tutorial, we required these items:

1. VNH2SP30 Monster Motor Module (Single Channel)

2. Arduino Uno Board and USB

3. Plastic Gear Motor

4. Li-Ion Rechargable Battery 7.4V 1200mAh

5. 2x Wire with Crocodile End Clip

Hardware Connection

connection.jpg

Connect the VNH2SP30 Monster Motor Module (Single Channel) pin to Arduino Uno pin.

5V > 5V

GND > GND

CS > A2

INA > D7

INB > D8

PMW > D5

Sample Source Code

This is a sample source code for the circuit, you may download, open and and upload it into your Arduino Uno Board. Make sure to go Tools and select the correct board and port.

Serial Monitor

6.JPG

After you have finished compiling the sample source code into your Arduino Uno board, go to Tools > Serial Monitor and you will get a serial monitor as shown in the picture above.

Results

5.JPG
7.JPG

This is the result of this tutorial :

i. when user enter number '2', gear motor start to rotate forward and serial monitor will print forward.

ii. when user enter '3', gear motor start to reverse and serial monitor will print reverse.

iii. when user enter '+', gear motor's speed increase by 10 and serial monitor will print the motor's speed. However, gear motor maximum speed is 255, thus, when user enter '++' more it will still print 255 and never more than 255 (as shown in the pic).

iv. when user enter '-', gear motor's speed decrease by 10 and serial monitor will print the motor's speed. However, gear motor minimum speed is 0, thus, when user enter '--' more it will still print 0 and never less than 0 (as shown in the pic).

iv. when user enter '1', gear motor stop from rotating and serial monitor will print stop.

Video

VNH2SP30 Monster Motor Module(Single Channel)

This video demonstration show how the gear motor function according to the sample source code.