G2 on Arduino due not sending PWM

Home Forums TinyG TinyG Support G2 on Arduino due not sending PWM

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10259
    niklas
    Member

    I’m trying to get G2 working with Arduino Due. Ive tried with the precompiled elf files and compiling them myself. I know that my stepper shield works fine since it works with Arduino Uno.

    When connecting to the flashed Uno with G2 firmware in CoolTerm I get the following message:

    {“r”:{“fv”:0.970,”fb”:78.02,”cv”:5,”hp”:3,”hv”:0,”id”:”02130215d40″,”msg”:”SYSTEM READY”},”f”:[1,0,0]}
    tinyg [mm] ok>

    When writing “g1 f20 x100” the data seems to work, i’m getting a list with the changing coordinates but not there are no changes in the digital pins. And the TX is not blinking?
    The digital outputs fine when uploading the Arudino blink sketch.

    Did I get a broken Due or am I missing something?

    #10260
    niklas
    Member

    writing {me:10} changes the voltage of the pin 8 from 3.26V to 2.99V for 10 seconds

    #10261
    cmcgrath5035
    Moderator

    I’m having a bit of difficulty understanding your terminology.
    Here is what I think I see:

    You have a ‘known good’ Gshield that works with Uno and perhaps GRBL(?)

    You connected the Gshield to a Duo, flashed the Duo with firmware $fb=78.02 downloaded from somewhere. That is a bit confusing, since the Gshield fw at

    is $fb=78.03 , ??
    Where did you get $fb=78.02 ?

    You are using Coolterm to interface with G2, that start up response looks OK.

    What pins are you referring to when you write “there are no changes in the digital pins.” ? Are you measuring at the inputs to the Gshield stepper drivers? H
    ow are you measuring, Multimeter?
    Difficult to see brief PWM pulses on a STEP pin with a multimeter.

    From your second post, I assume that was a measurement at a Motor Enable pin. Duration is correct, so G2 seems to be running, but you should be measuring logic low for 10 seconds.

    Do you have steppers connected to Gshield?

    How are you powering Due and Gshield?

    Can you dump your parameter set to a cloud file (dropbox, etc.) and provide a URL?

    #10262
    niklas
    Member

    Thanks for the answer, heres the answers.

    You have a ‘known good’ Gshield that works with Uno and perhaps GRBL(?)

    I’m using GAUPS 1.1, and what i’ve read, it should work with TinyG2.The pinout seemed to be the same as gShield. Found some people confirming that it works, but they didn’t write about any modifications.


    Where did you get $fb=78.02 ?

    I’ve tried some different precompiled ones and compiled different versions myself. The one on that link actually does give me 78.02 for some reason. Just tried downloading and flashing it again with same result. Doing that on OSX btw.

    What pins are you referring to when you write “there are no changes in the digital pins.” ?
    Are you measuring at the inputs to the gShield stepper drivers? H
    ow are you measuring, Multimeter?

    Yes, the inputs on the shield and with a multimeter. that might be the problem. But the drivers are not activated so there must be something wrong. I think I have a logic analyser somewhere and could try that out.


    Do you have steppers connected to Gshield?

    Most of the time while testing to see the results directly, but nothing is getting powered.

    How are you powering Due and Gshield?

    The GAUPS board is powered with 12v and Due with USB power, do I need an external power source for the DUE?

    Can you dump your parameter set to a cloud file (dropbox, etc.) and provide a URL?

    Heres a paste from a fresh build.
    http://pastebin.com/CwEE0LNH

    #10263
    niklas
    Member

    An external power source for the DUE did not help.

    I installed everything to an old Windows 7 computer, flashed the bin file there. I’m getting the same version details in the log and no output to the motors.

    Getting kinda puzzled and not sure what more I could try.

    #10265
    niklas
    Member

    Right, and the shield takes uses the IOREF to choose the voltage rating. I am also testing with stepper drivers that work with 3.3V, so that is not the issue. As far as I understand, all the hardware should be ok. I’m a little afraid that I got a faulty DUE, but its hard to know since I don’t have another one to test with.

    Does it seem like everything else is ok? Should return it and change it to a new one?

    #10269
    niklas
    Member

    Turned out to be a faulty Arduino DUE. I got a new one and its working now. Feel free to remove this post since its not useful for others. And thanks for the help 🙂

    #10276
    cmcgrath5035
    Moderator

    I’ll leave it here for others to find on search.
    Yours is the first confirmed bad DUE I have seen, lucky you!

    Good for others to see your troubleshooting process.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.