Index table arduino suggestion

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.

Cornnatron

Member
Joined
Feb 19, 2022
Messages
18
Reaction score
2
Location
Netherlands
Hello there,
Im new here bit have been lurking for some time .
And i just wanted to pick your guys brains.
Im in the progress of setting up a rotary table for the lathe spindle which i want to control through a arduino and a stepper and seeing that aint nothing that hasnt been done before and there are planty of different codes around to do that i thought ill go here and see what you guys would recommend .
Tnx corn
 
Corn:

I'm not quite sure what you're trying to do. Are you planning on setting up a rotary table that will somehow be used by the lathe, or are you planning on using the lathe spindle as the rotary table?

Don
 
The rotary table iz getting connected to the lathe spindle on the troughhole side so its possible to rotate the spindle to any angle
 
Is this something you plan on leaving in place while the lathe is in normal operation, or will you install it when you want a rotary positioner and remove it when you're done?
 
Cheers have been reading through that topic and saw your post but , seeing i aint got a 20x4 screen here jet but got some 128x64 graphic screens with a rotary switch left over from some 3d printer ill try to implant that to it. Some do have to change a bit of code first. But shouldnt be to much problem i hope.
 
20220225_200508.jpg
20220225_200458.jpg
20220225_200251.jpg
20220225_200230.jpg


Here you go aint finished yet but atleast something still got to work on the electronics and software but ill post some when that is finished.
 
Next on the list is gonna be a els clough42 based , was considering going full cnc with encoders as handwheels but i love the real feel of the turning and you lose that .
Would be awsome for concave and convecs or taper turning but that isnt needed for now.lol.
And why encoders as handwheels if i would go that way you might ask that is cause for my diy cnc router i build the same for each axis a handwheel in the expected orientation which still allows some manual machining with it sort of that is.
1645816769303910872366267805004.jpg
 
got one of those tools too which works for the end of the stock but harder for say a very small concave or convex along the lenght of the stock
 
This code by rodw is very wel written and has proven to be stable .
I've used it for quite some time now , never had any issues .
The 2*20 display is not a problem at all , you'll get used to using it in no time .
https://www.homemodelenginemachinist.com/threads/arduino-indexer-full-project.31475/
Cheers for that nice project , did leaf me a bit of a question though what about the nano lol, you refer to get back to it later a couple of times but never did come to it.

Or i didnt see it lol.

And about the 2x20 or 4x20 isnt the problem i could just order one if needed but im like you ,love retrieving stuff and and reusing stuff like that.
And i got 3 reprapdiscount grapic displays left over so thought ill use one of those seeing i got them and like how they controll on my 3d printer.

But like to hear about the nano stuff seeing got one of those here two .
2nano 2uno 2mega 2rasberry and 2 bluepill(stm32) , a box of recovered steppers from 17 up to 34 and a couple of servos from a discarded deskcnc including drives.
Spare dm566 drivers up to 48v i believe.
Like to keep some usable electronic stuff for grabs .
And as spares for when something brakes mid project what you want to finish so i dont have to order it first.
 
There's an issue with writing to the nano eeprom . Rod's software allows to store up to 9 different indexers in eeprom .
U can use different ratio's and different output pins to control various devices . Fi an indexer and a rotary table witch will have a diferent mechanical setup . I believe this is one of the top features of this software . Most others I've seen conrol one single device , and it is hard coded .

On my test uno that works flawlessly , on the nano's , and I've tried several , there's an issue when writing to the eeprom . It would lock up and I had to try several times before it would store the value in eeprom . Haven't touched it since , and once it's stored it , it apparantly stays stored .

As far as I can tell the uno and the nano use thesame chip but a different bootloader . Most likely that's what causes it .
I was gonna try to use the uno bootloader on a nano , but as I got mine working I haven't investigated this any further .

Now these graphic displays you talk about would be great to control the indexer .
If you can make that happen , I'de love to see that
 
Interesting - I've never had a problem writing to the EEPROM on the nanos I've used. Are you seeing this on more than one unit? If it's just one, maybe it's a bad board?
 
I tried it on at least 4 different boards , all cheap chinese nano clones .
All behaved thesame .

My uno however , wich is also a chinese clone with the exact same chip on it as the nano's
didn't have this issue at all . I wrote to the eeprom several times to test if I did something wrong .
It never failed .

The only thing different between the two boards is the bootloader . Most likely there's a conflict somewhere
as this software was written for and tested on an uno .

The nano's did completely lock up when trying to write to the eeprom , even the reset button wouldn't work .
I had to cycle power get them running again .

So If I were to persue this I would burn an uno bootloader on the nano and see if that makes a difference .
I'm quite convinced it will .
 
Me neither though i do know that there are different chipset availble like the atmega328p or the ch340 or something do all the same spec wise but some got some times issues with uploading or running.
Remember something beeing talked about that around grbl.
 
But like stragen sayed it mostlikely is the preinstalled bootloader on the cheap chinese clones and if i got the right one that problem sticks its head up on ch340 chipsets .
 
Last edited:
The Nano with the 340's need some special boot stuff installed first time used . I know we had to do that on all my Nanos which were imports . Google Nano 340 fix or something like that & you'll find what you need to make them work .
animal
 

Latest posts

Back
Top