Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    sending GCode with arduino (confirmation of my understanding)

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    126
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Estebanundefined
      Esteban
      last edited by

      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).
      Arduino

      void 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.

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Esteban
        last edited by

        @Esteban why not connect the Arduino to the second serial port on the 6XD, on IO1?

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        Estebanundefined 1 Reply Last reply Reply Quote 0
        • Estebanundefined
          Esteban @dc42
          last edited by

          @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 ?

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @Esteban
            last edited by

            @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.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA