This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8838: How to generate biphasic current pulses

Part Number: DRV8838

Hello, 

I am in dire need of help!  

I am trying to use DRV8838 motor drive to generate the following biphasic current pulse. Arduino pwm can provide EN and PH input to the DRV8838. 

Note that is a "CURRENT pulse" and not a voltage pulse because exactly amount of current input is important (.e.g in case of varying load the current need to be controlled) 

How do I keep the current level constant like the following time series of current pulses?  Can someone suggest a part that I can hookup to the input terminal of the motor drive?

My initial idea as to hook up a current sink to Vm input pin and synchronize the on/off timing of the current sink with the EN and PH but I am not sure how to connect Vm to current sink. 

Thank you very much for your helpful advice. 

Best, 

WJ

#Arduino