Once upon a time...

Once upon a time...
Christmas 2016

Saturday 24 March 2012

Sanguinololu Sprinter Firmware

These are the steps I followed to be able to load the Sprinter firmware onto my hardware.

Sanguino for windows (link)
  1. Install Arduino software (I got version 1.0)  (But this doesn't work for Sprinter yet (see below), so I also got 0023)
    1. Which means download it and unzip to a suitable folder.  Then we skip to Sanguino steps
  2. Download latest Sanguino version from Google code. (I got version 0023r3)
  3. Copy /sanguino into arduino-xxxx/hardware
    1. So I ended up with arduino-1.0/hardware/Sanguino
  4. Start Arduino
    1. I put a shortcut on my Quick Launch bar
  5. Choose Sanguino from the Tools -> Board menu.
  6. Choose Com x from Tools -> Serial Port menu (where x is your printer com port.  Mine is 6)
The above should now put me back to where I was when installing firmware on the TechZone Gen 3 stuff back in 2010.

The one thing I know I have to setup is the Thermistors.  It's great to see that a number of the thermistors have now been loaded into the firmware config by default so you simply need select the correct one. (Thanks again to Think3dPrint3d)

//// Thermistor settings:
// 1 is 100k thermistor
// 2 is 200k thermistor
// 3 is mendel-parts thermistor
// 4 is 10k thermistor
// 5 is ParCan supplied 104GT-2 100K
// 6 is EPCOS 100k
// 7 is 100k Honeywell thermistor 135-104LAG-J01

My heated bed uses the EPCOS 100k (#6) and I have a ParCan HotEnd so I presume #5 (he didn't say).

I'll tweak these settings so long and use this as a test as I know I will need to make changes for the motors (having started this sidebar due to discovering my X-axis isn't performing as expected.

Basic Configuration Steps
  1. Open Arduino software
  2. Load sprinter.pde sketchbook (BTW: On saving, Arduino now changes the extension from .pde to .ino)
  3. Open configuration.h and read through, tweaking settings as you go.  These are the ones I changed.
    1. MOTHERBOARD = 62
    4. I have a Metric Sells Mendel (not Prusa) with Wade extruder, so leaving the defaults in for Calibration until I get around to actual calibration.
    5. INVERT_X_DIR= true
    6. *_MAX_LENGTH I need to figure these out during calibration.  Leaving as default at the moment.
  4. Save changes
  5. Choose Sketch -> Verify/Compile. Any Errors?
    1. Yes!! Sprinter.cpp:63:21: error: Arduino.h: No such file or directory
    2. So off to figure this one out.
      1. I found someone listing the same error in a comment  on Dust's Reprap Blog.  The answer is apparently to use Arduino 0022 as the firmware won't currently compile on v1.0.
      2. So, off to get 0022 (I saw 0023, so thought I would try that - sucker for punishment).
      3. Copy the Sanguino folder (which includes the edited values above) into the hardware folder.
        1. I actually moved the folder as I didn't want to confuse myself later with which was the correct one.
        2. I also deleted my Arduino 1.0 shortcut and replaced it with the new one.
      4. Select the appropriate board and com port as mentioned above.  It remembered the settings, so probably stored as part of the sketchbook.
      5. Now repeat Steps 1,2,4 & 5 above till we have a success.
    3. Yay!! Done compiling!!!
  6. Switch on and connect to the printer (USB)
  7. Select File -> Upload to I/O Board.
    1. Yay!! Done uploading!!!
    2. So Arduino 0023 compiles and uploads Sprinter.
That's all for the firmware loading post.  I will now be able continue with the calibration.

1 comment: