Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 21951

DRV8242S-Q1EVM: How to stop motor using external GPIO commands?

$
0
0
Part Number: DRV8242S-Q1EVM
Other Parts Discussed in Thread: MSPM0G3507

Tool/software:

I'm looking to validate a motor control algorithm programmed on an MSPM0G3507 and I'm using a DRV8242 EVM to test it on a motor. I've taken the CSA signal from the DRV and connected it to the ADC on the M0, which takes the signal and converts it into a ripple count for rotor position estimation. The idea is that once the number of ripples reaches a certain number, say 100 or 1000, the motor would be commanded to stop. The problem is, the number of ripples is a variable calculated and stored only on the M0.

Does the DRV8242 allow for some kind of general-purpose input functionality, such that when a certain pin is set low or high it could command the motor to stop? I figure I could hardwire one of the GPIO outputs on the M0 and set it high once the ripple count has surpassed a certain value. My question is, could I connect this GPIO output to a point on the DRV to get the motor to stop when the command is received?

Let me know if there are any questions about my test setup here.


Viewing all articles
Browse latest Browse all 21951


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>