Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Gcode Sender with a Second Arduino to untether Computer???
SomePolish-
Guy
Newbie
Posts: 7
Permalink
Post Gcode Sender with a Second Arduino to untether Computer???
on: November 2, 2017, 17:26
Quote

Hello,
I am looking for help to free up my computer from the long print times which require it. Assuming a permanant machine setup, I beleive you only need to set the machine settings once in the beginning, meaning the rest of the magic (after "set home") is gcode.

Would it be possible to add a second arduino to send gcode from an sd card?.

I propose creating an arduino program which can do the following
1) automatically find and connect to the first available arduino serial connection on startup (I'm not sure the best connection method, would a double ended arduino cable be optimal or can they be connected with one or two pins)
2) Button1 (pinx) activates "Set Home" feature sending the appropriate information to the polargraph.
3) Button2 (piny) activates a gcode sender to pull information from an SD card and begin sending it to the polargraph.

**Additional buttons can be added such as "toggle servo position" or "return home" but I feel these first two buttons ar what is necessary.

If anyone code savvy people would take this on, or assist me by answering questions and providing direction, I would be most appreciative as I am but a novice.

Here are the concepts I am looking which may make this possible:
1) cross arduino communication: https://www.arduino.cc/en/Tutorial/MasterWriter
2) perform an action with a button: https://www.arduino.cc/en/Tutorial/Button
3) reading info from an sd card: https://www.arduino.cc/en/Tutorial/DumpFile
Wiring an sd card reader:
https://learn.adafruit.com/adafruit-micro-sd-breakout-board-card-tutorial/wiring
example of a gcode sender designed for xcarve
https://github.com/bvenneker/Arduino-GCode-Sender

sandy
Administrator
Posts: 1241
Permalink
sandy
Post Re: Gcode Sender with a Second Arduino to untether Computer???
on: November 2, 2017, 20:27
Quote

What a good idea! The second arduino is purely concerned with waiting for the "ready" message and then retrieving one command at a time from the SD card and shipping it off over the serial port.

Only thing is that it's not really pure GCode, it's a special "polargraph" command sequence. Doesn't make much difference - except the commands must be generated by the Polargraph controller.

SomePolish-
Guy
Newbie
Posts: 7
Permalink
Post Re: Gcode Sender with a Second Arduino to untether Computer???
on: November 8, 2017, 16:00
Quote

Haha, so it would be sending "PCode" then 😉

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.018 seconds.