Anybody familiar with a Rep Rap 3D Printer?

I have tried the Rep Rap forum but it has been three days and no one replied. So I guess I'll try here...I have built a Prusa Mendel (arduino Mega 2560 with RAMPS 1.4 motor shield) but I cant seem to get the host software(GitHub - reprap/release: Releases of the RepRap Java host software) to talk to the Mega and make it do stuff. When I try to compile the firmware, I get a bunch of errors. Any idea about what I am doing wrong or know of a good tutorial somewhere of how to set this up? I have tried to follow the Rep Rap wiki but I keep running into problems. Here are a few of the 100+ errors I got:

FiveD_GCode_Interpreter.pde:4:22: error: WProgram.h: No such file or directory
FiveD_GCode_Interpreter.pde:6:27: error: configuration.h: No such file or directory
In file included from FiveD_GCode_Interpreter.pde:8:
/pins.h:6:2: error: #error The Arduino cannot run the 5D GCode interpreter
In file included from FiveD_GCode_Interpreter.pde:5:
/vectors.h: In function 'FloatPoint fabsv(const FloatPoint&)':
vectors.h:60: error: 'fabs' was not declared in this scope
In file included from FiveD_GCode_Interpreter.pde:9:
/extruder.h: At global scope:
extruder.h:13: error: variable or field 'newExtruder' declared void
extruder.h:13: error: 'byte' was not declared in this scope
extruder.h:481: error: expected initializer before '*' token
extruder.h:482: error: 'byte' does not name a type

cartesian_dda.h:142: error: 'byte' was not declared in this scope
cartesian_dda.h:142: error: 'HIGH' was not declared in this scope
cartesian_dda.h:142: error: 'digitalWrite' was not declared in this scope
cartesian_dda.h:143: error: 'delayMicrosecondsInterruptible' was not declared in this scope
cartesian_dda.h:144: error: expected )' before numeric constant cartesian_dda.h:144: error: 'LOW' was not declared in this scope /cartesian_dda.h: In member function 'void cartesian_dda::do_e_step()': cartesian_dda.h:149: error: 'ex' was not declared in this scope cartesian_dda.h:149: error: 'extruder_in_use' was not declared in this scope /cartesian_dda.h: At global scope: cartesian_dda.h:163: error: 'cartesian_dda::read_switch' declared as an 'inline' variable cartesian_dda.h:163: error: 'bool cartesian_dda::read_switch' is not a static member of 'class cartesian_dda' cartesian_dda.h:163: error: 'byte' was not declared in this scope cartesian_dda.h:163: error: expected primary-expression before 'bool' cartesian_dda.h:163: error: initializer expression list treated as compound expression cartesian_dda.h:164: error: expected ',' or ';' before '{' token In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:6, from FiveD_GCode_Interpreter.pde:41: c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before 'double' c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected )' before 'double'
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'
FiveD_GCode_Interpreter:41: error: expected constructor, destructor, or type conversion before '*' token
FiveD_GCode_Interpreter:63: error: 'extruder' does not name a type
FiveD_GCode_Interpreter:96: error: 'BUFFER_SIZE' was not declared in this scope
FiveD_GCode_Interpreter.pde: In function 'void __vector_17()':
FiveD_GCode_Interpreter:117: error: 'disableTimerInterrupt' was not declared in this scope
FiveD_GCode_Interpreter:127: error: 'cdda' was not declared in this scope

FiveD_GCode_Interpreter.pde:4:22: error: WProgram.h: No such file or directory

That code has not been updated for Arduino 1.0.

Change the #include of WProgram.h to include Arduino.h instead. That should fix a lot of the errors.

Since Arduino 1.0.x has been out for a while now you might want to check for a newer version of the sources.

A reply in less than five minutes, that's why I love this forum. Thanx johnwasser.

That code has not been updated for Arduino 1.0.

True. The firmware was originally created for the older versions of IDE. So I just tried it in Arduino 23 and got far fewer errors. Why doesn't the compiler like

Serial.begin(HOST_BAUD);
  Serial.println("start");

In file included from FiveD_GCode_Interpreter.cpp:8:
/pins.h:150:2: error: #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
FiveD_GCode_Interpreter.cpp: In function 'void setup()':
FiveD_GCode_Interpreter:167: error: 'Serial' was not declared in this scope
FiveD_GCode_Interpreter.cpp: In member function 'void extruder::temperatureError()':
extruder:85: error: 'Serial' was not declared in this scope
FiveD_GCode_Interpreter.cpp: In function 'void get_and_do_command()':
process_g_code:186: error: 'Serial' was not declared in this scope
process_g_code:223: error: 'Serial' was not declared in this scope
process_g_code:236: error: 'Serial' was not declared in this scope
process_g_code:240: error: 'Serial' was not declared in this scope
FiveD_GCode_Interpreter.cpp: In function 'void process_string(char*, int)':
process_g_code:312: error: 'Serial' was not declared in this scope
process_g_code:328: error: 'Serial' was not declared in this scope
process_g_code:337: error: 'Serial' was not declared in this scope
process_g_code:486: error: 'Serial' was not declared in this scope
process_g_code:548: error: 'Serial' was not declared in this scope
FiveD_GCode_Interpreter.cpp: In function 'void FlushSerialRequestResend()':
process_g_code:750: error: 'Serial' was not declared in this scope

You might have better luck with your snippets at http://snippets-r-us.com. Here, we need to see ALL of your code.

I posted I link to the code in first post. The main sketch has about 500 lines code as well as 11 other header files. Won't exactly fit conveniently here.

In file included from FiveD_GCode_Interpreter.cpp:8:
/pins.h:150:2: error: #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.

So, did you remember to select Tools->Boards->Arduino Mega 2560 or Mega ADK?

This page (List of electronics - RepRap) has a description of RAMPS and lists the following firmware as being compatible:

Marlin
Sprinter
Teacup

I notice that "5D" is not listed.

Thanx johnwasser for cluing me into the supported firmware. The winning combination was marlin on the arduino and Pronterface on the computer, if anyone cares for the future. on a side note:this thing is pretty cool once it is running :slight_smile:

Hi there!

My thesis-mates and I had proposed a topic "Wireless 3d chocolate Printer"..
We are on the process of buying our materials and gladly we received 2 out of 4 of our package from US.

I have done lots of research and I've found out that there are so many conflicts that arise
especially on the programming process...
Hope the people on this forum will help us if we encounter such problems..

Like Sean, we are about to use the arduino mega 2560 and a pololu RAMPS. Except arduino what are the free softwares needed in the building of the 3d printer..Please guide us.

We are about to start one week from now..
I will be glad to hear help from you guys..

Thank you :slight_smile:

Is this a new topic, marj03?

what are the free softwares needed in the building of the 3d printer..Please guide us.

Like I said- pronterface (computer UI) and marlin (arduino firmware) seem to do the trick for me. both of which I found links to on the reprap wiki.
Here is a video(http://www.youtube.com/watch?v=O_7ACb_W6VI&feature=youtu.be )of mine in action. (eesh terrible quality). as you can may not be able see, the extruder calibration seems wrong because the plastic doesn't stick to the print bed; it just gets wrapped up in a mess around the nozzle. I don't think the heat is high enough because it extrudes too thickly/slowly(?) Which in turn causes the hobbed bolt to dig into the filament. Just doesn't seem to come out fast enough even though the extruder motor is spinning at a decent speed compared to other videos on the internet. thoughts anyone?