07-24-2018 12:21 PM
@Vaishnavinattar wrote:
I'm trying to send lines of g-code to the Arduino and get it to move motors. Since Marlin is installed on the Arduino, it should be able to move the motors on its own after getting the g-code.
Okay then you are just having trouble setting up the serial communications and transferring the G-code.
What are the serial settings for the Arduino? (baud rate, data bits, stop bits, parity, etc)
What controls the data transfer? You can't just dump data in to the Ardunio unless it is ready to take it.
What LabVIEW code do you have so far?
07-24-2018 12:41 PM
@RTSLVUWhat are the serial settings for the Arduino? (baud rate, data bits, stop bits, parity, etc)
The Arduino is setup to have a baud rate of 250000 in the Marlin firmware (which is what I've been using). 8 Data bits, 1 stop bit, no parity and no flow control (since I'm not quite sure what protocol to use).
What controls the data transfer? You can't just dump data in to the Ardunio unless it is ready to take it.
I'm assuming Marlin is supposed to control the data transfer? I'm not quite sure.
What LabVIEW code do you have so far?
I started by using the G-code sender from this post. But when that didn't work I tried using the visa test from the original post and now I'm here.
07-24-2018 01:24 PM - edited 07-24-2018 01:27 PM
@Vaishnavinattar wrote:What controls the data transfer? You can't just dump data in to the Ardunio unless it is ready to take it.
I'm assuming Marlin is supposed to control the data transfer? I'm not quite sure.
Hmm... I got a feeling this is where you need to be concentrating your efforts.
I am guessing that programs like Pronterface know how to tell the Arduino (Marlin) that it wants to send it a print job. (G-Code)
Then Marlin will say it's ready to receive.
Then the transfer will begin...
07-24-2018 01:26 PM
Alright I'll try to look into that.
Thanks!
10-12-2018 12:02 PM
Hallo, How did it work out?
If you want I can try it out on my printer and see if I can find some new bugs (and hopefully one or two bug fixes as well!).