简体   繁体   English

使用 Node.js 将 Raspberry Pi 连接到 Windows PC | 制作远程 GRBL 控件

[英]Connecting A Raspberry Pi to a Windows PC Using Node.js | Making a Remote GRBL Control

I recently got a small 300mm bed CNC Machine that has it's issues, which isn't really relevant, but to fix those issues I need to ask my friend.我最近买了一台 300 毫米床身的小型 CNC 机床,它有问题,这并不重要,但要解决这些问题,我需要问我的朋友。 He has quite a lot of experience working with CNC Machines, but even when I screenshared the GRBL Software, he couldn't fix some problems that he said should be a simple fix, hence, the node.js app.他在使用 CNC 机床方面拥有丰富的经验,但即使我在屏幕上共享了 GRBL 软件,他也无法解决一些他说应该是简单修复的问题,因此,node.js 应用程序。 I would like to connect a Raspberry Pi up to the CNC Driver board, host a server on Heroku, and have him connect to the server.我想将 Raspberry Pi 连接到 CNC 驱动板,在 Heroku 上托管服务器,然后让他连接到服务器。 The server would then pick up his input, translate it into GCode, and push it to the Raspberry Pi (which would send it to the driver board).然后,服务器将接收他的输入,将其转换为 GCode,并将其推送到 Raspberry Pi(将其发送到驱动板)。 I know how to set up the server, even code it so that he can press a button and it translates to GCode, but my question is, how could the Raspberry Pi get the Node equivalent of a message telling it the GCode the user wants to push ?我知道如何设置服务器,甚至对其进行编码,以便他可以按下按钮并将其转换为 GCode,但我的问题是, Raspberry Pi 如何获得相当于一条消息的节点,告诉它用户想要的 GCode推 I have some experience with Node.js and have made a Chat Application, but this seems a little different.我对 Node.js 有一些经验并制作了一个聊天应用程序,但这似乎有点不同。 Thanks in advance.提前致谢。

I believe all the answers you'll need will be in this video我相信你需要的所有答案都在这个视频中

If you have issues with any of that, then we'll have a good reference point.如果您对此有任何疑问,那么我们将提供一个很好的参考点。 Best of luck.祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM