Arduino PySerial USB Connection

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Xav-83
Posts: 97
Joined: Thu Aug 07, 2014 8:50 am

Re: Arduino PySerial USB Connection

Post by Xav-83 »

And specially for Xav-83 just make a new plugin for Grbl card...
Thanks :D
2015-10-24-165546_478x646_scrot.png
2015-10-24-165546_478x646_scrot.png (59.07 KiB) Viewed 4915 times
Attachments
2015-10-24-165817_478x460_scrot.png
2015-10-24-165817_478x460_scrot.png (22.7 KiB) Viewed 4915 times
prrvchr
Posts: 144
Joined: Sun Oct 05, 2014 7:38 pm
Location: France

Re: Arduino PySerial USB Connection

Post by prrvchr »

Hi Xav-83,

Thank for the info...
I understand for $$, but for $# what is the command for changing a parameter like [G58:0.000,0.000,0.000]...
I need to know the syntax...

edit: can you confirm that you can upload file with the new plugin... I am not really sure... ;)
Xav-83
Posts: 97
Joined: Thu Aug 07, 2014 8:50 am

Re: Arduino PySerial USB Connection

Post by Xav-83 »

Hi,
for change parameter of $# it seems to me that it is with the G10 command.
I never had occasion to use it

G10 Programmable data input --> Modifies the value of work coordinate and tool offsets.

Wiki grbl
G54-G59 work coordinates can be changed via the G10 L2 Px or G10 L20 Px command defined by the NIST gcode standard and the EMC2 (linuxcnc.org) standard. G28/G30 pre-defined positions can be changed via the G28.1 and the G30.1 commands, respectively.

When $# is called, Grbl will respond with the stored offsets from machine coordinates for each system as follows. TLO denotes tool length offset, and PRB denotes the coordinates of the last probing cycle.

When I upload a file, I can't see the toolpath in freecad. I can not confirm to you whether it is the correct file.
However,
1 I charge one of my files.
2  I made a "Home"
3  I put my tool in origin parts
4  G91 X0 Y0 Z0;
5  I run machining
6  the truck from too far out of range of the machine.


PS: internet traduction ... sorry i speak very little english
prrvchr
Posts: 144
Joined: Sun Oct 05, 2014 7:38 pm
Location: France

Re: Arduino PySerial USB Connection

Post by prrvchr »

Hi,
G54-G59 work coordinates can be changed via the G10 L2 Px or G10 L20 Px command
Ok i need to send GCode command... and I need to learn because I am a beginner... :lol:
But It's a good way to learn ...
When I upload a file, I can't see the toolpath in freecad
I have not integrated the "toolpath" in the Grbl Plugin because I don't know the format of the positions received from Grbl while uploading...
Whith TinyG2 it look like: "posx:12.086,posy:0.453,posz:0.000,feed:300.00,vel:300.00"
But IMO, if we want to integrate this feature, need some help because what I do is just crap (but just to see that it was possible ...)
I hope someone will hear us... :roll:
I can not confirm to you whether it is the correct file.
Ok, I just remake file upload. Now I hope it's more reliable...
And have integrated the $$ command... You can test and say...
HughTufano
Posts: 1
Joined: Fri Nov 06, 2015 3:36 pm

Re: Arduino PySerial USB Connection

Post by HughTufano »

As per my experience with these things if you are going to attempt a Controller Workbench for 3/4 axis control, you must take the interface along the lines of GRBL Controller.
Also this kind of interface within a FreeCAD module and able to work hand in hand with Path, would be a great well rounded package Path / Controller.
It might have to remain separate from FreeCAD due to the license, (GPL3), though I can never keep those things straight, what's compatible, what is not.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Arduino PySerial USB Connection

Post by jmaustpc »

Hi HughTufano
Your first post, welcome to FreeCAD.
HughTufano wrote:due to the license, (GPL3),
yes, it complicates matters.
prrvchr
Posts: 144
Joined: Sun Oct 05, 2014 7:38 pm
Location: France

Re: Arduino PySerial USB Connection

Post by prrvchr »

Hi HughTufano,

Welcome to FreeCAD Forum...
if you are going to attempt a Controller Workbench for 3/4 axis control, you must take the interface along the lines of GRBL Controller
it would be better to start from scratch, if we want to manage other card than Grbl like TinyG2...
it would be good to have a generic core and make a plugin for each card (Grbl, TinyG2...)

I have to work on that, any help is welcome ;)
kesavab
Posts: 1
Joined: Thu Aug 29, 2019 5:10 am

Re: Arduino PySerial USB Connection

Post by kesavab »

Hi,

I have just installed FreeCad and I would like to control my Arduino using this amazing program. However, I currently have an Arduino Due, and i'm having this error.

Running the Python command 'Usb_Start' failed:
Traceback (most recent call last):
File "/home/bava/cad/freecad-build/Mod/USB/App/UsbCommand.py", line 152, in Activated
FreeCADGui.doCommand(code)
File "<string>", line 2, in <module>

'FeaturePython' object has no attribute 'Start

Thank you
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Arduino PySerial USB Connection

Post by Kunda1 »

prrvchr wrote: Sun Oct 25, 2015 10:34 am
@prrvchr are you still using this workbench?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Arduino PySerial USB Connection

Post by Kunda1 »

@prrvchr ping
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply