Installing GCode Interpreter
Forum » Contraptor Forum / Contraptor talk » Installing GCode Interpreter
Started by: gatonerogatonero
On: 1261953942|%e %b %Y, %H:%M %Z|agohover
Number of posts: 4
rss icon RSS: New posts
Installing GCode Interpreter
gatonerogatonero 1261953942|%e %b %Y, %H:%M %Z|agohover

Hi guys,

I didn't understand the instructions how to install the GCode interpreter

In arduino-gcode-interpreter is written to get an idea to look at http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter but to use Chris Meighan's rewrite.

How meets the rewritten interpreter the installation instructions on http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter

Installation

Once you download the proper files, there are a couple steps you need to do:

1. Copy the folders in reprap-arduino-firmware-x.y/library to arduino-00xx/hardware/libraries
2. Open the GCode_Interpreter sketch in reprap-arduino-firmware-x.y/gcode/GCode_Interpreter/GCode_Interpreter.pde with the Arduino software.
3. Configure the firmware (see below)
4. Upload the sketch to your Arduino.

Step 1: Do I have to make a new folder under arduino-00xx/hardware/libraries for example arduino-00xx/hardware/libraries/reprap_new_firmware and put the files reprap_new_firmware.h, reprap_new_firmware.pde and ThermistorTable.h into it?

Step 2: Do I have to download the original interpreter and open the files from step2?

Maybe the answer should be posted in arduino-gcode-interpreter

TIA
Christoph

Reply  |  Options
Unfold Installing GCode Interpreter by gatonerogatonero, 1261953942|%e %b %Y, %H:%M %Z|agohover
Re: Installing GCode Interpreter
AlbanetcAlbanetc 1262050526|%e %b %Y, %H:%M %Z|agohover

IIRC, I didn't copy anything to the libraries. Just extract the zip file to the folder. The folder must be named "reprap_new_firmware". Then, when you open it from Arduino IDE, all files should be loaded automatically.

Reply  |  Options
Unfold Re: Installing GCode Interpreter by AlbanetcAlbanetc, 1262050526|%e %b %Y, %H:%M %Z|agohover
Re: Installing GCode Interpreter
gatonerogatonero 1262082167|%e %b %Y, %H:%M %Z|agohover

Hi Vitaly,

I did exactly as you described it. I made a folder named "reprap_new_firmware" with all the files from "reprap_new_firmware.zip". After that I opened that folder and got all the files opened in tabs. When I try to compile it i get this error messages:

Fehler: »char word [128]« als andere Symbolart redeklariert /usr/local/arduino-0017/hardware/cores/arduino/wiring.h:97: Fehler: vorherige Deklaration von »typedef unsigned int word«

In function »void loop()«:
In function »void init_process_string()«:

translated:

Error: 'char word [128] "as the other symbol type redeclared /usr/local/arduino-0017/hardware/cores/arduino/wiring.h: 97: error: previous declaration of' typedef unsigned int word"

The compiler points to

#define COMMAND_SIZE 128
char word[COMMAND_SIZE];

in tab "reprap_new_firmware"

Are there some extra adjustments to do?

Regarding "grbl", which you mentioned in Arduino GCode Interpreter as an alternativ. Do I have to compile it with "make" and upload emerging "grbl.hex" via avrdude to the arduino?

Unfold Re: Installing GCode Interpreter by gatonerogatonero, 1262082167|%e %b %Y, %H:%M %Z|agohover
Re: Installing GCode Interpreter
AlbanetcAlbanetc 1262114973|%e %b %Y, %H:%M %Z|agohover

Looks like "word" is a defined type in Arduino 0017. Looking at the code, this variable used in interpreter to accumulate characters from serial input and pass them on for execution once new line is encountered. Just rename "word" into something else, e.g. "command", there are 4 occurrences total.

The reason I didn't get this error is because I've been using Arduino 0012 - it's the latest version with which the compiled interpreter fits into Diecimila (and only on Ubuntu, I think). I have since ordered a couple of Duemilanove boards with more memory, but alas have not had time to try them.

As far as grbl, I haven't really looked at it at all, just seen it mentioned as an alternative GCode interpreter which can run on Arduino.

Reply  |  Options
Unfold Re: Installing GCode Interpreter by AlbanetcAlbanetc, 1262114973|%e %b %Y, %H:%M %Z|agohover
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License