README 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. The leading developers of Sprinter are currently Kliment, caru and midopple, though many others contribute with their patches.
  2. This is a firmware for RAMPS and other reprap single-processor electronics setups. It supports printing from SD card, active heatbed control, and ATmega internal pullups.
  3. This work is licensed under the GNU GPL v3 or (at the user's discretion) any later version.
  4. It is based on Tonokips's firmware, which was licensed under GPL v2 or later.
  5. WARNING: This version (April 19th, 2011) fixes a bug that caused speeds to be lower than what
  6. set in GCODE. So before attempting any print, you will have to check all
  7. your axis max speed, including the extruder retract speed. Not following
  8. this guidelines can seriously damage your printer.
  9. The configuration file now has an option to set the wanted temperature table file. If you copy and paste a temperature file from older versions, make sure that the configuration is pointing to it. For example:
  10. #include "ThermistorTable.h"
  11. In addition, you can optionally use a different thermistor table for hot-end and bed. To do so, comment out the following lines in configuration.h:
  12. #define BNUMTEMPS NUMPTEMPS
  13. #define bedtemptable temptable
  14. Then add a line pointing to your second thermistor table, for example:
  15. #include "BedThermistorTable.h"
  16. Finally, make sure that the nozzle thermistor table, inside ThermistorTable.h in this case, is defined as "temptable" and that the bed thermistor table is defined as "bedtemptable", and that the number of temps is defined as NUMTEMPS for the heater and BNUMTEMPS for the bed.
  17. There are examples of all these configurations in the configuration.h file. Please look at them before you change anything.
  18. Complete beginners guide
  19. =======================
  20. From a fresh Ubuntu install how to update the firmware of your Prusa Mendel ?
  21. (the specifics are for the Prusa Mendel built at the Bath RepRap masterclass.
  22. This version uses the http://reprap.org/wiki/Sanguinololu.
  23. Some details may not fit your hardware, be sure to check what you are doing)
  24. Steps 3,10,11 are hardware-specific to the Sanguinololu and Bath Prusa and should be skipped or modified accordingly for other hardware such as the Arduino Mega 2560
  25. Software installation
  26. ----------------------
  27. 1. Install the required packages (gcc-avr, avr-libc, etc.)
  28. sudo apt-get install arduino-core
  29. 2. Get the arduino software version 0018 (0023 works for RAMPS), uncompress it in a directory.
  30. Arduino software v1 has not been tested much, but is known to work with some boards.
  31. http://www.arduino.cc/en/Main/Software
  32. 3. Get the sanguino software, version 0018
  33. http://sanguino.cc/softwareforlinux
  34. follow the sanguino's readme so that your arduino hardware folder looks like
  35. arduino-0018/hardware/arduino
  36. arduino-0018/hardware/sanguino
  37. arduino-0018/hardware/tools
  38. 4. Clone the Sprinter git repository.
  39. git clone https://github.com/kliment/Sprinter.git
  40. Optionally, switch to the desired branch
  41. git branch -a
  42. git checkout THE_BRANCH_YOU_WANT
  43. Firmware compilation and upload
  44. -------------------------------
  45. 5. Edit INSTALL_DIR inside Sprinter/Makefile (do not mind the default reference to arduino 0022)
  46. 6. Run make. If everything goes well Sprinter/applet/Sprinter.cpp should have been created.
  47. You can safely ignore the error message mentioning arduino-0018/hardware/arduino/cores/arduino/WString.o
  48. 7. Connect your Sanguinololu to your computer
  49. http://reprap.org/wiki/Sanguinololu
  50. 8. Launch arduino-0018/arduino, open Sprinter/Sprinter.pde
  51. 9. Go to Tools -> Serial Port, and select the relevant option
  52. 10. Go to Tools -> Board, select Sanguino
  53. 11. Go to the Configuration.h file and edit the following lines:
  54. #define MOTHERBOARD 62
  55. 62 indicates Sanguino 1.2 or superior
  56. float axis_steps_per_unit[]
  57. set values that match your hardware. For the special cast gears of the Bath Masterclass Prusa Mendel, these values are
  58. float axis_steps_per_unit[] = {91.42857, 91.42857, 3200/1.25,700};
  59. also for the mentioned hardware setup
  60. const bool ENDSTOPS_INVERTING = false; //set to true to invert the logic of the endstops
  61. // false because the switch SIG signal is linked to the ground
  62. // "no touch == closed circuit == SIG connects to GND"
  63. // see http://reprap.org/wiki/Sanguinololu#Endstops
  64. 12. Click on the "play" button to compile. If everything goes well you should see a "Binary sketch size: " message.
  65. 13. Click on "the arrow going to the right" button to upload (you had done steps 7,8,9 before, right ?).
  66. If everything goes well you should see the message "Done uploading".
  67. if GEN7 with 20 Mhz is in use set the Fuses for Bootloader to
  68. lfuse= 0xF7 hfuse = 0xD4 efuse = FD
  69. Brownout must be 2,7 V
  70. Congratulations, you have just upgraded the firmware of your RepRap !
  71. You can use pronterface.py to do some manual verifications by moving the printer's tip along
  72. the axes and verifying that the physical displacements match the ones indicated on the interface.