I wish to send G-Code from a Nano to a Smoothieboard (actually a MKS Makerbase board) via USB for the purposes of controlling 4 Stepper motors but so far, I have had no success. As a test, I have a simple programme running on the Nano to write a G-Code statement using Serial.println once every second.
The relevant information is as follows:
-
The sent G-codes appear OK when sent from Nano to the Arduino IDE Serial Monitor via USB.
-
The Smoothieboard accepts G-Code (and operates correctly) when sent from an application (Pronterface) running on my PC via USB .
-
With the Nano connected to the Smoothieboard via USB, nothing happens.
-
Baud rates are set to 115200 on Nano, Smoothieboard and Arduino IDE Serial Monitor (I also tried slower speeds).
-
I put an oscilloscope the data lines of the USB port and there appears to be data being transferred continuously with no apparent difference when a G-Code is sent in cases 1, 2 and 3 above.
I have not found anyone trying this so far and I am wondering if there is something fundamentally wrong. Most documentation on Arduino serial communication refers to using the Tx/Rx pins while the USB ports uses D+ and D- for a differencial signal.
Any ideas welcome.