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

    RRF CNC Pendant problem

    Scheduled Pinned Locked Moved
    CNC
    3
    11
    386
    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.
    • Alexlin3dundefined
      Alexlin3d
      last edited by

      Dear everyone

      I created Pendant as directed by the DUET3D official website, but now there are some strange problems.

      1.When the arduino micro pro is brushed and the pulse is sent through the knob, the LED at the sending end of arduino does not flash, and the LED indicator of RX TX is always on. I'm not sure if it is normal.

      2.I use the FLY CDY mainboard and connect to the TX0 pin of Arduino via the RX pin of the mainboard. Because I do not use Panel, I only connect 5V COM and TX0.

      3.This problem makes me unable to judge whether Arduino communicates with CDY, but after I press the emergency stop button, the mainboard will restart, but any other function will not work.

      If any friends can help me solve this problem, I would like to thank you very much and look forward to your reply.2.jpg 1.jpg

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Alexlin3d
        last edited by

        @Alexlin3d I asked @dc42, he has suggested that:

        • You may need to connect the Arduino Rx pin to Vcc or enable the internal pullup on that pin, to stop is receiving a continuous break. Rx should be left unconnected (ie to the mainboard) but pulled high.
        • check with a multimeter that the encoder is wired correctly and generating pulses when it moves.

        If you connect your PC running a serial terminal to the USB on the mainboard, and enable debug of the Gcodes module with M111 P3 S1, you should see any Gcodes that are sent by the Pendant.

        Other than that, I would double check all your wiring, possibly simplify it until you get the correct response. Also see this thread about skipping encoder pulses (though you should be getting commands from the pendant before this happens): https://forum.duet3d.com/topic/36798/cnc-pendant-encoder-skipping-step

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        Alexlin3dundefined 1 Reply Last reply Reply Quote 0
        • Alexlin3dundefined
          Alexlin3d @droftarts
          last edited by

          @droftarts
          Dear droftarts

          Thank you very much for your reply
          I organized the wiring and connected the wires strictly according to the course.
          RX pin has been wired to VCC
          The problem remains unresolved
          I found some problems with the program changes you mentioned
          In the( RotaryEncoder. h )file, line 5( # include<Encoder. h>)prompts that there was no file during compilation (I'm not very good at Arduino)
          So my program didn't change
          If the communication between CDY mainboard and Arduino goes wrong, I won't react when I press the emergency stop button, right? But in fact, the emergency stop button will cause the CDY mainboard to restart.Does this mean that there is no problem communicating Arduino with CDY mainboard?
          I use the FLY CDY V3 mainboard to communicate with Arduino

          c2d91c41328ad15e9839123973beb50.jpg 92e5f4a24adfe7b75d2f38d2c77b7e8.jpg 192152adf027fe67ba6eb28ae95f860.jpg d339cf39b33ef40027f8b5527a2b2fb.jpg b3390a7ab636102277037b30dd561c8.jpg

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Alexlin3d
            last edited by

            @Alexlin3d Honestly, I don't know why it is not working for you. I have not built this device before, so don't have a working example to test. I can't check your wiring, because there is no pinout information from your buttons and encoder. I don't know how to setup your CDY mainboard serial port is set up correctly, as this is not an officially supported board by Duet3D (ask @jay_s_uk and/or @gloomyandy). As far as I'm aware, the Arduino code works. So I don't know where yours is going wrong.

            All I can suggest is that you enable logging as I suggested in my previous post, and see if anything is received, and/or simplify the connections until it starts working.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @droftarts
              last edited by

              @droftarts @Alexlin3d M122 P209 confirms what pins have been set for the serial connection.
              If emergency stop works then the UART connection is functional which points to an error elsewhere.
              I've ordered an Arduino pro micro to play with

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              droftartsundefined Alexlin3dundefined 2 Replies Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @jay_s_uk
                last edited by

                @jay_s_uk said in RRF CNC Pendant problem:

                If emergency stop works then the UART connection is functional

                Unless it's just shorting out the board!

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                • jay_s_ukundefined
                  jay_s_uk @droftarts
                  last edited by

                  @droftarts there is that

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  1 Reply Last reply Reply Quote 0
                  • Alexlin3dundefined
                    Alexlin3d @jay_s_uk
                    last edited by

                    @jay_s_uk

                    I send M122 P200 the DWC give me these feedback:

                    serial.aux.rxTxPins = {A.10, A.9}
                    tx1,btnenc = A.9
                    rx1,lcdrs = A.10

                    This is the TX RX pin information I think is relevant.
                    I use PA10 as the serial port receiving terminal to connect with Arduino TX0

                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @Alexlin3d
                      last edited by

                      @Alexlin3d that looks correct so the pins are being set correctly in the firmware

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      Alexlin3dundefined 2 Replies Last reply Reply Quote 0
                      • Alexlin3dundefined
                        Alexlin3d @jay_s_uk
                        last edited by

                        @jay_s_uk

                        Hi Dear

                        Thanks for your feedback verymuch

                        I used a serial monitor to verify that Arduino sent a message
                        The good news is I found the problem
                        Bad message is that the serial monitor cannot accept any message sent by Arduino
                        I use an Arduino micro pro clone, using AVR_ATmega32U4 processors
                        So I downloaded the Arduino code from the tutorial and burned it directly into Arduino. What should I change?

                        1 Reply Last reply Reply Quote 0
                        • Alexlin3dundefined
                          Alexlin3d @jay_s_uk
                          last edited by

                          @jay_s_uk

                          I connected without using Panel

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