Arduino Rotary Table for Dummies

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.
Hallo,

today I got the 4*20 LCD Display. During lunch, I connected the display and a Keypad switch to my Arduino uno an installed the original program of Bob.

The keypad did not run as it should, so i changed the wiring as suggested. Now it works.👍
Later i will test the program with my rotary table. I also downloaded a program with Accelstepper from this thread. I will also test this version, because I like the Accelstepper library to run Stepper motors. Next step will be to search for a nice box. At the moment I am not sure if should put the power supply into the Arduino box.

best regards

Edgar
 
Hello,

I had to go back to the beginning of this thread to see, that kquiggle has two rotary table sketches.
So I loaded the version Table_Control_2019_7.25.
After making the setup, it works without any problems, but it has hard start and stops for the stepper.
After uploading the sketch Table_Control_2019_V2 4.69, the output of Pin 2 looks strange at the ozilloscope.
But I will connect the arduino to the stepper driver to see how it run.

best regards

Edgar
 
Hello,

just loaded the sketch with AccelStepper. It runs smooth without any problems.🖕

So, special thanks to kquiggle for this sketch, I really like it.

best regards

Edgar
 
Are the stepper drives better now, I had a Summit-Dana Bandit control on a Bridgeport clone and the control did know when it hit something solid, it blew the power transistors on the axis drive?

Ouch, that sounds nasty !

Failures like this are far less common with more modern drivers although not impossible.

The stepper drivers being used in this project are likely to be the plugin Arduino type (A4988 or similar) or the larger TB6600 type if the motor requires it

Both of these seem to be remarkably rugged and tolerant to accidental abuse

I have the plugin type on my 3d printers and I have had the occasional axis crash. None of them have resulted in blown driver yet or a burnt out stepper motor.
Usually just a failed print.

These crashes are almost always due to errors on my part (poor slicer settings or an incorrect configuration usually). not a fault in the machine itself

These little driver boards are remarkably inexpensive and easy to obtain. Being plugin they are also fairly easy to replace. I keep a couple of spares just in case a failure should happen but to date have not needed them.

One caveat to this is that although they do have remarkably good overcurrent protection it is adjustable and needs to be set appropriately to the stepper motor being used.

The stepper drives on your Bridgeport were probably much larger and more powerful than these though and would probably need more sophisticated protection simply due to the larger amount of energy in the system.

Best Regards Mark
 
Hello,

the program is still working fine. The output of the Step Pin 2 is still looking strange. I have never seen such a signal duty cycle with AccelStepper.
Is there any PWM regulation of Pin 2 in this program?

best regards

Edgar

stepper469.jpg
 
The stepper drivers being used in this project are likely to be the plugin Arduino type (A4988 or similar) or the larger TB6600 type if the motor requires it

Both of these seem to be remarkably rugged and tolerant to accidental abuse
I have a mini mill with Arduino CNC control using DRV8825 drivers. One was skipping steps so I increased the current. It was still skipping so I increased the current. Turned out it was skipping steps because it was overheating from the excess current. I reduced the current and increased the voltage and the problem went away.
 
Hallo,

I finished my rotary table project today. Special thanks to kquiggle who gave me the support I needed. I decided to use annother keyboard. I do not like these membran switch bords.

best regards

Edgar

Rotary fertig.jpg
 
How many steps/PPR are the encoder ?

I have used for equipment a electronic counters

Dave
 

Attachments

  • NEW-EATON-DURANT-58841-400-TOTALIZER-5884-1-58841400-174116189467.jpeg.jpg
    NEW-EATON-DURANT-58841-400-TOTALIZER-5884-1-58841400-174116189467.jpeg.jpg
    89.2 KB
After reading the program I found it using a stepper motor using StepsPerRotation = 400

Does anyone use a encoder like they use on mill DRO?

Dave
 
Thanks for the idea and the code!
I built this over the last 5-days with stuff I had laying around the shop.
I used a 24V 5A laptop power supply, 7809 voltage regulator, Arduino Nano and one of these $11 Stepper Drivers

https://www.amazon.com/gp/product/B07PQ5KNKR/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
3D printed a couple bezels for the display and keypad, an old PVC case has been repurposed and I must say, I am pleased with the way it turned out. Now I can use my CNC Rotary Table in a standalone fashion when needed.
 

Attachments

  • Rotary table drive.jpg
    Rotary table drive.jpg
    71.7 KB
Last edited:
Dear Sirs,
Could you please help me with a problem I came across while making my rotary table project. I bought all items mentioned at the beginning of this thread plus a simple buzzer. I just want my keyboard beep when pressed. I connected the buzzer to D13 pin and to GRD pin. Everything works fine but the buzzer. It beeps several times while Arduino is booting but doesn't beep when I press the keyboard. I am an absolute stupid in programming and my attempts to integrate buzzer sketch into Arduino Rotary Table Control 2016 sketch seem to fail. As far as I understad there is at least one error in my void loop section of the sketch - curly bracket is missing before buzzer loop. But when I put it there another errors emerge and I cannot upload the sketch to the Arduino. I am sure there are more errors but I cannot find them because of my stupidity. Would be greatefull if someone look through my sketch and correct it. Thank you very much.
 

Attachments

  • Buzzer.png
    Buzzer.png
    98.5 KB
  • Sketch.zip
    11.8 KB
For a start I have no idea why you include various items twice.
Could not see where you do a pinMode output for your buzzer either.
 
Thanks everyone for this project!!! It's almost exactly what I'm looking for. I'm using it to build one out of a Brown & Sharpe #0, I think, dividing head. It has a 40:1 ratio and I have a 3:1 pulley setup for a 120:1 ratio! Anyhow, I wanted to see if there's a way to add an input so that I can program a relay in my mill to tell the control when to index using an M code instead of having to push a button each time?

Also, I had to reverse the keypad pins to get it to work, just like someone else here.

Here's an Amazon link for that Aliexpress housing: BUD Industries PSP-11572-B Style G Plastic Box, 7-31/64" Length x 4-1/8" Width x 2-19/64" Height, Black . I had ordered a plain box because I couldn't find this one and low and behold they suggested this one, lol!

Thanks!
Mike
 
I have seen a mill setup using a fixed limit switch to index, when needed the table moved the tool away from the job to activate the limit switch to index and allow the part to rotate, then a delay before returning to the tool machining position.
 
I'm a CNC engineer, so I'd like to automate this more than it seems I can right now. I want to be able to enter an M code after each cut to trigger a relay/pulse telling the rotary table to index by whatever amount I had set in the indexer control. This is probably a question for kquiggle, although he said he doesn't really want to add more functionality to his program.
 
To do as I suggested earlier all you need is a couple of lines of G code in your program, the limit switch can be positioned on the column and operated from a fixed arm fitted on the table. Your sketch will need modding to provide the index when the switch is operated.
 
Back
Top