LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send G-Code to Arduino Mega (Marlin 1.1.0-RC7)


@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?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 11 of 15
(2,298 Views)

@RTSLVU

What 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.

 

0 Kudos
Message 12 of 15
(2,291 Views)

@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...

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 13 of 15
(2,279 Views)

Alright I'll try to look into that.

Thanks!

0 Kudos
Message 14 of 15
(2,276 Views)

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!).

0 Kudos
Message 15 of 15
(2,180 Views)