Reply To: Stepper Motor Configuration w/ Driver That is not EasyDriver

About Forums Forum Stepper Motor Configuration w/ Driver That is not EasyDriver Reply To: Stepper Motor Configuration w/ Driver That is not EasyDriver

#896
blzalewski
Participant

Thanks Soundanalogous.

Well, right now I plan to test a L293 with my motor… the problem might be because the driver I’m using has a minimum power supply voltage of 8V and my motor is rated for 3V. I started another thread on the Arduino forum too: http://forum.arduino.cc/index.php?topic=169583.0

 

I have changed all the variables and whatnot… I’ve even looked through all the code on FirmataStepper.cpp/FirmattaStepper.h/AdvancedFirmata… and went through the sample code in the .zip link on the .h/.cpp files. I just can’t figure out why it’s wrong.

 

I think it’s probably a timing issue because I know for a fact that I do have to change the 1 microsecond delay used for the EasyDriver to 2 microseconds as per the the spec sheet on the Pololu 8825 driver. I attached screenshots of the timing requirements for both the pololu driver and easydriver.

After I change the delay to 2, the driver works fine at constant speed (no accel/decel). I ran it at 477.5RPM speed and went 477.5 revolutions (400 * 477.5). I found the time by attaching this bit of javascript to record the start time under the start button action for the driver:

start = Date.now();

Then I attached the following bit of code to onStepperComplete():

end = Date.now();

alert(end-start)

Based on my calculations, it took the driver 2.17 minutes to do what should have been accomplished in 1 minute. The stepper didn’t miss any steps.

To make it easier for this “debug” I have attached the timing sections for both the easy driver and the pololu driver.

http://thebestsites.com/wp-content/uploads/drv8825timing.jpg

http://thebestsites.com/wp-content/uploads/easydrivertiming.jpg

 

Any ideas on how to proceed? I’d like to add the additional configuration parameters but I’m not sure what a pull request is?