Electronic Dividing Head using the Arduino

Home Model Engine Machinist Forum

Help Support Home Model Engine Machinist Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
View attachment 105132
I just finished 're-building' my controller. I had built it using a non I2c 2004' but, several months ago I tore it apart to use the mega in another project. About a month ago I decided to re-build it, designing a new case as I went. I decided to order a I2c 2004 lcd, and to shipped from California, it took 4 weeks to get here... I had previously added a 9 pin sub D connector and longer leads to the stepper,. This time I took the time to set up modular wiring as much as possible. I still need to draw up a schematic diagram. Short version, I also used a TB6560 driver board. My connections were as in the attached picture.
Hope this helps

Forgot to add, I tested the same setup with a UNO, only difference was the I2C pins on the UNO were in a different location. All the rest were the same pin #'s. No changes to the code provided.
 
ok, everything seems to be working fine except the reverse! So this is my setup:-
Arduino uno
Sainsmart lcd display shield
TB 6560 stepper motor controller.
Anyone with same setup show me how they have it connected or have any ideas.

If you cannot change direction, you have a problem with the DIR signal. Either its not connected or connected to the wrong pin.
 
ok, everything seems to be working fine except the reverse! So this is my setup:-
Arduino uno
Sainsmart lcd display shield
TB 6560 stepper motor controller.
Anyone with same setup show me how they have it connected or have any ideas.

First hookup acted as you described - No reverse -> I had the hookup wrong, even though it looks like a straight plug to plug shield, it's not . . Moved the step and dir to the per shield correct pin call out and all worked fine . . .

DSCF0309.JPG
 
View attachment 105132
though shipped from California, it took 4 weeks to get here..s

lol this pisses me off, a bunch of the ebay sellers i have been buying from are saying us stock, providing a tracking number, waiting for the item to get to them from china then shipping it out. actually had one that came straight from china the other day....
 
ok, everything seems to be working fine except the reverse! So this is my setup:-
Arduino uno
Sainsmart lcd display shield
TB 6560 stepper motor controller.
Anyone with same setup show me how they have it connected or have any ideas.

DWK, did you get it working?
 
so my new 6600 got here, its not a 6600 tho, at least it truly shipped from california.....
i figured out that having the enable ground wire connected at all was stopping it from rotating on the B button, but now that i fixed that it still only moves one direction.
i have ordered all of the parts to build a 2nd controller sense its cheap.
i compared the script im using with the original 2016 script in context and there is nothing i see that would cause this there.
not looking for help or advice right now, just giving an update.
ill post the status again when i get the 2nd controller built for testing.
 
Finally got my setup to go in both directions, however the motor after doing a revolution in either direction starts to slowly creep a little then becomes faster. Only way to stop it is by pressing the reset button.
Seems to be a possible problem with either the lcd shield or the motor driver. Has anyone else encountered this problem?
 
have not had that happen to me, my lcd is not a shield tho, i decided to go with the separate lcd and keypad for more inputs and compartmentalized problems.
did you try the code for simple forward and back that fooser posted for me on page 15 of this thread ?
it does not use any of the lcd or touch pad
stuff and lets you test the driver and motor with the board only.
 
thanks Scott, that will definitely help a lotabit, i wont have to count arrows down to 276 again :p but i still want those good old compare script and search features :p
There are many programs that enable you to compare different versions of code (text).
I use winmerge from http://winmerge.org/
 
at
is that an all in one with arduino also ? i have context thats what i was used to using 15 years ago, i was just hoping to use a single program for all of it
No, just a simple standalone program. Quite powerful though.
 
have not had that happen to me, my lcd is not a shield tho, i decided to go with the separate lcd and keypad for more inputs and compartmentalized problems.
did you try the code for simple forward and back that fooser posted for me on page 15 of this thread ?
it does not use any of the lcd or touch pad
stuff and lets you test the driver and motor with the board only.
Although have tried that in the past with no problems I will try again just to be sure.
 
Here's some pictures of the dividing head. I've hooked it up to the arduino and it works. More than enough torque and holding power using the NEMA 23 motor. The ratio of the timing pulleys is 12 : 60 or 1:5.

6577e64c.jpg


de8c2faf.jpg


fbddb469.jpg


The spindle is an ER20 with a 3/4" shaft running in sealed ball bearings.

Chuck

I think something is wrong, if you have a gear in the motor with 12 teeth an another with 60 teeth the ratio is 5:1 when gear with 12 teeth spins 5 times gear with 60 teeth will spins one time.
 
I realize that this is an old thread, BUT...
I'm in the process of making an indexer for my Mini Lathe, and I have looked at many, but I really like the simplicity of Alan R's (AKA harrzack) solution in post #263. There he shows a video of a very clean simple method of controlling stepped rotation. But, as he mentions below, his website was hacked and no longer has the files available.
So... my question is: does anyone have, or know where I can obtain the schematic & Arduino code for his project, OR does someone know of a similar solution where I can get the information.

TIA, Muggs
 
Have you looked at the “rotary table for dummies thread”?
 
tjwal,
No, but Thank you!!! I have my nights reading now. Thank you again, this looks like exactly what I wanted.
 
The original software had some integer and error accumulation issues. By the end of the thread I believe these had all been resolved. I use my version posted in message 149. Kquiggle added in some enhancements after that.
 
Thank you. I know a fair amount about the Arduino, but I’m reading the thread with pencil and paper in hand!
 
Back
Top