Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Netduino CNC

CNC stepper GCode

  • Please log in to reply
10 replies to this topic

#1 David S

David S

    Member

  • Members
  • PipPip
  • 11 posts

Posted 05 March 2014 - 01:15 PM

Hi everyone, 

 

some time ago I was working on a GCode parser for the netduino. I wanted to share it with you guys, maybe you find it useful in your own home-CNC projects. 

 

It has been sitting on my disk for a while now and I finally found the time to upload it to Github. 

 

It includes a parser that runs on the netduino and a 3D toolpath viewer I used for debugging the parser on the PC side. Here is a screenshot of the viewer: 

 

09%203D%20support.png

 

 

And here is the code:

 

https://github.com/d.../Netduino-gcode

 

Hope that you find it useful! It was great fun to build it. 

 

Cheers!

 

David



#2 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 05 March 2014 - 04:42 PM

Nice im going to have to test this out and scrap my code I was writing, haha. Thanks


Netduino Plus 2


#3 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 05 March 2014 - 05:35 PM

Just tested On my Netduino Plus 2 running .Netmf 4.3 after adding the references and deploying im getting an exception when trying to connect.

xun9.jpg


Netduino Plus 2


#4 David S

David S

    Member

  • Members
  • PipPip
  • 11 posts

Posted 05 March 2014 - 07:59 PM

Hi,

Maybe you have found it by now. You have to create a config file "gcodeviewer.ini" in the exe directory. This is a .INI file. Add a line with

cnc.address=the IP of your netduino

Sorry, I forgot to document that on the readme.

Cheers!

David

#5 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 05 March 2014 - 10:59 PM

Alright found that one last question which project do we deploy to the Netduino. I see two solutions NetduinoDevice2  and gcodephaser-Netduino

but when deploying either one of these it deploys quite fast and doesn't go through the regular steps (**As in lights on the Netduino lights up, debugger assembles everything, and then says ready)  


Netduino Plus 2


#6 David S

David S

    Member

  • Members
  • PipPip
  • 11 posts

Posted 06 March 2014 - 08:53 AM

Select the build configuration "Netduino Debug" and set NetduinoDevice2 as your startup project. Hit F5 and it should deploy and run. 

 

The led on the netduino will blink and finally off once it is listening for connections. 



#7 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 22 March 2014 - 03:23 AM

The program seems to timeout every time after connecting cant seem to find the problem


Netduino Plus 2


#8 David S

David S

    Member

  • Members
  • PipPip
  • 11 posts

Posted 22 March 2014 - 09:36 AM

Hi twinnaz, 

 

if you try to connect to the netduino on port 82 with a telnet client (putty, for instance), can you connect? The firmware should print a string like "Dave's CNC interface 0.70 with G-Code" when you connect. 

 

Cheers!



#9 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 22 March 2014 - 03:47 PM

There was an unreachable code socket.Close() in lineserver.cs

I just changed it and everything's working now  

            commSocket.Close();
                        }
                        socket.Close();

                        Debug.Print("Netduino server stopped");
                    }
                }

Netduino Plus 2


#10 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 25 March 2014 - 07:52 AM

Hi David,

That's pretty awesome. Do you have any videos showing this off in action, etc.? We'd love to share them.

Chris

#11 David S

David S

    Member

  • Members
  • PipPip
  • 11 posts

Posted 28 March 2014 - 04:40 PM

Hi Chris, 

 

That's pretty awesome. Do you have any videos showing this off in action, etc.? We'd love to share them.

 

I made some videos long time ago when I was developing it, but have to dig in backups to find them. I'll upload what I find and post back. 

 

Cheers!







Also tagged with one or more of these keywords: CNC, stepper, GCode

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.