153Views0Replies

Author Options:

Arduino or Teensy coil winder - any code already out there? Answered

I am in the process of deciding on a normal 8bit Arduino platform or a Teensy for my coil winder project.
A found some interesting projects online, some with the code available too.
But I was wondering if someone already implemented more than just winding a coil in such a project?

At Krux.org is a nice winder based on a normal Arduino while the Alba winder uses a Teensy already to gain more precision and speed I guess.
Misusing some printer or CNC code to be able to generate coils by G-code sounded nice at first but turned out to be more complex than actually required.
My goal is actually rather simple despite the size and all, so let me try to explain what I want to be able to do:

Have a modular winder setup so basically any winding task can be done with just two stepper motors.
One for the spin, one to position the wire.
Additions like limit switches and external counters are nice but usually not required for such a task if the the code is properly done.
As a basic winder like all the examples out there it should be possible to just enter the wire diamter and number of turns and then push a button to wait for the finnished coil.
In theory things like pitch or spacing can be calculated externally and then entered as a fictive wire diameter but of course this would be not user friendly enough ;)
For special RF coils it is often required to keep an even turn spacing as well as creating a coil with many layers.
So far I have been unable to find any usable code for this purpose that does not require glue, guides or at least waxing the wire.
Although this seems to be simple enough, when adding things like a display and counters it soon starts to get messy with timings and steps.

Is there anything out there that works properly on a 8bit processor with reasonable speed?
Originally I wanted to use an OLED with touchscreen.
This turned out to be too much for the timing on a Mega.
Without messing around with timers and interrupts it seem a 20x4 LCD is the only option.
Even then the refresh must be in sync with the tart of a new turn as otherwise the motors miss some steps here and there.
These things run a 3D printer or little laser cutter with ease, so I am definately doing something wong with my approach here LOL

Discussions