GCode Jogging Keyboard #3262
Replies: 7 comments
-
Posted at 2023-03-20 by @allObjects @idobh2, really NICE work! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-21 by @gfwilliams That's really neat! Have you managed to assemble the final PCB yet, or are you waiting for it to come back? So does your 3D printer have the web server itself, or are you using something like Octoprint? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-21 by idobh2 Waiting for the PCB to be delivered - hopefully in the next day or two... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-23 by idobh2 Update
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-24 by @gfwilliams Wow, looks great! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-31 by idobh2 And the (almost) final result - with the charging circuit, an enclosure and printed key caps:) Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-31 by @gfwilliams Wow, very cool! I hadn't even considered printing key caps! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-20 by idobh2
I wanted a jogging keyboard for my CNC, and obviously (why?!) wanted to build it myself.
Searching "ESP32 Javascript" on google lead me to Espruino and i'm really embarrassed I didn't know of it until now. This is amazing! Wow the experience of using JS, with all of its ecosystem, for microcontroller development is simply awesome! A huge thanks to @gfwilliams and the team for developing and maintaining this
To the project:
To those not familiar with CNC work - Positioning the tool head at a certain position is part of the setup process. This is how you set the starting position of the program. It is not very convenient doing it with the controlling computer, and better off being done near the machien itself. CNC machines are usually controlled with GCode (just like 3D printers).
It's an ESP32 based project, with an rotary encoder (w/push button), a 4x3 button matrix, and an LCD. The whole thing will be mounted on a custom PCB and powered by a rechargeable 18650 battery. And a 3D printed case :)
Each button in the matrix will send a GCode command set to jog the toolhead (X, Y and Z), and the encoder is used to set the jogging increment. 6 more button from the matrix will be used for custom macros.
Since a lot of modern controllers host a web server to control the machine, the GCode is sent to the controller via http requests.
The keyboard also exposes an http server with a portal to edit settings like the main network to connect to, the controller server address and the implementation to use, as well as the GCode to send per each button.
The project is written in TypeScript and transpiled suing @swc/core to ES5 before sending to the device - I hope the world appreciates enough how crazy it is this sentence is written about a microcontroller project :)
Github - https://github.com/idobh2/gcode-keyboard
In the uploaded files you can see the PCB design and here as a video of a breadboard prototype with 4 buttons controlling my 3D printer through OctoPrint (which, as said, is similar to controlling a CNC machine)
More updates to come :)
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions