Forum Replies Created
-
AuthorPosts
-
aldenMember
No, this is not right. You should be able to move very, very small distances – e.g. g0x0.1 (and smaller) should be OK. It could be that your settings are too high for your motors and the motors can’t handle the jerk or velocity you are giving them. Try dropping these values. Also, do the green lights come on when you try to move?
Alden
aldenMemberTechnically, it’s grbl that doesn’t support the MEGAs; grblshield would run fine. I think there are some people porting to the mega – so I’d check out the grbl github and issues.
Alden
aldenMemberYou could probably do it this way. I have not experimented with it. I have some other things I wanted to get done first, like probes and some support for jogging, so I don;t want to commit anything on this.
Alden
aldenMemberSandeep,
TinyG does not support backlash compensation, although we have thought about this. Backlash compensation is notoriously difficult to get right and can end up introducing more errors than it solves and degrading performance significantly if done right.
Take the case of backlash in X. Move right, then move left. The obvious case of just not moving N steps when you reverse direction works Ok when it’s just X movement. Now do this while drawing a circle. You have to stop movement in Y for x to “catch up”.
We may tackle this some day, but for now it’s not supported.
Alden
aldenMemberI was able to compile and start a debugging session in Simulator 2. This is normally what happens – I have not experienced the failure you noted. Setting up an existing project in 6 is a bear. See the developer notes link from a few posts back.
I use 4 for simulation as the interface is actually better (less broken). The compiler and libs used in 6 generate better code, though. Also, I almost always simulate in -O0 optimization as that way you see every instruction and declared variable instead of jumping around and having to look at the register set to see what’s going on. I takes longer to run, though as there are more instructions to execute.
Alden
aldenMemberOne last thing – I fired up the debug in Studio6 and it worked – it didn.t fail like it did for you. You may want to grab the Studio6 project files from the /support directory in the edge and see if you get better results
aldenMemberI just tried out your scenario. A couple of things – the PDI is not a hardware debugger. Atmel offeres a ICE but it’s $425 and slow and molasses on – well – ICE. I used to have a JTAG connector on the board but I took it off in v7.
But all is not lost. I do almost all my debugging in the simulator2. It has some pros and cons. It’s hard to emulate real-time actions like serial IO or limit switches. But it’s portable because it doesn’t require any HW and I use it on the road all the time. Another down-side is that it’s slow to emulate very long sequences.
I have some tools int eh code to help with this. In tinyg.h there are some defines that take out a lot of the startup stuff like messages and NVM writes. There is also a way to feed a command to the serial buffer on startup. See test.c
I like the simulator on Studio4 better than studio6. There are some workarounds I documented here:
https://github.com/synthetos/TinyG/wiki/Developer-Notes
Lastly, if you are going to play with the code I recommend using the current push in edge (build 367.04). It’s a release candidate for version 0.95
Alden
aldenMemberBy way of diagnosis, what power supply were you using and what voltage is it providing to the board? How was the Arduin Uno powered and how do you think it’s dead, too?
aldenMemberWe don’t have this implemented. It would be a bit of C code to bypass the Gcode interpreter.
aldenMemberYou may also try dropping Microsteps to 4x or 2x, or try lowering the max jerk ($jm)
aldenMemberNice suggestion. Thanks
aldenMemberHere’s the pinout that grbl uses. The limit switches are labeled. You can connect to the holes on the grblShield or solder in a header to bring them out.
https://github.com/grbl/grbl/wiki/Connecting-Grbl
Alden
aldenMemberThe difference is that the amax limit must be configured as a limit, and it’s not actually a reset – it’s an interrupt that causes the system to go into a shutdown mode, not a reset. Using the reset button – if you really want a reset – is more reliable.
aldenMemberAh. I like it when the problem is found easily. And is not TinyG (meaning I spend potentially hours tracking it down!)
Seriously, please DO report and errors you see or even suspect.
Alden
aldenMemberThanks. Let us know how we can improve it.
-
AuthorPosts