By continuing to use this site, you agree to our use of cookies. Find out more
Forum sponsored by:
Forum sponsored by Forum House Ad Zone

Arduino Rotary Table MEW 249

Corrected part Number + Discussion

All Topics | Latest Posts

Search for:  in Thread Title in  
Graham Titman10/01/2017 21:12:39
avatar
158 forum posts
28 photos

Andy thanks very much i will have a try tomorrow .Graham

SillyOldDuffer10/01/2017 21:14:12
10668 forum posts
2415 photos

Graham,

This link is to a version of the code that works on my DFRobot. It's been modified to make the buttons work.

Try downloading and installing it.

I can't guarantee it will work. If it fails, please complain and we'll try what Andrew suggests in the last sentence of his post.

Cheers,

Dave

peter ravenscroft11/01/2017 18:11:19
100 forum posts
3 photos

hi john

is that the way you connect remote switches as i am about to wire up a control box when the switches arrive

hopefully i'll have a unit working shortly

regards

peter

Carl Wilson 411/01/2017 19:36:20
avatar
670 forum posts
53 photos

Peter,

No. What Dave is talking about is a different version of the LCD and button shield that needs different values in the Arduino's program for the Arduino to recognise which button is being pressed. If you are wiring up remote buttons all you have to do is to solder leads onto the contacts of the buttons on the LCD/button shield and then connect these leads to the relevant remote buttons.

If you have any more queries on building up the unit don't hesitate to PM me.

Carl.

Graham Titman11/01/2017 19:47:44
avatar
158 forum posts
28 photos

Hello thank you everybody for your invaluable help i have just got both arduinos and the keypads to work after putting so many numbers to get the right hand key to work i arrived at

850 return no key

85 return right key

230 return up key

35o return down key

450 return left key

850 return select key.

The only problem now is even with a 24volt supply it only revolves at about 14rpm as i had hoped to drive a small mill head up and down with one of them with a 3 to 1 reduction Thanks again Graham

Andy Holdaway11/01/2017 21:58:10
avatar
167 forum posts
15 photos

Graham,

Have you changed the sketch to disable microstepping? At the top of the sketch you will see this line

#define Microsteps 1 // Depending on your stepper driver, it may support
// microstepping. Set this number to the number of microsteps
// that is set on the driver board. For large ratios, you may want to
// use no microstepping and set this to 1.

The figure after #define Microsteps should be 1 to give the fastest speed.

Andy

Graham Titman12/01/2017 07:13:56
avatar
158 forum posts
28 photos

Thanks Andy i will give it a try this afternoon.Graham

peter ravenscroft12/01/2017 18:03:32
100 forum posts
3 photos

thanks carl

regards

peter

Nick Clarke 209/02/2017 05:15:21
20 forum posts
3 photos
Hi. I have built my indexer but I am getting weird results. Everything runs,the arduino is able to select all modes, all the keys do as they should but the stepper motor ( nema 23 ) runs very slowly and I am getting 72000 steps per rev, with ratio set 9 to 1. According to MEW article I should be getting 18000 steps per rev. Where have I gone wrong? I am using Gary Liming's code ver 2.3. Any help would be well recieved....
Andy Holdaway09/02/2017 08:39:21
avatar
167 forum posts
15 photos

Nick,

At the top of the code are these lines:

#define StepsPerRevolution 200 // Change this to represent the number of steps
// it takes the motor to do one full revolution
// 200 is the result of a 1.8 degree per step motor
#define Microsteps 8 // Depending on your stepper driver, it may support
// microstepping. Set this number to the number of microsteps
// that is set on the driver board. For large ratios, you may want to
// use no microstepping and set this to 1.

Make sure that the motor you are using is 200 steps per revolution, and set Microsteps tp 1.

Also make sure that the DIP switches on the TB6560 are not set for microstepping.

Andy

Nick Clarke 209/02/2017 09:00:17
20 forum posts
3 photos
Many thanks, I will have to get a magnifying glass as I cannot see the dip switch chart printed on the board. Stepper motor did not seem to work at first, but after copying switch positions from article I got where I am now. I couldn't make out the positions of the three black switches so made a guess...
Roger Williams 209/02/2017 10:06:43
368 forum posts
7 photos

Hello all, thanks to Carl and others on here, Im happy with the way my Arduino RT project has finished up. One strange thing I noticed when using it recently is the way the CW and CCW buttons work in the RUN mode.When using divisions , angles or jog, the left (CW) button turns the table clockwise, and the right (CCW) anti clockwise as it should. However, in the RUN mode, the FIRST press of the left button turns the table anti clockwise, so does the other button. But if I press the left button again, it turns the table clockwise as its supposed to, and then normal after that.!!! This happens every time I select the RUN mode, then corrects itself.

Anyone else had this problem ?. Many thanks.

Carl Wilson 409/02/2017 10:06:53
avatar
670 forum posts
53 photos
I will try to take a good photo of the driver board and get it posted here as a reference.

It sounds like the motor in the above post is not 1.8 degree per step. NEMA 23 is just a frame size, it doesn't specify any of the other parameters.

Carl.
Nick Clarke 209/02/2017 10:20:04
20 forum posts
3 photos
The label says 'Stepping Motor type 57BYGH56-401A. I checkes specs on vendors ebay page and it is listed asv1.8 degrees per step...
Carl Wilson 409/02/2017 10:33:01
avatar
670 forum posts
53 photos
Okay dokay. Sounds like a conflict between dip switch settings and software microstepping parameter.
Nick Clarke 209/02/2017 10:43:48
20 forum posts
3 photos
Many thanks for your help. Have to take the Mem Sahib shopping so I will delve into the software upon my return.....
Neil Wyatt09/02/2017 11:50:37
avatar
19226 forum posts
749 photos
86 articles
Posted by Roger Williams 2 on 09/02/2017 10:06:43:

Hello all, thanks to Carl and others on here, Im happy with the way my Arduino RT project has finished up. One strange thing I noticed when using it recently is the way the CW and CCW buttons work in the RUN mode.When using divisions , angles or jog, the left (CW) button turns the table clockwise, and the right (CCW) anti clockwise as it should. However, in the RUN mode, the FIRST press of the left button turns the table anti clockwise, so does the other button. But if I press the left button again, it turns the table clockwise as its supposed to, and then normal after that.!!! This happens every time I select the RUN mode, then corrects itself.

Anyone else had this problem ?. Many thanks.

This sounds like the software is losing track (unlikely), resetting the stepper driver or switching between microstep and normal modes.

Nick Clarke 209/02/2017 17:53:33
20 forum posts
3 photos
I think I have cracked it! Altered microstepping to 1 ans put both microstepping dip switches to off. Set ratio to 90 to 1 and set 1 step. Display reported 18000 steps/div, which corresponds to magazine article. I will no doubt find out for cure once motor is grafted on to rotary table. Many thanks Andrew....
Carl Wilson 409/02/2017 21:50:17
avatar
670 forum posts
53 photos
Spot on Nick, well done.
peter ravenscroft11/02/2017 12:38:33
100 forum posts
3 photos

hi

i thought you might like to see my offering of my dividing head based on the chuck felllows deign with the software from the one in model engineer workshop

regards

peter

All Topics | Latest Posts

Please login to post a reply.

Magazine Locator

Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!

Find Model Engineer & Model Engineers' Workshop

Sign up to our Newsletter

Sign up to our newsletter and get a free digital issue.

You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy

Latest Forum Posts
Support Our Partners
cowells
Sarik
MERIDIENNE EXHIBITIONS LTD
Subscription Offer

Latest "For Sale" Ads
Latest "Wanted" Ads
Get In Touch!

Do you want to contact the Model Engineer and Model Engineers' Workshop team?

You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.

Click THIS LINK for full contact details.

For subscription issues please see THIS LINK.

Digital Back Issues

Social Media online

'Like' us on Facebook
Follow us on Facebook

Follow us on Twitter
 Twitter Logo

Pin us on Pinterest

 

Donate

donate