Skip to main content
DBaum.3
Associate
July 21, 2022
Question

DC-Motor Control Library for STM32 (VNH5019)

  • July 21, 2022
  • 2 replies
  • 978 views

Hello,

I would like to drive a simple DC motor with a STM32F446RE.

I use the VNH5019 as motor driver.

Everything works so far.

My only question now would be, is there a ready-to-use library or perhaps a way to embed the component into the software via STM32CubeMX?

Thank you very much

This topic has been closed for replies.

2 replies

Andrew Neil
Super User
July 22, 2022

What, exactly, do you mean by "drive" here?

  • simple on/off?
  • speed control?
  • other ... ?

Have you looked on the Product Page for the VNH5019:

0693W00000QLsdSQAT.png 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
DBaum.3
DBaum.3Author
Associate
July 22, 2022

Hello Andrew, first of all thanks for your answer.

To describe it in more detail:

There is an EVAL board (STEVAL-VNH5019A) for the driver, which can be operated/tested with a Windows program.

The program offers various functions:

- Basic motor control (direction, start/stop, brake)

- PWM control

- Diagnostics

- ...

(see image)

I would now like to know if there is appropriate code or a library somewhere to do all of this on my processor

0693W00000QLtIQQA1.png