Electronic Dividing Head using the Arduino

Help Support HMEM:

chucketn

Senior Citizen
Joined
Dec 17, 2009
Messages
1,311
Reaction score
162
Location
Near Jonesborough, TN
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.
 

rodw

Well-Known Member
Joined
Dec 2, 2012
Messages
1,141
Reaction score
336
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.
 

Foozer

Well-Known Member
HMEM Lifetime Supporter
Joined
Nov 26, 2008
Messages
1,168
Reaction score
76
Location
Camano Island, WA
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
 

fubuddy

Active Member
Joined
Oct 17, 2018
Messages
25
Reaction score
3
Location
orange
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....
 

chucketn

Senior Citizen
Joined
Dec 17, 2009
Messages
1,311
Reaction score
162
Location
Near Jonesborough, TN
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?
 

fubuddy

Active Member
Joined
Oct 17, 2018
Messages
25
Reaction score
3
Location
orange
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.
 

dwk

Member
Joined
Oct 20, 2018
Messages
13
Reaction score
2
Location
united kingdom
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?
 

fubuddy

Active Member
Joined
Oct 17, 2018
Messages
25
Reaction score
3
Location
orange
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.
 

pp2076

Active Member
Joined
Jun 8, 2017
Messages
28
Reaction score
9
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/
 

pp2076

Active Member
Joined
Jun 8, 2017
Messages
28
Reaction score
9
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.
 

dwk

Member
Joined
Oct 20, 2018
Messages
13
Reaction score
2
Location
united kingdom
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.
 

pdsilva

New Member
Joined
May 9, 2019
Messages
1
Reaction score
0
Location
londo UK
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.







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.
 

Latest posts

Top