Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Stop a cam at top dead center TDC (http://www.chiefdelphi.com/forums/showthread.php?t=144696)

cpapplefamily 24-02-2016 20:38

Stop a cam at top dead center TDC
 
Well bag and tag is over. We have a cam on the output of a Toughbox mini with a mini cim powering the box. We have an encoder sensing the rotation. We where unable to create, test, and troubleshoot code to have the cam retun to TDC after the button is released. We are using the command bassed template. The cam may spin any number of rotations in either direction. When we are done we want to return to the top either continueing in the same direction or reverse. What might be a good way to do this? Should we check the current count by modulus 360 and continue to the next 360 increment. Any input. Its going to be tough to test now without a rio

nickbrickmaster 24-02-2016 20:47

Re: Stop a cam at top dead center TDC
 
Can you post your code?

DonRotolo 24-02-2016 21:39

Re: Stop a cam at top dead center TDC
 
I might consider a limit switch to sense TDC; your encoder is also self-calibrating. The switch doesn't need to be at TDC, just be able to close (briefly) when the cam is in the right position.

MaGiC_PiKaChU 24-02-2016 21:56

Re: Stop a cam at top dead center TDC
 
we used a cam in our shooter this year. we used a limit switch to stop it when it's fully loaded, and when we shoot its loads automatically and stops when it hits the limit switch again. You could also use an absolute magnetic encoder to sense where you are, or use the modulus, like you said :]

cpapplefamily 24-02-2016 22:00

Re: Stop a cam at top dead center TDC
 
We have no code yet and testing will be tough without the rio. A limit switch does seem to be the bestangle. We will have to try and fit it at the show. We only had a day of code tests this year. I come from an industrial background with servos and encoders for positioning. When building this system I suggested an encoder. Should have designed for Limit switch

Ether 24-02-2016 22:10

Re: Stop a cam at top dead center TDC
 
Quote:

Originally Posted by MaGiC_PiKaChU (Post 1546410)
hits the limit switch

I hope it's just actuating the limit switch, and not hitting it :)



MaGiC_PiKaChU 24-02-2016 22:23

Re: Stop a cam at top dead center TDC
 
Quote:

Originally Posted by Ether (Post 1546418)
I hope it's just actuating the limit switch, and not hitting it :)



Yeah that's what happens when English is not your first language :rolleyes:


All times are GMT -5. The time now is 00:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi