The device reads in the ADC values on two GPIO pins from the ESP32. Those values get converted to Gcode. The Gcode is sent every 250ms over a websocket via Wifi to the Serial Port JSON Server, which then forwards it to the TinyG over USB.
ChiliPeppr ESP32 for Lua Workspace
http://chilipeppr.com/esp32
ChiliPeppr CNC TinyG Workspace
http://chilipeppr.com/tinyg
https://www.youtube.com/watch?v=ITgh5epyPRk
