Welcome to Our Community

Some features disabled for guests. Register Today.

Cannot get a Raspberry Pi to connect to XPRO3 controller in UGS

Discussion in 'Control Software' started by KEN MACDONALD, Dec 14, 2019.

  1. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    45
    Likes Received:
    4
    Hi try as I may I cannot get my CNC XPRO 3 controller to connect to my Raspberry Pi in UGS. It comes up with 2 available ports. ttyUSB0 and ttyAMA0. It connects everytime to my MacBook. Anyone got any ideas on what to try?
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,028
    Likes Received:
    4,118
    1) TTYUSB0 should be it (AMA0 is the UART on the GPIO pins)
    2) Check that you have the correct baud rate selected (115200 for Grbl 1.1x)
     
  3. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    45
    Likes Received:
    4
    Hi I thought it should be, but it will not connect to that. Baud rate is correct.
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,028
    Likes Received:
    4,118
    Grab a screenshot or two? Lets see if we can spot something off
     
  5. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    45
    Likes Received:
    4
    Hi I checked by typing dmesg into terminal and it said FTDI USB Serial Device now attached to ttyUSB0. I loaded UGS and it still would not connect so I reflashed the Raspbian operating system and reinstalled UGS. It now appears to work so who knows what was wrong with it. Anyway thank you for your help.
     
    sharmstr likes this.
  6. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    45
    Likes Received:
    4
    Still got problems with this setup. Although the Pi connects to the port ok now, it disconnects randomly when running a job. I thought it was the controller so i tried connecting with my MacBook and it ran perfectly on 3 different jobs of about 10 - 15 minutes each.
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,028
    Likes Received:
    4,118
    Possible reasons:
    1) Power supply to the Pi: Make sure you are using the official Pi Power supply, power dips will cause all kinds of issues. The official PSU has thicker cables, and 5.1v output to help
    2) EMI: As the Pi as a bare board, without enclosure, its more susceptible to interference
     
  8. KEN MACDONALD

    Builder

    Joined:
    Dec 25, 2015
    Messages:
    45
    Likes Received:
    4
    Hi thank you. I am using the official pi power supply. Its the latest version.
    • 5.1V / 3.0A DC output
    EMI: The pi is fixed to the back of an official 7" touch screen, all of which is in a case. I'm not sure how i can screen it.
     
  9. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,028
    Likes Received:
    4,118
    Distance does wonders for stopping EMI travelling through the air (spacing it away from any high power cables, motor cables, mains etc)
    and for EMI coming down the wire, a couple cheap clip-on Ferrite Cores (easpecially if you loop the wire then clip it on to the loop) does miracles too:

    See

     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice