cocktailyogi / EggDuino

Arduino Firmware for Spherebot / Eggbot integration in Inkscape
MIT License
91 stars 138 forks source link

Motors only turn in one direction #11

Open LinusDillon opened 8 years ago

LinusDillon commented 8 years ago

Had an issue where the motors would always spin in the one direction, regardless of sign of the move parameter passed. To make it work I had to remove the "abs" function in the speed calculations in "prepareMove".

Am using an AdaFruit motor shield, and amended code to initialise the AccelSteper library by passing in the step forward and step back functions from the Adafruit library.

Am still having an issue with the steps being too large, even though I am in micro step mode (can get smooth movement if I manually sent command).

ememem13 commented 7 years ago

For me the situation is similar. The engine is the pen counterclockwise willing to rotate.

ronnylulu commented 7 years ago

Hi,

I also have the same problem. The pen only moves in one direction. How can i fix this?

ememem13 commented 7 years ago

One of the A4988 was defective. :-((

druckgott commented 6 years ago

I have the same problem andalso one of the A4988 was defect