Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.
The DRV8836 is basically a tiny chip with 4 integrated half bridge drivers, that can drive up to 1.5A.
The demo project includes a stepper software-module (stepper.c/h)which uses a DDS principle to be able to adjust the motor speed very precise.
For that purpose a Timer is setup to generate an interrupt every 100us. Within the Timer interrupt the "speed value" is added to the phase accumulator. Each time a change in the highest bit is detected, the stepper motor is moved CW or CCW, depending on the direction.
To keep the Software load small, the rotation function is asynchronous, i.e. the motor rotation can be started (parameters: Count of steps/Direction and Speed), and the function returns to program execution, before the rotation is finished.
The rotation can be monitored using a function of the stepper.h module.
The Hardware setup consisted in my case of a MSP430 Launchpad and DRV8836 EVM.
The connections between both boards was as following:
|MSP430 launchpad||DRV8836 EVM|
The project was implemented using Code Composer Studio.
- Unzip and import the project using CCS.
- Adjust the MSP430 type in the Project settings if needed (The project was done for MSP430G2553, but will work with any MSP430 value line controller)
- rebuild and start debugging
The software does default wise rotate the motor a few times left and right with different speeds.
A short demo video can be found on youtube: 
- Kai Gossner (email@example.com)