This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
Pendant MPG DRO wireless for grblHAL CNC #313
stevempotter
started this conversation in
Ideas
Replies: 2 comments 22 replies
-
Take a look at the I2C keypad code. It might be possible to just generate the codes that the plugin expects. I'd be happy to help out with the hardware side of things as this is a topic near and dear to me. I have several designs that use the I2C header that could easily be adapted. Perhaps this topic should be moved to grblHAL/Plugin_I2C_keypad though there isn't a discussions section. Terje, anything against enabling that? |
Beta Was this translation helpful? Give feedback.
19 replies
-
I've placed 3 kicad projects on I2C Headers. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am planning to build a wireless pendant for my CNC (MPCNC Primo, controlled by Phil Barrett's Teensy 4.x Breakout Board).
I think that to use a pair of ESP32s and their ESP-NOW functionality will work well, based on some initial tests.
If you are not familiar with ESP-NOW, it is a low-latency proprietary communications protocol intended for controlling smart lighting and whatnot. It connects instantly and stays connected (paired) as long as the devices are powered on and in range (>100m), and each message can carry 250 bytes. They can power up and reconnect in milliseconds when switched on. Com can be encrypted if desired. All that is needed to pair devices is their MAC address. It does not use Wifi, but does use the 2.4GHz frequency range. You can use any combination of bidirectional broadcasting or narrowcasting, one-to-one, one-to-many (up to 20 devices). Here is more info: https://www.espressif.com/en/products/software/esp-now/resources
Here are the ESP-32 boards I am using: https://www.tinytronics.nl/shop/en/platforms/ttgo/lilygo-ttgo-t-display-v1.1-esp32-with-1.14-inch-tft-display
My question is: if we call the ESP-32 in the pendant the Sender and the one in the grblHAL box the Receiver, how do I go about interfacing a high-spec MCU like the ESP-32 to the Breakout Board running grblHAL? There will also be info going the other way (from Receiver to Sender), such as the current coordinates for the small LCD on the ESP-32 board. Do I use its ethernet connection, I2C, USB, or something else? Does the firmware already have hooks to take commands from pendants with lots of knobs and buttons (not a touchscreen or just a keyboard/keypad). Raised on old Tektronix oscilloscopes, I am a knob and button lover. Much preferred over touchscreen or mouse-controlled interface on a computer, or complex menu hierarchy to click through with one encoder button. I will be using a 1000 pulses/rev encoder for the MPG, and also an RC joystick with Hall effect sensors.
Any advice on how to get started on the interfacing will be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions