Hi,
I am working on a stepper motor project. The stepper motor I am using is here. Also using a stepper motor easy driver here.
Attached is my code for the Arduino Uno.
I ran into a problem where there was a high pitched noise, and the motor wouldn't turn (apparently common). I fixed the noise issue by adding a delay in the main loop after calling the moveMotor function.
However, now the motor doesn't move and has a very quiet ticking sound. It is set to be full-step, not micro step mode at the moment.
There seem to be "high" transient currents of 330 mA drawn from my power supply, but then the value settles at the driver drawing about 50-60 mA. My supply is set to 10V and 2A as specified by the motor and motor driver (6-30V, 2A).
While writing this I tried testing it again, and my driver heated up quite a bit and the power supply drew more current (didn't catch the value on the display). I think it was the FET on the driver heating up? Anyway now I cannot program my Arduino, getting the error message:
"avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude: ser_drain(): read error: Device not configured
avrdude: ser_drain(): read error: Device not configured"
I appreciate any help with either of these issues. Thanks.
motorControlFW.ino (2.67 KB)
motorControlFW.h (878 Bytes)