Does your driver work with 3.3V logic signals?
Did you set the current limit on the driver?
Can your power supply provide enough current for the motor?
Is the motor wired correctly?
Is the driver wired correctly?
It is A4988 with additional pcb for easier connections and such. Now I look at spec it says logic 5v! Thank you! Can this be responsible for not working at all?
How did I missed that? I knew esp32 do not have 5v coz it gave me headache in the past. argh!
Yes, I did.
Yes, it's table top lab power supply. Driver accepts 12-24v - do you think it would be better to give it 24?
That I do not know, but with this new information I will have to change nano ESP32 into just nano or uno with 5v on board and check if this wiring works.
Hi,
When you get everything setup for 5V, 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.
Ah, so I will not have to change to other board! It is connected to pin 3.3v on arduino.
Yes, up to 10A it says in the spec.
To 0.02v lower then what I calculated. Stepper is 1A, so my calculations gave me 0.544 and I've set it to 0.52.
Thanks for the link - going through it now.
EDIT:
I thought I will paste here my stepper spec as well:
P/N: SHP-42D0019
COIL: ~3.5VDC/1A/3.5 Ohms/4.4mH
TYPE: 2 Phase Bi-Polar 4 lead
STEP ANGLE: 1.8 deg
Looks like you did everything right.
So maybe a wiring error or you accidentally burned out the driver.
In any case, it's time to see your code.
In the IDE, click on Edit, then click on Copy for Forum, that will copy your code. Then come back to the forum and just do a paste.
I can't tell from you photo if you have it wired correctly but if you follow the information on the pololu web page it should be correct. Also I see nothing wrong in your code.
I will have some time later tonight and I will try to measure.
I have already measured the pins on arduino which are connected to step and dir and those show changes - so that way I knew code is trying to do correct thing.
What should I see while measuring coils while they (should) work?
Also EN(able) on driver - I just left it not connected, but maybe I should have connected it and set it to LOW in the code? Does this matter?
One more question: driver becomes very hot even though stepper does not move - is this expected? I mean, it's not smoking hot, but 'can't really hold it' kind of hot. Can this be hint to wrong wiring?
OK, I'm confused now. While creating this schema above I started wondering if the stepper connection is correct. I mean I'm pretty sure which cables from the stepper are one coil, however I found contradictory information about connection to driver:
Should I treat number or letter as same coil indicator?
Is A1 and A2 one coil? Or A1 and B1 one coil?
After changing my connections to the ones on the diagram it is now more difficult to measure voltage on coils because they are changing. It seems like a good thing, but stepper is still stationary like a stone.