I am using a usongshine tb6600 motor driver
Toggles set for 200 steps
4 amps
Powered from a 19v compter supply plenty of power
It is wired
vcc + from power supply
gnd – from power supply but then jumpers to pul -, dir +, dir -, ena+, ena-, and connected to arduino ground
dir+ is connected to pin 7 of arduin
note I grounded direction as part of debug, I really do not care what direction it goes.
a+ is black
a- is green
b+ is red
b- is blue
I try running this program to debug the issue
same result two differnt steppers
const int stepPin = 5;
const int dirPin = 7;
void setup() {
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
digitalWrite(dirPin, HIGH); // try LOW if needed
}
void loop() {
digitalWrite(stepPin, HIGH);
delayMicroseconds(500);
digitalWrite(stepPin, LOW);
delayMicroseconds(500);
}type or paste code here
I did check the stepper with an ohm meter, black to green is 1.8 ohm red to blue is same. I also tried switching green abd black, but no change. if it were working i expected direction to change.
As an experiment, read the voltage from a potentiometer voltage divider.
Use this value to set delay(. . .), adjust potentiometer for different delay times.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Can you post some images of your project?
So we can see your component layout.
@jw_r Those "LastMinute Engineers" pages are terrible.
Who would recommend a dinosaur L293 brushed DC motor driver for a Nema 17 stepper motor without pointing out that you can only sort-off do that for high impedance motors, which most modern steppers are not. Besides that, Nema 17 tells us only the size of the mounting plate, nothing else.
Leo..