Jump to content

MSP430G2 Revision 1.5 and Boost-DRV8711 boosterpack

Recommended Posts

I just got the msp430G2 launchpad with the MSP430G2553 mcu. For stepper motor driver im using the boost-drv8711 boosterpack. I was able to get it running with the tutorial that it came with. However i cant run it with Energia. It might be because of the enable bit (0x0) but i dont know how to set it 1 on energia. Do any of you have any experiance of this setup ? The motor im running is bipolar sanyo denki 103h5208-5240. My code so far is like this (i used the arduino example, board pin layouts in attachment):


#include <Stepper.h>
const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution
// for your motor
// These are the pins for the driver STEP/AIN1 , DIR/AIN2, BIN1,BIN2
Stepper myStepper(stepsPerRevolution, 9, 10, 12, 13);            
void setup() {
  pinMode(9, OUTPUT); // same as above
  pinMode(10, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
  pinMode(6, OUTPUT); // pin for the nSleep which wakes up the board
digitalWrite(6, HIGH);
  // set the speed at 60 rpm:
  // initialize the serial port:
void loop() {
  // step one revolution  in one direction:
  // step one revolution in the other direction:





Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...