I have put the driver in full step mode(previously i was making it do half steps)
The code is as follows
#define stepPin 8
#define dirPin 9
#define enablePin 7
#define delayl 15 //corresponds to 20 rpm at full steps
Serial.println("Type any character to start");
I have attached a picture of the setup. The motor is below, encoder is on top. The aluminium shaft that goes through the frame is held by bearings. The rectangular thing in the middle is made of acrylic and is very light.
So coming to the tests,
If i maintain the step-pin at high or low all the time, my power supply reads 0.46Amps at 12 Volts.
Which is the ref pin? I am using the driver without the on-board regulated power supply?VDD is connected to an Arduino digital pin.
At 20 rpm, the motor does not spin. If i give it a nudge it starts spinning. If i increase voltage to 24Volts, the spinning appears to be less jerky..
Thanks in advance