Hey Guys,
so I have tried a number of different COde now but I have no clue on where to start or how to get into this whole "stepper Motor" Topic.
I have a Nanotec LGA561S20-B-UQKE-019 Captive Linearaktuator with the following Datashield:
For now I just want to have a minimal Program to get it to go up and down but all I ever get is buzzing from the Motor and im Afraid it will catch on fire.
I am using a 2.5A 24VDC Power Supply connected to VIN/GND and I have the Shield wired up the following way:
A+ : Pin 1
A- : Pin 3
B+ : Pin 4
B- : Pin 6
The following Code for example will only disable the B+ (atleast the led doesnt light up), the Rest light up:
int directionPinA = 12;
int pwmPinA = 3;
int brakePinA = 9;
int directionPinB = 13;
int pwmPinB = 11;
int brakePinB = 8;
void setup() {
//define pins
pinMode(directionPinA, OUTPUT);
pinMode(pwmPinA, OUTPUT);
pinMode(brakePinA, OUTPUT);
pinMode(directionPinB, OUTPUT);
pinMode(pwmPinB, OUTPUT);
pinMode(brakePinB, OUTPUT);
analogWrite(pwmPinA, 100);
analogWrite(pwmPinB, 100);
}
void loop() {
//digitalWrite(brakePinA, HIGH);
//digitalWrite(brakePinB, HIGH);
//digitalWrite(brakePinA, LOW);
//digitalWrite(brakePinB, HIGH);
digitalWrite(brakePinA, LOW);
digitalWrite(brakePinB, LOW);
//digitalWrite(brakePinA, HIGH);
//digitalWrite(brakePinB, LOW);
}
If I uncomment the same thing happens but all leds light up.
can someone please help?
Thank you!