Uploading firmware for the Mendel generation 3 electronics is documented, but tends to be written for 2010. Things have changed a bit since then and this post describes the steps to upload firmware to the RepRap MB v1.2 Techzone Remix board. Uploading firmware for the extruder controller is not discussed, as our Mendrel does not use the extruder controller.
- Download Arduino 0018. We will use this to compile and upload the code.
- Download reprap-mendel-20100806. We need to use an older version. I tried to get a newer version of the firmware working, but it was having a lot of issues.
- Download Sanguino 0018. http://code.google.com/p/sanguino/downloads/list. This is the configuration for Sanguino board in the Arduino software.
Extract arduino and reprap to wherever you like. Extract Sanguino and move it to arduino-0018/hardware/Sanguino.
Go to <reprap>/mendel/firmware/FiveD_GCode/FiveD_GCode_Interpreter. Make a copy of Configuration.h.dist to Configuration.h. Open up arduino. Open <reprap>/mendel/firmware/FiveD_GCode/FiveD_GCode_Interpreter/FiveD_GCode_Interpreter.pde Configuration file tab. Because of how the motor is setup we need to invert the direction of the Z axis. This can be done in the configuration file by setting:
#define INVERT_Z_DIR 0
#define INVERT_Z_DIR 1
Set Tools -> Board -> Sanguino. Set the port to the correct serial port (usually /dev/ttyUSB0 for Linux and something like COM5 for windows).
When you upload using Arduino, you need to make sure to press the reset button immediately after seeing Binary sketch size:. You cannot hold it and then let go, you need to press the reset button.
If you do not get it , you will end up with:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
If you hit the reset button at the correct time the red LED will start flashing and eventually Arduino will produce “Update Done”. The firmware should be ready to go.