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.
Yes, switches are very noisy, and unless "de-bounced," spurious key presses are pretty much inevitable. There are two approaches to debouncing, hardware or software. The hardware approach is to add a small capacitor between the signal and ground (try .001uF to .01uF or so) - this assumes a typical pull-up situation, either via a pull-up resistor or internal pull-up on the Arduino pins. The software approach is to implement a delay each time a key press is detected before reading any other key presses. Be sure that the delay does not interfere with the timing of the stepper routines.
 
I think I got it. My box has a big aluminum plate that the keypad and screen are mounted to. I ran a ground from it to the arduino and so far it's behaving.
I was wondering why no one else was having similar issues & this is probably why.
Mike
 
Hi all i have built one of these and it works well. What i want to do is add a 40kg servo to the system to unlock the dividing head clamp. I would like to have a software interlock which stops the advance of the head having to lock and unlock the head
Would this be possible
Thanks Dave
 
Hi all i have built one of these and it works well. What i want to do is add a 40kg servo to the system to unlock the dividing head clamp. I would like to have a software interlock which stops the advance of the head having to lock and unlock the head
Would this be possible
Thanks Dave
What do I have to immagine when I hear "40 kg Servo"?
 
A 40 kg airplane servo normaly used in large model aircraft. 40 kg may be an overkill i can always use 20 kg servos. These will pull/push their rated weight and are very handy. So i plan on a mounting bracket on the dividing head and a lever to the clamp from the servo. I imagagine an interupt in the software to lock/unlock the servo so it cant advance the program untill unlocked then program rotates stepper motor. When it has reached the number of steps servo is moved to lock the dividing head. It might work i just need help
Dave
 
Hi
If there is any chance that there will be damage if the lock is NOT disengaged, then you should use a hardware based interlock as well as software.
You want something that will detect a hardware fault so the software can confirm that the lock is off/on, or something else. The something else could be a piece of swarth stuck between something.

In short, you need sensors to provide feedback to confirm the hardware is doing what the software is expecting.
 
I dont think there would be enough i/o left on the arduino to add any sensors. It would have to come from key switchs and software
Dave
 
I haven't looked at the circuit for a long time but one option might be to include interlocks that detect fault conditions external to the Arduino.
Another option is to use a different controller.
Yet another option is to not include any feedback/interlocks with the greater risk of damage if something goes wrong.
 
I dont think there would be enough i/o left on the arduino to add any sensors. It would have to come from key switchs and software
Dave
Question is: How many sensors and I/O do you need?
Make a plan, test the mechanics, arrange the electrics, then change program. -> Done!

A3, A2, A1 and A0 are free.
Digital I/Os 11, 12 and 13 are unused.
Digital I/Os 0 and 1 might be used by the serial output during programming
The memory is about 1/3 rd full with what was the typical code roaming around.

You can program what you like into the thing. Worst case! You go from the Arduino UNO to an Arduino MEGA which would change the number of digital I/O from 14 to 54 and the Analog pins from 6 to 16?
 
How do you intend to arrange the servo operated lock?
You don't want the servo to be under load in either the locked or unlocked condition - it will draw a lot of current and quickly overheat.
I would suggest an over-centre cam of some kind and code to drive the servo to desired position, then back off a little to ensure that it is unloaded.
 
Hi all i have built one of these and it works well. What i want to do is add a 40kg servo to the system to unlock the dividing head clamp. I would like to have a software interlock which stops the advance of the head having to lock and unlock the head
Would this be possible
Thanks Dave
I have been helping someone with using a servo like you describe with the mechanics for a different purpose. Numerous problems with powering from the arduino. I did not do the programming so cant speak to that. I think there are probably better ways to mechanically design a system for your purpose. The arduino can easily pick the positions and send the command signals to do what you need to do but it would be good to have a solid mechanical lock for things you are machining on. Those servos seem a bit fragile.
 

Latest posts

Back
Top