Home › Forums › TinyG › TinyG Support › G2 on Arduino due not sending PWM
- This topic has 7 replies, 2 voices, and was last updated 7 years, 10 months ago by cmcgrath5035.
-
AuthorPosts
-
February 22, 2017 at 3:24 am #10259niklasMember
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?
February 22, 2017 at 3:37 am #10260niklasMemberwriting {me:10} changes the voltage of the pin 8 from 3.26V to 2.99V for 10 seconds
February 22, 2017 at 6:06 am #10261cmcgrath5035ModeratorI’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?
February 22, 2017 at 7:18 am #10262niklasMemberThanks 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/CwEE0LNHFebruary 22, 2017 at 8:36 am #10263niklasMemberAn 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.
February 22, 2017 at 2:05 pm #10265niklasMemberRight, 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?
February 23, 2017 at 5:57 am #10269niklasMemberTurned 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 🙂
February 25, 2017 at 6:44 am #10276cmcgrath5035ModeratorI’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.
-
AuthorPosts
- You must be logged in to reply to this topic.