![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| OpenSource Software For the Discussion of Opensource CAD/CAM and NC shareware software etc) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#13
| |||
| |||
I just used it for an image processing algorithm, and it worked great. Of course, I didn't care about jaggies at all, just speed and accumulated error. I did have to modify it a little from the normal computer video implementation, because I wanted to start in one place and end in the other. I looked it up on Wikipedia. |
|
#14
| |||
| |||
| Hello, I use an very simple algoritme . i write a program for AT90S2313,it communicate to Pc via RS232 on the PC runs a program in VB6 maybe its usefull for you? I am new on the internet i dont now how to attach the code,maybe i can mail it to you? Sorry for my english my email adres:ludo.van.ginderen@telenet.be Last edited by hobby.club; 11-01-2006 at 04:57 AM. Reason: adding my emailadres |
|
#15
| |||
| |||
| I am working on a CNC driver program and am trying to wrap my head around the G2 and G3 codes. It looks like the Bresenham Algorithm is the answer, but I'm having trouble getting my head wrapped around this. How do I use the algarithm to generate my steps from a centerpoint and a radius as I would have in a G2 or G3 gcode?
__________________ www.bigbearcnc.com |
| Sponsored Links |
|
#17
| |||
| |||
| I've used this algoithm in both my controllers (Lcam and StarCam), The Starcam runs it in a 40 mhz PIC with 64K ram buffer. It can run 35000 steps/sec running a 16 bit 3d vector. My older DOS (Lcam) could run 90K /sec Bresenham's Algorithm is a 'on the fly' integer divide. There are arc routines out there for drawing on screens, but I couldn't find a arc routine that would allow starting in the middle of a quadrant, but i developed a fast sqrt routine that can run in integer and decide whether an axis should step or not dependine on a pre-calculated radius. Mach 3 works differently, it 'steers' 6 free running timers by correcting the trajectory at a periodic rate. This is great but the faster you go the more error and slop there is. A Bresenham loop is perfectly accurate at any speed, the draw back is pulse timing is not evenly spaced, ( but this doesn't matter on a servo or microstepping drive.) Larry K Larry K
__________________ Manufacturer of CNC routers and Viper Servo Drives www.LarkenCNC.com and www.Viperservo.com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |