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

    Arduino nano+duet3mini

    Scheduled Pinned Locked Moved
    Accessories and Add-ons
    3
    14
    693
    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.
    • Vladimir_Uundefined
      Vladimir_U
      last edited by

      Hello. I plan to make an LED backlight based on the blvmgn project: https://github.com/mule1972/NeoPixelBLVmgn The sketch for arduino was corrected to use one LED strip for 16 diodes. The sketch is installed on an arduino nano. At startup, the LEDs light up and go out as intended in the sketch. But I can't set up a connection with duet3mini. Connected according to the instructions to the io1 port. Rx-io1.out, Tx-io1.in, Gnd-Gnd. In the config.g there is a command M575 P2 S0 B57600. But there is still no connection(
      Maybe someone has some ideas? What did I do wrong?
      Yes, I know that duet3mini supports neopixels without arduino. But with arduino it turns out very nicely.
      222.png

      alankilianundefined 1 Reply Last reply Reply Quote 0
      • alankilianundefined
        alankilian @Vladimir_U
        last edited by alankilian

        @vladimir_u Do the Rx and Tx LEDs on the nano blink when you try to send messages to it?

        I'll take a look since I don't know, but sometimes you need a week pullup to 5V on one or both of those lines.

        OH! Are you doing M575 P2 to use the io_1 serial port instead of the io_0 serial port? LINK.

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
        • Vladimir_Uundefined
          Vladimir_U @alankilian
          last edited by

          @alankilian Only Tx flashes at the same interval

          alankilianundefined 1 Reply Last reply Reply Quote 0
          • alankilianundefined
            alankilian @Vladimir_U
            last edited by

            @vladimir_u Are you doing M575 P2 to use the io_1 serial port instead of the io_0 serial port?

            I really don't know a lot about this, so I'm kind of guessing and hoping it will help.

            I hope you understand.

            SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

            Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
            • Vladimir_Uundefined
              Vladimir_U @alankilian
              last edited by

              @alankilian I will now try to switch to port and io_0 and configure it as M575 P1 . But I think I've already done that today😵

              alankilianundefined 1 Reply Last reply Reply Quote 0
              • alankilianundefined
                alankilian @Vladimir_U
                last edited by

                @vladimir_u Do you think Tx is flashing when the Duet is trying to talk to the Arduino?

                If so, swap the Tx/Rx pins.

                SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                Vladimir_Uundefined 2 Replies Last reply Reply Quote 0
                • Vladimir_Uundefined
                  Vladimir_U @alankilian
                  last edited by

                  @alankilian I used port io_1 after reading these messages: https://forum.duet3d.com/topic/24557/neopixels-duet3-mini5/14?_=1643657549949#

                  1 Reply Last reply Reply Quote 0
                  • Vladimir_Uundefined
                    Vladimir_U @alankilian
                    last edited by

                    @alankilian changing pins Rx/Tx does not give results.
                    changing the port from io_1 to io_0 with the command M575 p1 does not give results.
                    Connecting 5 volts to the port does not give results.
                    How to access arduino from the console?

                    1 Reply Last reply Reply Quote 0
                    • Vladimir_Uundefined
                      Vladimir_U
                      last edited by

                      here is a section of the arduino nano circuit. can the connection with the ch340 interfere with communication?
                      Снимок экрана 2022-02-01 010645.png

                      1 Reply Last reply Reply Quote 0
                      • Vladimir_Uundefined
                        Vladimir_U
                        last edited by

                        I removed the resistors r6 and r7 from the board, which connect the tx and rx with the ch340. the connection has appeared.Both on port io_0 and io_1, depending on the settings of the m575. Some functions work. We need to correct the sketch. But it will be inconvenient to flash now...

                        alankilianundefined 1 Reply Last reply Reply Quote 0
                        • alankilianundefined
                          alankilian @Vladimir_U
                          last edited by

                          @vladimir_u

                          If I'm understanding you correctly, you should be able to use the other serial port if you update the sketch.

                          ALSO, you did add the level shifter between the Arduino Tx line and the Duet right?
                          So you don't ruin your duet.

                          SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                          Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
                          • Vladimir_Uundefined
                            Vladimir_U @alankilian
                            last edited by

                            @alankilian yes, I have heard that it is possible to assign digital pins for rx and tx. But I've never programmed an arduino. I need to figure out how to do this.
                            I didn't use the level shifter. It is stated that the io_0-io_4 ports on the duet3mini have resistors and are capable of receiving a signal up to 30V.

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

                              @vladimir_u the Arduino Pro Micro and Leonardo are easier to interface to a Duet. They accept 3.3V level signals when powered from 5V, and the serial port is separate from the USB port used for programming.

                              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

                              Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
                              • Vladimir_Uundefined
                                Vladimir_U @dc42
                                last edited by

                                @dc42 Yes, I know about it. But I didn't have these arduino models in stock. It was interesting to connect the "nano" that I had. And everything worked out...

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