ATC Project - Debug phase

More
21 Jun 2022 19:21 #245548 by spumco
Replied by spumco on topic ATC Project - (Update)
I think I read an older post on this board to the effect of: "Building an ATC is easy.  Programming is the hard part."

They weren't kidding.  I guess the only hard part of the actual build was finding a good quality planetary reducer for cheap.  Everything else has been relatively uncomplicated.

If we can come up with a reliable control scheme that works reliably and doesn't require a geneva drive or encoder, that'd lower the bar for quite a few people.

And when I say "we", I mean "Andy & others" while I do what they tell me.

Please Log in or Create an account to join the conversation.

More
21 Jun 2022 21:05 #245557 by tommylight
Replied by tommylight on topic ATC Project - (Update)
-Use "carousel" component as is
-Use a stepper motor or step/dir servo
-use an index and a pocket sensor
-3D printed almost everything???
-Use stepper for arm motion???
-
Just some random thoughts ...
Anyone good with 3D design?

Please Log in or Create an account to join the conversation.

More
21 Jun 2022 22:27 #245559 by spumco
Replied by spumco on topic ATC Project - (Update)

-Use "carousel" component as is

 


That's the current problem.

The new 'counts' mode seems to be working...ish.  At slow speeds it's reliable, but starts acting up if the speed is increased - at least for me.

And you don't need a pocket sensor.  Carousel component keeps track of position once it's homed to a single index sensor.

You could probably 3D print tool forks but I'd like to see a bunch of testing before I trusted them over injection moded forks.  Same thing goes for mechanical bits with weight on them.  I'd be concerned about cold creep over time.

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 00:31 #245572 by tommylight
Replied by tommylight on topic ATC Project - (Update)


And you don't need a pocket sensor.  Carousel component keeps track of position once it's homed to a single index sensor.

Ooops
You are right, it does not need one.
As to the rest of your reply, i am fully aware of the drawbacks, but if it can be 3D printed and usable for a while, just print more and keep changing! :)
I am sure there might be a way of doing a partially 3D printed changer that will last, but printers are cheap so we can use them for this, and we like to tinker.
Then again there is the rack tool changer, easy, simple, no remaps, works properly, lasts a lot, BUT takes a good portion of the usable working area.
-
I'll go out now and have a smoke and feel ashamed that i missed the reality of carousel with stepper = no need for pocket sensor. :)
My dog will be happy to see me, it is 2:30AM here so he is awake, sleeps most of the day.

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 01:24 #245574 by spumco
Replied by spumco on topic ATC Project - (Update)
While you're feeling ashamed, can you figure out why the carousel acts up at higher speeds?

And give your dog a pet for me.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 09:45 #245582 by tommylight
Replied by tommylight on topic ATC Project - (Update)
Using steper or step/dir servo ?

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 11:45 #245587 by spumco
Replied by spumco on topic ATC Project - (Update)
Closed loop stepper, no feedback to LCNC.

It's not losing steps, and carousel.comp doesn't lose track of position.  Works fine at speed '25' (whatever that means), but if I turn it up past that it starts making whole extra turns before settling on the right pocket.  i.e. instead of one increment moving from pocket #1 to #18 it will rotate 3 complete revolutions plus one increment.

And the faster I set the speed, the more extra revolutions.  Happens in both directions.

BTW, I think the speed is probably based on stepper counts per rev and not time-based, but I'm not sure.  I just know that "25" is slow - like 1.5-2 seconds per pocket.

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 19:40 #245611 by tommylight
Replied by tommylight on topic ATC Project - (Update)
Can you do a video?
Preferably on youtube.

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 19:58 #245614 by spumco
Replied by spumco on topic ATC Project - (Update)
I'll try to get something video'd tonight.  I don't have a YT account, but I might be able to persuade the spouse to let me upload something to her account.

I was just re-reading Andy's carousel.comp (the latest on github) and noticed that there are three speed setting pins
fwd-dc
rev-dc
motor-vel

I have fwd-dc = 25, rev-dc = -25, but nothing set for motor-vel.  I think I'm going to fiddle with that tonight and see if setting motor-vel to some value changes anything.  Now that I read it (again), it's a little unclear which one to use to set the speed:

fwd-dc         "Velocity or duty cycle when forwards rotation is desired"
rev-dc          " Velocity or duty cycle when reverse rotation is desired"
motor_vel    "The duty-cycle or velocity to drive a DC motor or stepgen"
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
22 Jun 2022 22:00 #245617 by spumco
Replied by spumco on topic ATC Project - (not again...)
Ok, so motor-vel is an output.  No low-hanging fruit there.

Noticed that carousel had 18 sense pins in halshow.  Checked the hal file and sure enough, I had

loadrt carousel ... num_sense=18

Figured it couldn't hurt to fiddle around and dropped that down to 1; I've only got 1 pocket/index pin, right?

Then I start getting this:
 

and LCNC starts locking up and getting really laggy.  Have to shut it down, can't really do anything (jogging, mode selection, MDI).

Edited hal again to num_sense=18, and the error goes away.

Tried with num-sense=0, error gone.  What the heck?

Also... narrowed the continuous rotation error down to the following speeds:

fwd-dc=28, it acts as intended (one pocket)
fwd-dc=29, it rotates at least one extra turn
rev-dc=-31, ok
rev-dc=-32, extra rotations

Odd.

 
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.157 seconds
Powered by Kunena Forum