{"id":13696445,"url":"https://github.com/nraynaud/webgcode","last_synced_at":"2025-04-14T15:54:07.663Z","repository":{"id":7680294,"uuid":"9043251","full_name":"nraynaud/webgcode","owner":"nraynaud","description":"Online G-Code simulator, controller code for STM32F4-Discovery and google chrome extension to send the code to it.","archived":false,"fork":false,"pushed_at":"2024-01-10T12:27:31.000Z","size":41340,"stargazers_count":391,"open_issues_count":16,"forks_count":169,"subscribers_count":47,"default_branch":"gh-pages","last_synced_at":"2025-03-28T04:41:46.393Z","etag":null,"topics":["control-board","gcode-generation","gcode-interpreter","toolpath"],"latest_commit_sha":null,"homepage":"http://nraynaud.github.io/webgcode/webapp/visucamTest.html#/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nraynaud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-03-27T00:14:32.000Z","updated_at":"2025-03-11T13:10:12.000Z","dependencies_parsed_at":"2024-11-13T00:45:30.253Z","dependency_job_id":null,"html_url":"https://github.com/nraynaud/webgcode","commit_stats":{"total_commits":946,"total_committers":6,"mean_commits":"157.66666666666666","dds":0.009513742071881603,"last_synced_commit":"79999f1b4f763b44297ab9cd7a94fe04d8aa640f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraynaud%2Fwebgcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraynaud%2Fwebgcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraynaud%2Fwebgcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraynaud%2Fwebgcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nraynaud","download_url":"https://codeload.github.com/nraynaud/webgcode/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248911792,"owners_count":21182152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["control-board","gcode-generation","gcode-interpreter","toolpath"],"created_at":"2024-08-02T18:00:40.291Z","updated_at":"2025-04-14T15:54:07.626Z","avatar_url":"https://github.com/nraynaud.png","language":"JavaScript","funding_links":[],"categories":["Other"],"sub_categories":["Web Applications"],"readme":"Webgcode\n========\nThe beginning of a browser integrated CNC milling machine.\n\nA bit of History\n================\n\nI have a Mac, and there are no real software to control a milling machine from that kind of computer. I decided to hack \nsome random pieces of technology together.\nOther people might be interested so I did everything in web technologies for easy trial.\n\nI am trying to remove the dependency on g-code, because I don't like it, but I might retain some compatibility, so that \nusers can tip toe into the system.\n\nI started by creating a g-code parser with a viewer, and generated the steps from that and was able to send them to the embedded system. \nThat's when I decided on the name of the project. \n\nToday, there is no explicit way to send some g-code into the system. \nThe parser is there, it's plugged etc. I just don't have an UI to put it into the system. \nI'm really into creating my own toolpath now, so it's an incentive to develop the code when I need something. \nIt's also a trap, because anything new (say a drag knife, a laser head or an extruder) needs few weeks of development before being able to use it.\n\nWeb Stuff\n---------\n\n[![visucam screen capture](images/visucam_pockets_thumb.png)](images/visucam_pockets.png) [![visucam screen capture](images/visucam_3D_thumb.png)](images/visucam_3D.png)\n\nA preliminary CAM system for toolpath generation is present here: http://nraynaud.github.io/webgcode/webapp/visucamTest.html#/\n\nThe application can import (drop the file on the window) STL, SVG, gerber and excellon file formats.\n\nThere is a g-code simulator here: http://nraynaud.github.io/webgcode/ (that's where the name of the project comes from).\n\nController Board\n----------------\n\n[![Controller board schematics](images/DISCOVERY_interface_thumb.png)](images/DISCOVERY_interface.png)\n\nThe controller is a STM32F4-DISCOVERY board directly connected to the stepper drivers isolators (open drain configuration).\nThere is a USB cable between the board and the laptop, where a Chrome application controls the machine.\nThe controller is quite dumb, it gets a list of steps, direction and their timing from the computer and executes them. \nThe interpolation is entirely done offline on the computer.\n\nPushing the user button (blue) enter the manual control mode, receiving a program on USB automatically exits the manual mode.\nThe orange LED is on when manual is on. The manual control is made through joysticks.\n\nThe controller is also connected to the VFD through an SPI isolated breakout board.\n\nThe wiring is described in the [main.c](interpolator/main.c#L10) and [manual.c](interpolator/manual.c#L11) files.\n\nYes, I called the directory \"interpolator\" and no, there is no interpolation code in it.\n\nIO Board\n--------\n\n[![IO board schematics](images/IO_interface_thumb.png)](images/IO_interface.png)\n\nThere is an IO board to connect the MCU to various things, mainly the Huanyang VFD. On this last one, the output \noptoisolators (UPF and DRV) were not populated, so I just bought some on eBay and soldered them on (ok, I admit, I might\n have shorted the pins while the chips were in the mail, please don't tell my mom, yes she knows what 300VDC is, \n she taught me when I was a kid).\nThe board consists of one 74HC595 and one 74HC165, behind a digital isolator; the MCU communicates over SPI to get isolated IOs.\n\n\nChrome Application\n------------------\n\n[![controller screen capture](images/controller_full_thumb.png)](images/controller_full.png)\n\nOn the computer, you can send the program to the machine. The application's main part is simply an iframe with the normal \nCAM html page in it (they talk with messages).\n\nThe USB protocol is custom since I couldn't find any standard, tell me if you know of any USB protocol to send sequences \nof steps to a machine (there is no g-code interpolator in the embedded system).\n\nThis is all Chrome technology in the hope to remove OS re-compilation/deployment efforts.\n\nLicense\n-------\n\nThis code is licensed under MIT and Affero GPL double licensing.\n\nContact\n-------\n\nTo contact me about anything, you can use the issues system, there is no traffic on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnraynaud%2Fwebgcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnraynaud%2Fwebgcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnraynaud%2Fwebgcode/lists"}