sending GCode with arduino (confirmation of my understanding)
-
Hello everyone,
I'll keep it simple and quick.
I've already read the different threads that talk about sending data in GCode from an Arduino but I want to be absolutely sure to understand everything, especially wiring and a little code.
A thread presents this schematic https://forum.duet3d.com/assets/uploads/files/1697735659312-duet3d-cnc-pendant-wiring.png
Does it allow you to connect the 6XD, its Panel I7 and the Arduino without an additional board and send it GCode?
In my case (large multi-axis CNC) I won't be able to slide an SD card onto the motherboard. So I need the second method of connecting the Panel with the “panel duet” port. (The only difference is that the Arduino is directly connected to the io_0 pin).
Another related question. About the code (I'm not the strongest on this side).
Arduinovoid setup() { Serial.begin(57600); void loop() { // Send Gcode exemple Serial.print(g_code);
Will it be enough to send the information? (gcode is a text variable)
Duet 6XD Config.g
M575 P1 S0 B57600
Will it be enough to understand the information received?
Thank you in advance for your response.
To give more details: The goal is to create an ultra functional machine in “free access” of this fact to be able via a screen 10 inch touch connected to the Arduino to make a simple program for a fast and simple machining for all people. For example, you want to make 4 holes with 40mm and 110mm centres on a 500x500 plate, starting from the center. All you have to do is enter this information via a graphical interface, click on “ok” and you'll have your part back.
-
@Esteban why not connect the Arduino to the second serial port on the 6XD, on IO1?
-
@dc42 Et bien j'avoue ne y avoir penser, effectivement erreur de ma par j'ai louper l'information sur la documentation ... En revanche j'ai donc quand même bien besoin des deux résistance comme sur le schéma ou éventuellement d'un abaisseur logique ?
-
@Esteban :
Well, I admit I didn't think about it, actually it was my mistake, I missed the information in the documentation... On the other hand, I still need the two resistors as in the diagram or possibly a logic step-down?
The IO_ inputs on the 6XD can tolerate 5V so you don't need those resistors. Older boards such as Duet 2 need the resistors.