GcodeCNCDemo icon indicating copy to clipboard operation
GcodeCNCDemo copied to clipboard

how to code for X-Y motion if this kind of motion is COREXY or H-BOT

Open brianbui93 opened this issue 10 years ago • 10 comments

Now, I'm troubled with coding the X-Y motion when my project focuses on the kind of Corexy motion please help me to some instruction about it !. Thank you !

brianbui93 avatar Dec 01 '15 07:12 brianbui93

The makelangelo project already does what you want.

On Nov 30, 2015, at 11:36 PM, brianbui93 [email protected] wrote:

Now, I'm troubled with coding the X-Y motion when my project focuses on the kind of Corexy motion please help me to some instruction about it !. Thank you !

— Reply to this email directly or view it on GitHub.

i-make-robots avatar Dec 01 '15 16:12 i-make-robots

thanks a lot

brianbui93 avatar Dec 04 '15 04:12 brianbui93

http://github.com/marginallyclever/makelangelo-firmware change #define POLARGRAPH2 to #define COREXY and you should be good to go. refer to our forums for tech support.

Glad we could help!

On Thu, Dec 3, 2015 at 8:27 PM, brianbui93 [email protected] wrote:

thanks a lot

— Reply to this email directly or view it on GitHub https://github.com/MarginallyClever/GcodeCNCDemo/issues/7#issuecomment-161871993 .

Dan Royer :: Marginally Clever http://www.marginallyclevergroup.com/ :: Raising Robot Literacy :: +1.604.916.2281

i-make-robots avatar Dec 04 '15 04:12 i-make-robots

There is a problem that I still don't understand in your code. It is the Bresenham' algorithm to drawing straight line. I have read documents on Internet but still troubled with them: how to pulse to step motors. Would you mind if you can give me more detailed about this case ?

P/s: I'm so sorry because I'm a beginner.

brianbui93 avatar Dec 12 '15 00:12 brianbui93

Tell me which part you understand.

On Fri, Dec 11, 2015 at 4:57 PM, brianbui93 [email protected] wrote:

There is a problem that I still don't understand in your code. It is the Bresenham' algorithm to drawing straight line. I have read documents on Internet but still troubled with them: how to pulse to step motors. Would you mind if you can give me more detailed about this case ?

P/s: I'm so sorry because I'm a beginner.

— Reply to this email directly or view it on GitHub https://github.com/MarginallyClever/GcodeCNCDemo/issues/7#issuecomment-164091561 .

Dan Royer :: Marginally Clever http://www.marginallyclevergroup.com/ :: Raising Robot Literacy :: +1.604.916.2281

i-make-robots avatar Dec 12 '15 05:12 i-make-robots

I refer to file "GcodeCNCDemo6AxisRumba.ino". I understand almost all of your code except function which uses bresenham's line algorithm to move both motors. Can you describe in detail how to apply this algorithm to control step motor?. For example. I suppose that you only control 2 motors X and Y simultaneously in which n1, n2 are the steps needed to operate motor X, Y, respectively, t is the time to move both motors.To simplify, if ok, can you summarize the algorithm in flow chart ?. Thank you very much !.

On Sat, Dec 12, 2015 at 12:24 PM, Dan Royer [email protected] wrote:

Tell me which part you understand.

On Fri, Dec 11, 2015 at 4:57 PM, brianbui93 [email protected] wrote:

There is a problem that I still don't understand in your code. It is the Bresenham' algorithm to drawing straight line. I have read documents on Internet but still troubled with them: how to pulse to step motors. Would you mind if you can give me more detailed about this case ?

P/s: I'm so sorry because I'm a beginner.

— Reply to this email directly or view it on GitHub < https://github.com/MarginallyClever/GcodeCNCDemo/issues/7#issuecomment-164091561

.

Dan Royer :: Marginally Clever http://www.marginallyclevergroup.com/ :: Raising Robot Literacy :: +1.604.916.2281

— Reply to this email directly or view it on GitHub https://github.com/MarginallyClever/GcodeCNCDemo/issues/7#issuecomment-164112049 .

brianbui93 avatar Dec 12 '15 07:12 brianbui93

Ever heard of Google? https://www.google.es/search?q=bresenham+flowchart&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiVoYGrrrTPAhWC7RQKHS2lBkgQsAQIHQ&biw=1190&bih=682&dpr=1.25

misan avatar Sep 29 '16 10:09 misan

Makelangelo-firmware supports hbot and corexy.

On Sep 29, 2016, at 3:26 AM, Miguel Sanchez [email protected] wrote:

Ever head of Google? https://www.google.es/search?q=bresenham+flowchart&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiVoYGrrrTPAhWC7RQKHS2lBkgQsAQIHQ&biw=1190&bih=682&dpr=1.25

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

i-make-robots avatar Sep 29 '16 12:09 i-make-robots

@brianbui93 do you understand bresenham's algorithm now? I'd like to close this issue.

i-make-robots avatar Oct 26 '16 21:10 i-make-robots

Yes, I understand this. Thanks Dan Royer and everybody so much :)

On Thu, Oct 27, 2016 at 4:45 AM, Dan Royer [email protected] wrote:

@brianbui93 https://github.com/brianbui93 do you understand bresenham's algorithm now? I'd like to close this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarginallyClever/GcodeCNCDemo/issues/7#issuecomment-256486696, or mute the thread https://github.com/notifications/unsubscribe-auth/APWbklJaKczNPMWLJ2iwnWxvhxD4tVPIks5q38n1gaJpZM4GsD0z .

brianbui93 avatar Nov 05 '16 02:11 brianbui93