Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: compewter_numerical on June 22, 2020, 11:35:40 PM

Title: Arduino read ADC value into Mach4 register via TCP
Post by: compewter_numerical on June 22, 2020, 11:35:40 PM
Here is an example of an Arduino connecting to a wxServer in Mach4 to send data to a register, read in from an ADC.

The profile and arduino sketch are attached.

Code: [Select]
https://youtu.be/KPRF2hKFgYE
wxServer/Client examples:

Code: [Select]
https://github.com/pkulchenko/wxlua/blob/master/wxLua/samples/server.wx.lua
https://github.com/pkulchenko/wxlua/blob/master/wxLua/samples/client.wx.lua