Comments
Think I found my problem with my usb being slow…..in python MyUSB = serial.Serial(usbport, 115200, timeout=0.1) |
Highlander, |
I plan to get the python code posted at the following location this weekend: I posted a screen shot there previously/the git software took me a little effort to post with. If people like it I will see if Simen Grbl wants it located on his git location. Would be cool if others with some python and opengl experience could help with some fine tuning. ex. faster refresh/redraw of gcode graphics. linuxCNC does it pretty fast some how. |
Took a little bit of learning but I figured out how to post to git. I posted my python code and a slightly modified version of Simen Grbl code at: http://github.com/Highlander01/Highlander01HMI I have strayed slightly but would like to join back to a version with Simen some day. For now I hacking and playing. |
My first finished basic version is now posted: http://github.com/Highlander01/Highlander01HMI Updated version of my Python HMI/GUI and slightly modified version of Simen Grbl is now posted. I have now test ran my gear tooth gcode file with 3200 lines and have had no hang ups etc. Terminal screen shot showing usb handshaking is posted also. I think I am going to now do my first cutting project and build a wood clock! (later on I plan to go back and do some OpenGL graphics enhancements.) |
Looks great Highlander! I’m planning to mount a simple cutting head on my machine in the next few days, after that’s complete I’ll post a video of the mill cutting with GRBL + HIGHLANDER front end. Great work! |
This is still a problem for low baud rates, but not much to do about that I think. I have reduced serial output to an absolute minimum in the new acceleration-branch that I am preparing to release. |
How well can others run the following lines without missing any lines and usb keeping up? The following is a bunch of ~0.1 mm lines for part of a small wooden gear. When I run it with my modified version of Grbl doing some extra handshaking I get delays. Arduino runs the lines as fast as it gets them and is waiting for usb to feed each line. Maybe ~0.1mm moves are too small? Maybe I need to do bigger buffers/possible SD card.
N20 G00 Z 20.000
N30 G00 X 0.000 Y 0.000
N40 G00 X 17.402 Y 17.425 Z 5.999
N50 G01 Z -1.000 F30.0
N60 G01 X 17.399 Y 17.551 F180.0
N70 X 17.390 Y 17.678
N80 X 17.374 Y 17.807
N90 X 17.350 Y 17.938
N100 X 17.320 Y 18.069
N110 X 17.282 Y 18.200
N120 X 17.236 Y 18.331
N130 X 17.183 Y 18.461
N140 X 17.122 Y 18.588
N150 X 17.053 Y 18.713
N160 X 16.977 Y 18.835
N170 X 16.894 Y 18.954
N180 X 16.803 Y 19.067
N190 X 16.706 Y 19.176
N200 X 16.603 Y 19.279
N210 X 16.495 Y 19.376
N220 X 16.381 Y 19.466
N230 X 16.263 Y 19.549
N240 X 16.141 Y 19.625
N250 X 16.016 Y 19.694
N260 X 15.888 Y 19.755
N270 X 15.759 Y 19.809
N280 X 15.628 Y 19.854
N290 X 15.497 Y 19.892
N300 X 15.366 Y 19.923
N310 X 15.235 Y 19.946
N320 X 15.106 Y 19.962
N330 X 14.978 Y 19.972
N340 X 14.852 Y 19.975
N350 X 14.727 Y 19.972
N360 X 14.599 Y 19.962
N370 X 14.470 Y 19.946
N380 X 14.339 Y 19.923
N390 X 14.208 Y 19.892
N400 X 14.077 Y 19.854
N410 X 13.946 Y 19.809
N420 X 13.817 Y 19.755
N430 X 13.689 Y 19.694
N440 X 13.564 Y 19.625
N450 X 13.442 Y 19.549
N460 X 13.324 Y 19.466
N470 X 13.210 Y 19.376
N480 X 13.102 Y 19.279
N490 X 12.999 Y 19.176
N500 X 12.902 Y 19.067
N510 X 12.811 Y 18.954
N520 X 12.728 Y 18.835
N530 X 12.652 Y 18.713
N540 X 12.583 Y 18.588
N550 X 12.522 Y 18.461
N560 X 12.469 Y 18.331
N570 X 12.423 Y 18.200
N580 X 12.385 Y 18.069
N590 X 12.355 Y 17.938
N600 X 12.331 Y 17.807
N610 X 12.315 Y 17.678
N620 X 12.306 Y 17.551
N630 X 12.302 Y 17.425
N640 X 12.306 Y 17.299
N650 X 12.315 Y 17.172
N660 X 12.331 Y 17.042
N670 X 12.355 Y 16.912
N680 X 12.385 Y 16.781
N690 X 12.423 Y 16.650
N700 X 12.469 Y 16.519
N710 X 12.522 Y 16.389
N720 X 12.583 Y 16.262
N730 X 12.652 Y 16.137
N740 X 12.728 Y 16.015
N750 X 12.811 Y 15.896
N760 X 12.902 Y 15.783
N770 X 12.999 Y 15.674
N780 X 13.102 Y 15.571
N790 X 13.210 Y 15.474
N800 X 13.324 Y 15.384
N810 X 13.442 Y 15.301
N820 X 13.564 Y 15.224
N830 X 13.689 Y 15.156
N840 X 13.817 Y 15.095
N850 X 13.946 Y 15.041
N860 X 14.077 Y 14.996
N870 X 14.208 Y 14.958
N880 X 14.339 Y 14.927
N890 X 14.470 Y 14.904
N900 X 14.599 Y 14.888
N910 X 14.727 Y 14.878
N920 X 14.852 Y 14.875
N930 X 14.978 Y 14.878
N940 X 15.106 Y 14.888
N950 X 15.235 Y 14.904
N960 X 15.366 Y 14.927
N970 X 15.497 Y 14.958
N980 X 15.628 Y 14.996
N990 X 15.759 Y 15.041
N1000 X 15.888 Y 15.095
N1010 X 16.016 Y 15.156
N1020 X 16.141 Y 15.224
N1030 X 16.263 Y 15.301
N1040 X 16.381 Y 15.384
N1050 X 16.495 Y 15.474
N1060 X 16.603 Y 15.571
N1070 X 16.706 Y 15.674
N1080 X 16.803 Y 15.783
N1090 X 16.894 Y 15.896
N1100 X 16.977 Y 16.015
N1110 X 17.053 Y 16.137
N1120 X 17.122 Y 16.262
N1130 X 17.183 Y 16.389
N1140 X 17.236 Y 16.519
N1150 X 17.282 Y 16.650
N1160 X 17.320 Y 16.781
N1170 X 17.350 Y 16.912
N1180 X 17.374 Y 17.042
N1190 X 17.390 Y 17.172
N1200 X 17.399 Y 17.299
N1210 X 17.402 Y 17.425
N1220 G01 Z -2.000 F30.0
N1230 G01 X 17.399 Y 17.551 F180.0
N1240 X 17.390 Y 17.678
N1250 X 17.374 Y 17.807
N1260 X 17.350 Y 17.938
N1270 X 17.320 Y 18.069
N1280 X 17.282 Y 18.200
N1290 X 17.236 Y 18.331
N1300 X 17.183 Y 18.461
N1310 X 17.122 Y 18.588
N1320 X 17.053 Y 18.713
N1330 X 16.977 Y 18.835
N1340 X 16.894 Y 18.954
N1350 X 16.803 Y 19.067
N1360 X 16.706 Y 19.176
N1370 X 16.603 Y 19.279
N1380 X 16.495 Y 19.376
N1390 X 16.381 Y 19.466
N1400 X 16.263 Y 19.549
N1410 X 16.141 Y 19.625
N1420 X 16.016 Y 19.694
N1430 X 15.888 Y 19.755
N1440 X 15.759 Y 19.809
N1450 X 15.628 Y 19.854
N1460 X 15.497 Y 19.892
N1470 X 15.366 Y 19.923
N1480 X 15.235 Y 19.946
N1490 X 15.106 Y 19.962
N1500 X 14.978 Y 19.972
N1510 X 14.852 Y 19.975
N1520 X 14.727 Y 19.972
N1530 X 14.599 Y 19.962
N1540 X 14.470 Y 19.946
N1550 X 14.339 Y 19.923
N1560 X 14.208 Y 19.892
N1570 X 14.077 Y 19.854
N1580 X 13.946 Y 19.809
N1590 X 13.817 Y 19.755
N1600 X 13.689 Y 19.694
N1610 X 13.564 Y 19.625
N1620 X 13.442 Y 19.549
N1630 X 13.324 Y 19.466
N1640 X 13.210 Y 19.376
N1650 X 13.102 Y 19.279
N1660 X 12.999 Y 19.176
N1670 X 12.902 Y 19.067
N1680 X 12.811 Y 18.954
N1690 X 12.728 Y 18.835
N1700 X 12.652 Y 18.713
N1710 X 12.583 Y 18.588
N1720 X 12.522 Y 18.461
N1730 X 12.469 Y 18.331
N1740 X 12.423 Y 18.200
N1750 X 12.385 Y 18.069
N1760 X 12.355 Y 17.938
N1770 X 12.331 Y 17.807
N1780 X 12.315 Y 17.678
N1790 X 12.306 Y 17.551
N1800 X 12.302 Y 17.425
N1810 X 12.306 Y 17.299
N1820 X 12.315 Y 17.172
N1830 X 12.331 Y 17.042
N1840 X 12.355 Y 16.912
N1850 X 12.385 Y 16.781
N1860 X 12.423 Y 16.650
N1870 X 12.469 Y 16.519
N1880 X 12.522 Y 16.389
N1890 X 12.583 Y 16.262
N1900 X 12.652 Y 16.137
N1910 X 12.728 Y 16.015
N1920 X 12.811 Y 15.896
N1930 X 12.902 Y 15.783
N1940 X 12.999 Y 15.674
N1950 X 13.102 Y 15.571
N1960 X 13.210 Y 15.474
N1970 X 13.324 Y 15.384
N1980 X 13.442 Y 15.301
N1990 X 13.564 Y 15.224
N2000 X 13.689 Y 15.156