Search the Community
Showing results for tags 'motor'.
-
Hi there, my current project is to build a controller for a sensorless BLDC motor using a MSP430G2553. I want to realize trapezoidal control with Back-EMF/zero-crossing detection. I plan to detect zero-crossing with the Comparator(CA2/3/4 vs. CA1) and generate PWM using Timer1. Timer0 will be used for things like 30 BLMC_.zip
-
I'm trying to read two encoders to know the angular position using interrupts but something is wrong, the code compiles but in serial just prints "0", what can i change? volatile long Left_Encoder_Ticks = 0; volatile bool LeftEncoderBSet; #define Right_Encoder_PinA PC_5 #define Right_Encoder_PinB PC_6 volatile long Right_Encoder_Ticks = 0; volatile bool RightEncoderBSet; void setup() { Serial.begin(9600); SetupEncoders(); } void SetupEncoders() { pinMode(Left_Encoder_PinA, INPUT_PULLUP); pinMode(Left_Encoder_PinB, INPUT_PULLUP); a
- 5 replies
-
- interrupts
- tm4c123gxl
-
(and 1 more)
Tagged with:
-
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
-
- energia
- boost-drv8711
-
(and 4 more)
Tagged with:
-
Hey everyone! Here is a Stepper Motor BoosterPack I have been working on that utilizes the DRV8825. I just ordered the boards today and will be working on some code samples while I wait on them. The DRV8825 can drive one bipolar stepper motor or two DC motors. It has a 8.2-V to 45-V supply range with 2.5-A peak at 24-V. I tried to design for the full operating range of the chip while maintaining the BoosterPack size guidelines. http://www.ti.com/product/drv8825 Let me know what you think! I am working on a BLDC Motor BoosterPack as well that I will post later. Motor_Driver_DRV8
- 6 replies
-
- motor
- boosterpack
-
(and 2 more)
Tagged with:
-
When programming recently, I found that I had some trouble controlling a motor at the same time as several servo. The servos would go all crazy, and the motor wouldn't work. I guessed that this was because the timers were interfering, or not enough timers, or similar. Digging into the servo library, and the analogWrite function, I found that they're both trying to use Timer A. Thus, I modified the analogWrite function. In file energia/hardware/msp430/cores/msp430/wiring_analog.c , I commented out lines 110 to 123 (inclusive). Below is the code commented out. case T0A1: