Arduino Rotary Table for Dummies

Home Model Engine Machinist Forum

Help Support Home Model Engine Machinist Forum:

cwalk

Member
Joined
Mar 4, 2023
Messages
9
Reaction score
2
Location
UK
The attached file contains the arduino sketch I wrote for my dividing head. The math algorithm is written to assure that the 0 (zero) location always winds up at the same point of rotation. As it moves, it recalculates the position from zero so no matter how many times it goes around or back and forth, it maintains positional integrity. The algorithm should work for your rotary table as well.
Chuck
Thank you all for your suggestions. I will try them out next time I am in my man cave. Limited time at the moment. I will post the results when I have investigated.
Thanks once again for your help, best wishes, Colin
 

shane meyer

New Member
Joined
Apr 7, 2023
Messages
3
Reaction score
1
So I was able to get this working very easily with the uno as these instructions are absolutely amazing and very well made but, I wanted to try and use a Arduino Micro instead of the Uno so I cant solder the connections and not have to worry about anything coming undone in the case, but when I tried to load the program on the Micro It just never seemed to work for some reason, I confirmed the Micro was connected and working properly as I got the simple "blink" program to work. Any ideas on why it wouldnt work on the Mirco? it has enough pins and I would imagine work the same as the Uno but just smaller. You might already tell but I am not very Arduino savvy as I have no idea how to make my own programs, but can load things and wire fine haha
 

ignator

Well-Known Member
Joined
Jan 22, 2012
Messages
235
Reaction score
54
Location
USA, Iowa
So I was able to get this working very easily with the uno as these instructions are absolutely amazing and very well made but, I wanted to try and use a Arduino Micro instead of the Uno so I cant solder the connections and not have to worry about anything coming undone in the case, but when I tried to load the program on the Micro It just never seemed to work for some reason, I confirmed the Micro was connected and working properly as I got the simple "blink" program to work. Any ideas on why it wouldnt work on the Mirco? it has enough pins and I would imagine work the same as the Uno but just smaller. You might already tell but I am not very Arduino savvy as I have no idea how to make my own programs, but can load things and wire fine haha
I can't see any big differences between the Nano and Uno in I/O that would account for non operation. I would take a guess you have a ground not connected between the Nano and your stepper motor drivers. But I'm guessing without seeing your wiring diagram.
 

timo_gross

Well-Known Member
Joined
Feb 26, 2020
Messages
368
Reaction score
211
I can't see any big differences between the Nano and Uno in I/O that would account for non operation. I would take a guess you have a ground not connected between the Nano and your stepper motor drivers. But I'm guessing without seeing your wiring diagram.
Micro and Nano do not use same chip. But still it should be workable. Pinout needs to be checked and the board must be choosen correct?
The first thing I came across, the I2C pins on Micro are SDA-02 | SCL-03 on Nano they are SDA-A4 | SCL-A5. (so display needs to be wired to different pin numbers already) And programm needs to be changed accordingly.

Hope you will figure it out soon.
 
Last edited:

awake

Well-Known Member
HMEM Supporting Member
Joined
Sep 4, 2019
Messages
1,996
Reaction score
871
Location
North Carolina
Micro and Nano do not use same chip. But still it should be workable. Pinout needs to be checked and the board must be choosen correct?
The first thing I came across, the I2C pins on Micro are SDA-02 | SCL-03 on Nano they are SDA-A4 | SCL-A5. (so display needs to be wired to different pin numbers already) And programm needs to be changed accordingly.

Hope you will figure it out soon.
Exactly what I was thinking - the nano is essentially an UNO in a smaller package, but the micro is a slightly different animal.
 

Latest posts

Top