Luciano Veneziano (Veleno) <luciano....@gmail.com>: Jan 15 09:30AM -0800
*Hello.*
*I would like to use AccelStepper to build a coil winder. I just want to
know if it is possible to make a stepper motor complete N turns, counting
them without stopping, and with the other stepper motor be able to move
back and forth to position the wire correctly. Thank you, unfortunately I
am elderly and I am just starting to learn C.*
Another thing that happens is that the engines stall; I haven't understood
why.
*Thanks again.*
je...@siddall.name <je...@siddall.name>: Jan 15 09:46AM -0800
If you don't want to start programming from scratch (trust me, there is a
significant learning curve!) you could just use the one I designed over
here:
https://www.talkbass.com/threads/custom-fully-automated-pickup-winder-build.1451957/
Jeff
On Thursday, January 15, 2026 at 12:30:57 PM UTC-5 luciano....@gmail.com
wrote:
Andris Cuksts <cuk...@gmail.com>: Jan 14 01:36PM -0800
Geoff,
made 2 alterations to your code before running the test, I change the
pin numbers from 2 and 3 to 8 and 9 so I wouldn't have to do any wiring
changes. I set the driver dip switches as documented on the driver to
3200 steps. Ran the sketch and the bridge only rotated half as far as
expected. I changed the driver dip switches as documented on the driver
to 1600. Ran the sketch again and on the last step it rotated the full 360
and back.
I set a piece of flex track opposite of bridge track to check alignment
before and after the test. The alignment was slightly off after doing the
second test. I have attached pictures of before and after the test.
The following are the results of the second test.
⸮ HA⸮X⸮⸮FF⸮=== AccelStepper Bounce Test ===
Starting position: 0
--- Bounce 1: Track 1 ---
Target: 80 | Steps taken: 80 | Current position: 80
Target: 0 | Steps taken: 80 | Current position: 0
--- Bounce 2: Track 10 ---
Target: 800 | Steps taken: 800 | Current position: 800
Target: 0 | Steps taken: 800 | Current position: 0
--- Bounce 3: Track 19 ---
Target: 1520 | Steps taken: 1520 | Current position: 1520
Target: 0 | Steps taken: 1520 | Current position: 0
--- Bounce 4: Track 31 ---
Target: 2480 | Steps taken: 2480 | Current position: 2480
Target: 0 | Steps taken: 2480 | Current position: 0
--- Bounce 5: Track 40 ---
Target: 3200 | Steps taken: 3200 | Current position: 3200
Target: 0 | Steps taken: 3200 | Current position: 0
========== RESULTS ==========
Track 1 Total Steps: 160
Track 10 Total Steps: 1600
Track 19 Total Steps: 3040
Track 31 Total Steps: 4960
Track 40 Total Steps: 6400
=============================
Test Complete!
We did many more tests and altered your program to do 4 full rotations to
see if alignment was off after the 4 rotations. It was.
I'll do more testing in a more disciplined way using your sketch going with
6400 micro steps to see if alignment results are better.
If in the end we suspect the driver is a clone and has less than quality
parts (and dip switch documentation), I would have no problem buying
another driver but I will need help to find a vendor that will source a
quality driver.
Regards,
Andris
gjgsm...@gmail.com <gjgsm...@gmail.com>: Jan 14 03:39PM -0800
Andris, if I’m reading your reply correctly, the serial monitor output is
indicating 3200 steps/rev even though you set the driver to 1600?
The pics show a mis-alignment of ~0.5mm after one (3200 step) revolution?
Is the mis-alignment cumulative after four revs?
Circle Calcs
Dia - mm 305
Circumference 958.2
steps/rev 800
mm/step 1.20
steps/rev 3200
mm/step 0.30
steps/rev 6400
mm/step 0.15
Possibly 1 or 2 step ‘miss step’ or ‘add step’ depending on the direction?
Test a 360 deg rev at a lower step resolution say 800 steps/rev and if it’s
a ‘step’ issue then the mis-alignment should be proportionately bigger
(~1.2mm).
If you end up getting another driver, this is where I get mine:
https://www.omc-stepperonline.com/
Let us know how you go with your testing.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to accelstepper...@googlegroups.com.