Welcome to Our Community

Some features disabled for guests. Register Today.

No communication from laptop to UNO.

Discussion in 'Controller Boards' started by ca. 280, Jan 10, 2021.

  1. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    Hopefully this is the proper place for this, please feel free to move.
    Have been beating on this problem for days and were going nuts. There appears to be???no communication
    between the controlling software(Candle) and the CNC. There are 3 stepperonline 542 drivers, 2, 3amp
    steppers and 1 2.8 amp, Arduino UNO with breakout board. Pics attached.

    I Soldered up a test board so I know the driver to motor connection is fine. We
    can control the speed and direction of the steppers. All the DIR and PUL leads were verified and checked for any resistance. There is 5v on the positive side, 24v on the drivers.. Candle was checked for proper port, when connected it goes to "idle" indicating it is connected and coordinates change when jog keys are clicked. User command keys were programmed to send G code manually and tried. Tried 3 different cords, has a new UNO which my laptop had no problem downloading grbl. too.
    Nothing helps. the machine is motionless.
    Only inconsistency I have noticed is the TX/RX lights flash like crazy when Candle is turned on. I know it's something 100_1717.JPG 100_1720.JPG 100_1723.JPG simple that I am missing and it's killing me. Any suggestions gratefully appreciated.
     
  2. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    UNO doesn't require the CH340SER driver like Nano does it??
     
  3. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,039
    Likes Received:
    1,434
    Just a stab here, but have you tried switching $4 in grbl settings? If its 0 try 1. If its 1 try 0. Save and reset.
     
  4. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,287
    Likes Received:
    1,837
    cannot be that, the enable lines are not wired in at all.

    please confirm that the motors lock up when power is on. if they dont you have a power problem, if they do you have a step/dir wiring problem.

    the flashing lights on the Uno mean that Candle is talking to the Uno ok. (BTW Candle has not been updated in years so you may want something more up to date like OpenbuildsCONTROL or bCNC)
     
    sharmstr likes this.
  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,039
    Likes Received:
    4,123
    Drivers not connected to Power Supply?
    upload_2021-1-11_15-33-21.png
     
    sharmstr and David the swarfer like this.
  6. JustinTime

    JustinTime Veteran
    Builder

    Joined:
    Dec 18, 2013
    Messages:
    759
    Likes Received:
    253
    :D :D :D
     
  7. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    Thanks for responding 100_1731.JPG
    Drivers have power. Photo shows test circuit attached. Can control the pulse with the pot and direction by pressing the button. All work. Originally
    checked continuity on the limit switches, now they are completely disconnected. "candle" consol shows grbl 1.1h installed, also $4=0.
    TX and RX flash constantly even when no info is being exchanged. Guess next step is to try your app recommendations.
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,039
    Likes Received:
    4,123
    Applications constantly poll Grbl for position feedback to update the DROs - i.e NORMAL behaviour

    Lets eliminate CANDLE, try OpenBuildsCONTROL from software.openbuilds.com

    Make sure you didnt cross your step/dir wiring (step to dir, and dir to step for example)
     
  9. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    Switched to openbuilds control..no change

    verified all the connections again.

    Can I ground the PUL pin directly on the driver without damaging anything and see what happens???

    It acts like it is not going low though putting the meter across a ground and 5v pin on the Arduino gives me a reading
    so I assume the ground is present.
     
  10. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,039
    Likes Received:
    4,123
    Pul+ should be going HIGH (signal from Grbl pin). The other pin should be GNDed
    And all your GNDs (including from the Arduino) should join together
     
  11. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    The drawing I got off this forum said attach the DIR and PUL plus pins to 5v and the negative
    to the Arduino outputs so their were no changes to grbl. I'm confused!!
     
  12. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    Pic is under Cnc builds/unknown terms. Both Giarc and Kyo said + pin is 5v .
    I did just notice that the enable + pin has 5v though the neg. is not connected.
    Could that be it??
     
  13. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,039
    Likes Received:
    4,123
    No, enable (when nothing is connected) is already enabled (at least on the dq542ma's)

    Kyos wiring is one option, but i prefer the other way round. May very well be your issue right there
     
  14. JustinTime

    JustinTime Veteran
    Builder

    Joined:
    Dec 18, 2013
    Messages:
    759
    Likes Received:
    253
    @ca. 280, if you didn't solve your problem yet, try changing the common on the pulse and direction to the ground, or negative, and have the positive controlled by Arduino.
     
  15. ca. 280

    ca. 280 New
    Builder

    Joined:
    Aug 16, 2015
    Messages:
    74
    Likes Received:
    8
    Thanks to all who responded. Switching the leads, ground on the - pin and the + pins to the arduino did indeed
    fix the problem. That being the case, when would you ever use the drawing I was referred to that put
    5v on the + pin?? Is it associated with wiring the enable pins?? Any way on to setting the parameters.
    Thanks again.
     
  16. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,039
    Likes Received:
    4,123
    Refer to gnea/grbl

    But the "signal to + input" is more standard, and also the Grbl default.

    The only reason one would wire it the other way, is if the drivers needed a higher current to switch - as an arduino pin can sink more current that it can source. Think chinese stepper drivers. The good ones like DQ542, DM542, DM556, etc have decent inputs that switch fine with a couple mA
     
    David the swarfer likes this.
  17. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,287
    Likes Received:
    1,837
    or if you had a breakout board (BOB) with open collector outputs, they can only pull down so you get an 'active off' signal.
     

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