Visual alignment mod for shapeoko

wlanfox
Posts: 74
Joined: Sat Oct 20, 2012 10:49 am

Re: Visual alignment mod for shapeoko

Post by wlanfox » Fri Feb 22, 2013 1:03 am

I added some more tips in the GitHub Wiki.

https://github.com/duembeg/gcs/wiki/Tips-and-Techniques

xpix
Posts: 218
Joined: Thu Sep 06, 2012 6:47 am

Re: Visual alignment mod for shapeoko

Post by xpix » Fri Feb 22, 2013 7:15 am

Can you short describe the buttons: 'Set PC' and 'Goto PC'? :?:

wlanfox
Posts: 74
Joined: Sat Oct 20, 2012 10:49 am

Re: Visual alignment mod for shapeoko

Post by wlanfox » Fri Feb 22, 2013 8:27 am

Yes as in with software debugger is the program counter, is where the machine/processor/device will execute next or is currently executing and will be updated to the next pc once the machine/processor/device return in this case Grbl returns 'ok" from executing the instruction. If you hit stop where the PC is at will be the next line to be streamed/executed either by the Run (will continue until finish, break-point or you hit stop) or step (will only execute next PC).

Set PC allows you so set the current Program counter to an arbitrary location, for example you just wanted to repeat the last portion or move forward and jump sections of the program, you can set the PC where you want to start.

Got to PC basically take you where the current program counter is at. For example you have a program file that is 1000ths of line long, you where running and stopped some place in the middle and scrolled back and forth... now to find where the current PC is at could be hard, Goto PC will takes you there.

Also suppose the program is running but you have scrolled back and the screen is not auto scrolling (depending on the auto-scroll method you sleeted) but still running, and you want to see where the PC is currently executing, again Goto PC will take you there and re-enable auto scrolling if that auto scroll method is selected.

some history: http://en.wikipedia.org/wiki/Program_counter

mjohn
Posts: 69
Joined: Thu Jan 31, 2013 5:12 pm
Location: Baltimore, Maryland
Contact:

Re: Visual alignment mod for shapeoko

Post by mjohn » Tue Feb 26, 2013 6:17 am

I'll share a mount design if someone can tell me in idiots terms what I need to do to get the Python script (either) working on a Windows 7 machine. I have WinPython installed, OpenCV2 unpacked, I see others. I think I just need to know how to add dependencies to Python on my machine. I'm running the code with the 'Spyder' program.

Failing that, I'll scour the Google tomorrow.

This mount bolts in between the M5's of the bottom of the Makerslide of the Z Axis. It comes out and perfectly fits the eBay Boroscope. It's not in the way of the wheels or a big router like a DW660.

Image
John Milleker Jr. - Historical Process Photographer/Instructor
Baltimore Maryland, USA - http://www.JohnMilleker.com
ShapeOko #1,284 - Upgrades: 2x4Oko (24x48" footprint), Double X rails, Acme-Z, Dual Y, DW660, IC's Dust Shoe w/Dust Collection.

xpix
Posts: 218
Joined: Thu Sep 06, 2012 6:47 am

Re: Visual alignment mod for shapeoko

Post by xpix » Tue Feb 26, 2013 7:16 am

mjohn wrote:Failing that, I'll scour the Google tomorrow.
Please send the error message, my Problems on Windows7 was mostly to use wrong Versions from Winpython, opencv and wxwindows.

mjohn
Posts: 69
Joined: Thu Jan 31, 2013 5:12 pm
Location: Baltimore, Maryland
Contact:

Re: Visual alignment mod for shapeoko

Post by mjohn » Tue Feb 26, 2013 2:11 pm

Thanks, I'm getting 'ImportError: No module named wx'. When I run the first camera only script I get the same error but with cv. I just don't think I have something copied correctly somewhere, or mapped properly. I'm using WinPython 2.7.3.3.
xpix wrote:
mjohn wrote:Failing that, I'll scour the Google tomorrow.
Please send the error message, my Problems on Windows7 was mostly to use wrong Versions from Winpython, opencv and wxwindows.
John Milleker Jr. - Historical Process Photographer/Instructor
Baltimore Maryland, USA - http://www.JohnMilleker.com
ShapeOko #1,284 - Upgrades: 2x4Oko (24x48" footprint), Double X rails, Acme-Z, Dual Y, DW660, IC's Dust Shoe w/Dust Collection.

xpix
Posts: 218
Joined: Thu Sep 06, 2012 6:47 am

Re: Visual alignment mod for shapeoko

Post by xpix » Tue Feb 26, 2013 2:59 pm

mjohn wrote:Thanks, I'm getting 'ImportError: No module named wx'. When I run the first camera only script I get the same error but with cv. I just don't think I have something copied correctly somewhere, or mapped properly. I'm using WinPython 2.7.3.3.

you need wxpython.

Please try to install this package:

http://downloads.sourceforge.net/wxpyth ... 1-py27.exe

cvoinescu
Posts: 4442
Joined: Thu Jul 19, 2012 6:50 pm
Location: Camberley, UK
Contact:

Re: Visual alignment mod for shapeoko

Post by cvoinescu » Tue Feb 26, 2013 4:04 pm

And you need OpenCV too. Here are some instructions, except that the link he gives for OpenCV is for an older version; you actually want to go here and pick the most recent version (currently 2.4.3 or 2.4.4 beta).
Proud owner of ShapeOko #709, eShapeOko #0, and of store.amberspyglass.co.uk

mjohn
Posts: 69
Joined: Thu Jan 31, 2013 5:12 pm
Location: Baltimore, Maryland
Contact:

Re: Visual alignment mod for shapeoko

Post by mjohn » Tue Feb 26, 2013 6:15 pm

Thanks Xpix and CV. Wow, what a cluster to get this all installed. I'm remoted into my workbench PC from work, will have to wait until tonight to plug it in and see if I can get the USB camera to pop up.
cvoinescu wrote:And you need OpenCV too. Here are some instructions, except that the link he gives for OpenCV is for an older version; you actually want to go here and pick the most recent version (currently 2.4.3 or 2.4.4 beta).
John Milleker Jr. - Historical Process Photographer/Instructor
Baltimore Maryland, USA - http://www.JohnMilleker.com
ShapeOko #1,284 - Upgrades: 2x4Oko (24x48" footprint), Double X rails, Acme-Z, Dual Y, DW660, IC's Dust Shoe w/Dust Collection.

wlanfox
Posts: 74
Joined: Sat Oct 20, 2012 10:49 am

Re: Visual alignment mod for shapeoko

Post by wlanfox » Tue Feb 26, 2013 7:59 pm

mjohn wrote:Thanks Xpix and CV. Wow, what a cluster to get this all installed. I'm remoted into my workbench PC from work, will have to wait until tonight to plug it in and see if I can get the USB camera to pop up.
In Ubuntu 12.04 is just:
a) python is pre-installed
b) just use apt or the ui package installer...

Code: Select all

sudo apt-get install python-wxgtk2.8 python-opencv python-numpy
Yes in Windows is a little more tricky to get OpenCV installed, but wxPython is just the single install xpix mention above (repeat link below). Also for OpenCV to work on windows at the moment you need to have python 32bit even in a Windows 7 64... just before you run into that issue if you have python 7.2 64bit

http://downloads.sourceforge.net/wxpyth ... 1-py27.exe

Post Reply