CNC Spirograph

Page 1 of 7 1234 ... LastLast
Results 1 to 20 of 124

Thread: CNC Spirograph

  1. #1
    Registered spalm's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default CNC Spirograph

    Are you Board? Want to do something really useless with your CNC? Turn it into a Spirograph. I wrote a VB application to generate Gcode. It’s actually kind of fun to watch it getting carved out.

    Let me know if it works for you,
    Steve

    EDIT: Version 1.3 is available in post #22

    Similar Threads:
    Attached Thumbnails Attached Thumbnails CNC Spirograph-spiros-jpg   CNC Spirograph-spiroscreen-jpg  
    Attached Files Attached Files
    Last edited by spalm; 09-20-2005 at 10:02 PM.


  2. #2
    Registered santiniuk's Avatar
    Join Date
    Nov 2004
    Location
    U.K - England
    Posts
    389
    Downloads
    0
    Uploads
    0

    Default

    Neat program spalm. I had a bit play to try it out.

    I don't get the preview of the circles in the window.

    Gcode works fine.

    output pic attached for ref.

    Cheers....

    Attached Thumbnails Attached Thumbnails CNC Spirograph-image1-gif  


  3. #3
    Registered Evodyne's Avatar
    Join Date
    Dec 2004
    Location
    USA
    Posts
    518
    Downloads
    0
    Uploads
    0

    Unhappy

    Spalm,

    What a cool program. I havn't fiddled with spirographs is 30+ years! Hey-I tried to copy to an XP machine. When I go to run I get an error message "Component richtx32.ocx or one of its dependencies not correctly registered: a file is missing or invalid". Any ideas?

    Lance



  4. #4
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    I accidentally got it to output 25K+ lines of G-code. I had to kill it with the task manager. Also got it to crash if the little circle is set to 0.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  5. #5
    Registered spalm's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default

    Hey,
    Sorry guys for any problems, I banged this out in Visual Basic Ver 6. I can see why Microsoft went to VB.net. But I must admit that I had a few smiles playing with a spirograph.

    Santiniuk, never seen that one before. For better visuals, I poked around the net and found this link:
    Dartmoth Spirograph
    They are using the same kind of algorithm as I did. Only they use radius instead of diameter. You can try out the values there, and then convert and plug them into my app.

    Evodyne, you are missing the driver for a RichTextBox. I zipped up my set. They should live in the Windows/System32 directory.

    Gerry, it’s a toy. You deserve every crash that you get. Seriously, I can range check the input numbers and limit the output if you think that I should post a Ver 1.1.

    Steve

    Attached Files Attached Files


  6. #6
    Registered Evodyne's Avatar
    Join Date
    Dec 2004
    Location
    USA
    Posts
    518
    Downloads
    0
    Uploads
    0

    Default

    Spalm,

    Hey-copied everything for the ocx to system and I'm good to go. Thanks.

    Lance



  7. #7
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    Quote Originally Posted by spalm
    Gerry, it’s a toy. You deserve every crash that you get.
    Would you be interested in posting the code? Or some math references maybe? I'd like to create a similar AutoCAD VBA macro.

    Don't worry about the crashes, just part of the learning curve.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  8. #8
    Registered spalm's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default

    Gerry, look at the link in post #5. It contains the formulas for epicycloids. It also has some java source code at the bottom that reads pretty well.

    I knew that I had let options available for the code exploding. Several of them I protected, several of them not. This is always the boring part of programming; protecting your code from users. I saw this as a one time use toy that was not worth that much investment. If anybody thinks I should take it to the next level, I will.

    On second thought, I would have loved to have this tool on the day that I got my first machine running, so maybe I will dress it up a bit. (?)

    Steve



  9. #9
    Registered santiniuk's Avatar
    Join Date
    Nov 2004
    Location
    U.K - England
    Posts
    389
    Downloads
    0
    Uploads
    0

    Default

    Spalm,

    Just checked the program again on a different pc. Preview window works fine. Must be something my end on main pc.

    Cool program

    Cheers



  10. #10
    Registered
    Join Date
    Jun 2005
    Location
    CANADA
    Posts
    90
    Downloads
    0
    Uploads
    0

    Default

    Cool little piece of software!

    Thanks for sharing!



    My business Web site - USINUM - www.cooptel.qc.ca/~usinum
    My BLOG at Blogger - http://pacosarea.blogspot.com/


  11. #11
    Registered Evodyne's Avatar
    Join Date
    Dec 2004
    Location
    USA
    Posts
    518
    Downloads
    0
    Uploads
    0

    Default

    Spalm,

    Hey, it's a toy-but it's a fun toy. And those little doodles might nicely decorate small container lids makng them highly decorative. You might put a "max revolutions" limit in that (if the ratios don't quite line up) will only generate a given amount of g-code. I also seem to remember (from well back into childhood, so it's a bit foggy) that the spirograph kit had other shapes you could roll the smaller gears around. I seem to remember a long piece with rounded ends. What would really be neat would be to define a path out of spline sections that represents the big gear. My vote is to fiddle with it a bit more.

    Lance



  12. #12
    Registered
    Join Date
    Sep 2004
    Location
    United States of America
    Posts
    85
    Downloads
    0
    Uploads
    0

    Default

    Sweet program! Looks like now I've got some G-code to run whenever my machine's finished! By Tuesday, I should at least have a 2-axis machine that I can tape a marker to and let it spirograph away!

    Thanks for posting this, and the XP fixes.



  13. #13
    Registered spalm's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default

    Well here is version 1.1
    It should be much more Gerry proof.

    I also added:
    Gcode count info box that will tell you how large your listing output will be.
    Emergency Stop button.
    Total design size info box.

    Evodyne, there was a rectangular gear and also a kind of triangle gear. I am a bit stumped at implementing them at the moment. I will keep fiddling. One thing I stumbled on today was to generate the same figure with two different StartX points. You get a nested or thick look. Maybe make this more automatic, or allow the user to control when the screen is cleared.

    Anyway, suggestions always welcome,
    Steve

    EDIT: Version 1.3 is available in post #22

    Attached Files Attached Files
    Last edited by spalm; 09-20-2005 at 10:03 PM.


  14. #14
    Registered
    Join Date
    Dec 2004
    Location
    Barbados
    Posts
    1316
    Downloads
    0
    Uploads
    0

    Default

    Great program. I tried and might even carve designs in my cupboard doors.
    Three cheers for spalm.

    Jason



  15. #15
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    Quote Originally Posted by spalm
    Well here is version 1.1
    It should be much more Gerry proof.


    Thanks for the link above. After searching for another hour or so, I figured out how many times you need to spin the 2nd circle to complete the pattern. Then another hour to figure out the greatest common multiplier (denominator?) in VB (VBA). Now I'm all set to make an AutoCAD version. It'll be a bit of a pain to use, though, as I don't think I can have any type of preview using VBA. Thanks Steve.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  16. #16
    Registered spalm's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default

    Yup, GCD Greatest Common Divisor. That threw me for a loop too (pun intended). Thank goodness for google.

    Well I wasn’t going to post another version until something major changed, but I found a machine at work that gave me Santiniuk’s black preview screen. It seems like this has something to do with running ‘themes’ in XP. I changed the box to use system colors rather that black and white, and it fixed his graphics.

    Santiniuk, could you give it a try. Are you running a theme?

    Also added a zoom feature and fixed one weird math bug.
    Steve

    EDIT: Version 1.3 is available in post #22

    Attached Files Attached Files
    Last edited by spalm; 09-20-2005 at 10:03 PM.


  17. #17
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default

    A couple hours and It's almost done. Might have been one hour if I'd remembered I had to define pi Thanks again Steve. I'll post this in the AutoCAD forum sometime in the next week when I have time to polish it up a bit.

    PS. No kidding about Google. Don't know how we ever got by without it.

    Attached Thumbnails Attached Thumbnails CNC Spirograph-autospiro-gif  
    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  18. #18
    Registered
    Join Date
    Sep 2004
    Location
    United States of America
    Posts
    85
    Downloads
    0
    Uploads
    0

    Default

    Just got done with the first 2-D test of my machine, using a spirograph file from version 1.0...

    http://www.cnczone.com/forums/showth...857#post103857

    I better go download the latest version...

    Thanks for the awesome program!



  19. #19
    Registered
    Join Date
    Jun 2005
    Location
    CANADA
    Posts
    90
    Downloads
    0
    Uploads
    0

    Default Spiro using 100% of my CPU...

    Anybody noticed that their CPU is used at up to 100% with Spiro?

    This, as long as the program is running...?!

    See attached...

    I do still like it though!

    Attached Thumbnails Attached Thumbnails CNC Spirograph-spiro_cpu-png  
    My business Web site - USINUM - www.cooptel.qc.ca/~usinum
    My BLOG at Blogger - http://pacosarea.blogspot.com/


  20. #20
    Member Switcher's Avatar
    Join Date
    Apr 2005
    Location
    United States
    Posts
    3634
    Downloads
    0
    Uploads
    0

    Default

    I had the same problem with the black screen on the right, (V 1.2) fixed it, neat program. Also, noticed it using 100% of CPU (like the_paco said). It does this while not drawing/generating g-code. Still a fun program, Good Job!



Page 1 of 7 1234 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

CNC Spirograph

CNC Spirograph