kliment / sprinter Goto Github PK
View Code? Open in Web Editor NEWFirmware for RepRap printers and similar devices
Firmware for RepRap printers and similar devices
The leading developers of Sprinter are currently Kliment, caru and midopple, though many others contribute with their patches. 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. This work is licensed under the GNU GPL v3 or (at the user's discretion) any later version. It is based on Tonokips's firmware, which was licensed under GPL v2 or later. WARNING: This version (April 19th, 2011) fixes a bug that caused speeds to be lower than what set in GCODE. So before attempting any print, you will have to check all your axis max speed, including the extruder retract speed. Not following this guidelines can seriously damage your printer. 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: #include "ThermistorTable.h" 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: #define BNUMTEMPS NUMPTEMPS #define bedtemptable temptable Then add a line pointing to your second thermistor table, for example: #include "BedThermistorTable.h" 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. There are examples of all these configurations in the configuration.h file. Please look at them before you change anything. Complete beginners guide ======================= From a fresh Ubuntu install how to update the firmware of your Prusa Mendel ? (the specifics are for the Prusa Mendel built at the Bath RepRap masterclass. This version uses the http://reprap.org/wiki/Sanguinololu. Some details may not fit your hardware, be sure to check what you are doing) 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 Software installation ---------------------- 1. Install the required packages (gcc-avr, avr-libc, etc.) sudo apt-get install arduino-core 2. Get the arduino software version 0023, uncompress it in a directory. Arduino software v1 has not been tested much, but is known to work with some boards. http://www.arduino.cc/en/Main/Software 3. Get the sanguino software, version 0023 http://sanguino.cc/softwareforlinux follow the sanguino's readme so that your arduino hardware folder looks like arduino-0023/hardware/arduino arduino-0023/hardware/sanguino arduino-0023/hardware/tools 4. Clone the Sprinter git repository. git clone https://github.com/kliment/Sprinter.git Optionally, switch to the desired branch git branch -a git checkout THE_BRANCH_YOU_WANT Firmware compilation and upload ------------------------------- 5. Edit INSTALL_DIR inside Sprinter/Makefile (do not mind the default reference to arduino 0022) 6. Run make. If everything goes well Sprinter/applet/Sprinter.cpp should have been created. You can safely ignore the error message mentioning arduino-0023/hardware/arduino/cores/arduino/WString.o 7. Connect your Sanguinololu to your computer http://reprap.org/wiki/Sanguinololu 8. Launch arduino-0023/arduino, open Sprinter/Sprinter.pde 9. Go to Tools -> Serial Port, and select the relevant option 10. Go to Tools -> Board, select Sanguino 11. Go to the Configuration.h file and edit the following lines: #define MOTHERBOARD 62 62 indicates Sanguino 1.2 or superior float axis_steps_per_unit[] set values that match your hardware. For the special cast gears of the Bath Masterclass Prusa Mendel, these values are float axis_steps_per_unit[] = {91.42857, 91.42857, 3200/1.25,700}; also for the mentioned hardware setup const bool ENDSTOPS_INVERTING = false; //set to true to invert the logic of the endstops // false because the switch SIG signal is linked to the ground // "no touch == closed circuit == SIG connects to GND" // see http://reprap.org/wiki/Sanguinololu#Endstops 12. Click on the "play" button to compile. If everything goes well you should see a "Binary sketch size: " message. 13. Click on "the arrow going to the right" button to upload (you had done steps 7,8,9 before, right ?). If everything goes well you should see the message "Done uploading". if GEN7 with 20 Mhz is in use set the Fuses for Bootloader to lfuse= 0xF7 hfuse = 0xD4 efuse = FD Brownout must be 2,7 V Congratulations, you have just upgraded the firmware of your RepRap ! You can use pronterface.py to do some manual verifications by moving the printer's tip along the axes and verifying that the physical displacements match the ones indicated on the interface.
Never can remember how to submit patches instead of pull requests on here, ok, here goes nothin...
I am using ramps v1.2 on a mendel prusa, using the latest commit of sprinter (but It happened on earlier commits too). I run repsnapper, but he problem also occurs in pronterface. I have not tried running from sd card, because I don't have that option. I am running ubuntu, my skeinforge version 41.
I am having this issue, where my bot pauses (x and y stops moving) during a retraction/pushback. It can be viewed in this video:
http://www.flickr.com/photos/58101887@N02/5867736863/in/photostream
Sorry about the poor video quality, I didn't have my good camera with me today.
When I turn retraction to 1 mm, the pauses are quicker. And if I set retraction mm to 0 the pauses go away completely, but of course this causes ooze. Noone I talk to in #reprap or #makergearv2 has an answer to the problem, or has even seen it.
Indeed if I choose to comment acceleration in configuration.h when I try to compile I get an error because the variable decelerating use at the line 1179 in the file Srinter.pde doesn't not exist
Is there a enter missing from this line?
https://github.com/kliment/Sprinter/blob/master/Sprinter/pins.h#L439
Expected: if the thermistor is physically removed from the hotend (due to an accident) while printing, Sprinter should be able to recognize that even though power is being applied the temperature readings are not acting as they should because there's been a hardware failure. In other words, Sprinter has no way of avoiding or detecting this fatal scenario. Once this event occurs it is likely the hotend will be destroyed by overheating, or worse could occur to the user.
Actual: Sprinter will let you burn your hotend off the carriage, and if you're really neglectful it could become a fire hazard to you, your family, and/or possessions.
Please fix this.
has a change in slope at 205°. Not sure how to fix that, we have the same trouble in marlin...
If using AD595, I had to change two lines to get some serial temperature reading. Apart from that, the temperature conversion routines seemed to work well.
case 105: // M105
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675)
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) || defined (HEATER_USES_AD595) tt = analog2temp(current_raw); #endif #if TEMP_1_PIN > -1 bt = analog2tempBed(current_bed_raw); #endif
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675)
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) || defined (HEATER_USES_AD595) Serial.print("ok T:"); Serial.print(tt); #if TEMP_1_PIN > -1
Hi,
Found some problem in the M190 code as the analog temperature needed is compared with the actual analog temperature BUT using temp2analogh function instead of temp2analogBed function.
This causes, if you have different temperature tables to compare carrots with cabbages (French saying).
I guess the code in Sprinter.pde
case 190: // M190 - Wait bed for heater to reach target.
#if TEMP_1_PIN > -1
if (code_seen('S')) target_bed_raw = temp2analogh(code_value());
codenum = millis();
Should be:
case 190: // M190 - Wait bed for heater to reach target.
#if TEMP_1_PIN > -1
if (code_seen('S')) target_bed_raw = temp2analogBed(code_value());
codenum = millis();
Best regards, and thanks for this great piece of code.
I experienced some weird/random ultrafast moves during print. It looks like it would skip steps but does not.
Is this normal behaviour because I have the delays enabled?
make a min startup speed like 50 % if last value is 0.
Maybe for 10 sec
During a recent print, I paused because I could see there was a plastic problem, so I homed in X and Y.... of course, the nozzle sitting there oozed etc, so I primed the extruder....
when I resumed, the extruder RETRACTED the amount of extrusion I had extruded to prime. In other words, when I manually extruded 150mm of extrudate during pause, I subsequently incremented the E position.
After resume, the next E command is now 150mm back, so it retracts 150mm.
On Pause it would be nice if Pronterface took note of the next XYZE position (in the last command, and moved to Z, then X/Y, then G92'd the E to the last command's value.
I say Z first, because obviously you don't want the print head going THROUGH anything that's on the table, and well.. the E is obvious I think.
What do you think??
Use the MAX_PWM_POWER value for Autotune
(crispy1)
Hey kliment,
In the most recent commit when I try to compile or upload I get an error message. Previous versions have worked just fine. \
Here's a shot of the Arduino IDE: http://www.flickr.com/photos/ccotter247/6223423055/in/photostream
I just love the Makefile included with Sprinter.. no more crappy Java IDE for me! 👯
I ran into a problem though, where I first tried to build against Arduino 1.0.2 which didn't work. on closer inspection I saw that the Makefile was only tested against Arduino 0022. so I did a 'make clean' and tried again against 0022, but it still didn't work.. after scratching my head for a while, I found out that applet/Sprinter.cpp was not removed on 'make clean'.
is same PB0_SS_PCINT0 in Teensy2.0++ (A90USB1286)
I think the PB0_SS_PCINT0 port is crashed intenally.
I found this pin has over current arround 80mA When this pin make to Ground .
So A90USB1286 was over heated.
Hi,
Here's a little patch to build Sprinter with arduino 1.0. I don't now if it's clean but it work's ;-)
Pierre
Ignore extruder feedrate limit for reverse moves, and also the first forward move after a reverse
I am having a lot of issues using external stepper drivers that require at least a 2μs pulse on the step pin. In addition, my movements are controlled by worm gears so there is a large amount of friction. Is there a #define in the configuration.h file I am missing. Will I have to modify the interrupt functions? Any help would be greatly appreciated. I can post my findings on my project website as well.
If i choose temp table 7 in either one or both #define THERMISTORHEATER and #define THERMISTORBED it messes up the temp readings.
Sometimes it reads 5C even w/o any thermistor connected and sometimes it jams up the temp readings completely by freezing after a few seconds.
(tested on SL 1.3a)
and.. it semes not to be the table it self... because .. when I paste the(content of temp table 7) table under the "#if (THERMISTORHEATER == 1) || (THERMISTORBED == 1)" it works great.
I would like to use the content of file fastio.h for teaching, but I do not like to teach methods that are only usable in GPL licensed code. Are you still in contact with the original author Triffid_Hunter and could you allow me to redistribute the file fastio.h (and only that one file) under the Apache-2.0 license? The Apache-2.0 license would allow reuse of that code in closed-source software but still requires attribution in all forms of distribution (binary or source code) . I know that this topic is highly debatend amongst the free/open source community, so thanks for your consideration.
Hello to All
I use a Sanguinololu 1.3a and the homig of the Y axis is not working are there any settigs within Sprinter I can try?
As far as I can check the hardwear and the elektronik is working correct, but I have to say that I am not very good in elektronics.
I canged the axis from X to Y (electronic) and hade the same effect at the Y(hardwear) axis (Mendel).
Dose any one have Idears to solve this problem.
Kinde regards
Peter
Ps.: Sprinter is great I can understand the basic funktions and it`s reacting as described :-)
To correctly calculate it, the move distance in the XYZ space must be computed first.
Divide it by feedrate/60 and you get the time_to_move in seconds.
For each axis, divide axis move distance by the calculated time_to_move to get their actual feedrate and check it doesn't violate max speed constraints in configuration.h.
If any axis does violate them, scale other axes' feedrates accordingly, to calculate the right interval for each one (scale other axes speed may not be needed when 4D bresenham gets in, but it's necessary now)
By trial and error I found that if I turn max_travel_acceleration_units_per_sq_second[] for Y down 1 unit to 499, it exhibits this behavior http://www.youtube.com/watch?v=HyN_tl6iSug
No acceleration and slow travel jumping to full speed after a while.
I can't figure it out.
Code here, configuration.h
#ifndef CONFIGURATION_H #define CONFIGURATION_H // BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration //// The following define selects which electronics board you have. Please choose the one that matches your setup // MEGA/RAMPS up to 1.2 = 3, // RAMPS 1.3 = 33 // Gen6 = 5, // Sanguinololu up to 1.1 = 6 // Sanguinololu 1.2 and above = 62 #define MOTHERBOARD 3 //// Thermistor settings: // 1 is 100k thermistor // 2 is 200k thermistor // 3 is mendel-parts thermistor // 4 is 10k thermistor #define THERMISTORHEATER 1 #define THERMISTORBED 1 //// Calibration variables // X, Y, Z, E steps per unit - Metric Prusa Mendel with Wade extruder: float axis_steps_per_unit[] = {80, 20, 421.0526315789,(200/(6.5*3.14159)*(43/10))}; // Metric Prusa Mendel with Makergear geared stepper extruder: //float axis_steps_per_unit[] = {80,80,3200/1.25,1380}; //// Endstop Settings #define ENDSTOPPULLUPS 1 // Comment this out (using // at the start of the line) to disable the endstop pullup resistors // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins. const bool ENDSTOPS_INVERTING = false; //set to true to invert the logic of the endstops // This determines the communication speed of the printer #define BAUDRATE 115200 // Comment out (using // at the start of the line) to disable SD support: //#define SDSUPPORT 1 //// ADVANCED SETTINGS - to tweak parameters #include "thermistortables.h" // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 const bool X_ENABLE_ON = 0; const bool Y_ENABLE_ON = 0; const bool Z_ENABLE_ON = 0; const bool E_ENABLE_ON = 0; // Disables axis when it's not being used. const bool DISABLE_X = false; const bool DISABLE_Y = false; const bool DISABLE_Z = true; const bool DISABLE_E = false; // Inverting axis direction const bool INVERT_X_DIR = false; const bool INVERT_Y_DIR = false; const bool INVERT_Z_DIR = true; const bool INVERT_E_DIR = false; //// ENDSTOP SETTINGS: // Sets direction of endstops when homing; 1=MAX, -1=MIN const int X_HOME_DIR = -1; const int Y_HOME_DIR = -1; const int Z_HOME_DIR = -1; const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero. const bool max_software_endstops = true; //If true, axis won't move to coordinates greater than the defined lengths below. const int X_MAX_LENGTH = 225; const int Y_MAX_LENGTH = 213; const int Z_MAX_LENGTH = 133; //// MOVEMENT SETTINGS const int NUM_AXIS = 4; // The axis order in all axis related arrays is X, Y, Z, E float max_feedrate[] = {200000, 200000, 240, 500000}; bool axis_relative_modes[] = {false, false, false, false}; // Min step delay in microseconds. If you are experiencing missing steps, try to raise the delay microseconds, but be aware this // If you enable this, make sure STEP_DELAY_RATIO is disabled. //#define STEP_DELAY_MICROS 1 // Step delay over interval ratio. If you are still experiencing missing steps, try to uncomment the following line, but be aware this // If you enable this, make sure STEP_DELAY_MICROS is disabled. (except for Gen6: both need to be enabled.) //#define STEP_DELAY_RATIO 0.25 // Comment this to disable ramp acceleration #define RAMP_ACCELERATION 1 //// Acceleration settings #ifdef RAMP_ACCELERATION // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot. float max_start_speed_units_per_second[] = {25.0,25.0,0.2,10.0}; long max_acceleration_units_per_sq_second[] = {1000,500,50,10000}; // X, Y, Z and E max acceleration in mm/s^2 for printing moves or retracts long max_travel_acceleration_units_per_sq_second[] = {500,500,50,500}; // X, Y, Z max acceleration in mm/s^2 for travel moves #endif //// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!! //// PID settings: // Uncomment the following line to enable PID support. This is untested and could be disastrous. Be careful. //#define PIDTEMP 1 #ifdef PIDTEMP #define PID_MAX 255 // limits current to nozzle #define PID_INTEGRAL_DRIVE_MAX 220 #define PID_PGAIN 180 //100 is 1.0 #define PID_IGAIN 2 //100 is 1.0 #define PID_DGAIN 100 //100 is 1.0 #endif // How often should the heater check for new temp readings, in milliseconds #define HEATER_CHECK_INTERVAL 500 #define BED_CHECK_INTERVAL 5000 // Comment the following line to enable heat management during acceleration #define DISABLE_CHECK_DURING_ACC #ifndef DISABLE_CHECK_DURING_ACC // Uncomment the following line to disable heat management during moves //#define DISABLE_CHECK_DURING_MOVE #endif // Uncomment the following line to disable heat management during travel moves (and extruder-only moves, eg: retracts), strongly recommended if you are missing steps mid print. // Probably this should remain commented if are using PID. // It also defines the max milliseconds interval after which a travel move is not considered so for the sake of this feature. #define DISABLE_CHECK_DURING_TRAVEL 1000 //// Temperature smoothing - only uncomment this if your temp readings are noisy (Gen6 without EvdZ's 5V hack) //#define SMOOTHING 1 //#define SMOOTHFACTOR 16 //best to use a power of two here - determines how many values are averaged together by the smoothing algorithm //// Experimental watchdog and minimal temp // The watchdog waits for the watchperiod in milliseconds whenever an M104 or M109 increases the target temperature // If the temperature has not increased at the end of that period, the target temperature is set to zero. It can be reset with another M104/M109 //#define WATCHPERIOD 5000 //5 seconds //// The minimal temperature defines the temperature below which the heater will not be enabled #define MINTEMP 5 //// Experimental max temp // When temperature exceeds max temp, your heater will be switched off. // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure! // You should use MINTEMP for thermistor short/failure protection. #define MAXTEMP 275 // Select one of these only to define how the nozzle temp is read. #define HEATER_USES_THERMISTOR //#define HEATER_USES_AD595 //#define HEATER_USES_MAX6675 // Select one of these only to define how the bed temp is read. #define BED_USES_THERMISTOR //#define BED_USES_AD595 // Uncomment the following line to enable debugging. You can better control debugging below the following line //#define DEBUG #ifdef DEBUG //#define DEBUG_PREPARE_MOVE //Enable this to debug prepare_move() function //#define DEBUG_BRESENHAM //Enable this to debug the Bresenham algorithm //#define DEBUG_RAMP_ACCELERATION //Enable this to debug all constant acceleration info //#define DEBUG_MOVE_TIME //Enable this to time each move and print the result //#define DEBUG_HEAT_MGMT //Enable this to debug heat management. WARNING, this will cause axes to jitter! //#define DEBUG_DISABLE_CHECK_DURING_TRAVEL //Debug the namesake feature, see above in this file #endif #endif
A variable depending on definition of RAMP_ACCELERATION or EXP_ACCELERATION is used without checking if it's actually defined. This is also not correct, since min_units_per_second is actually the start speed of an accelerated move, not the best speed one can use to home the axis.
In G28: feedrate = min_units_per_second * 60;
The same for y.
In pins.h
The following to pins "TEMP_2_PIN+55, TEMP_BED_PIN+55" have been added to sensitive_pins.
TEMP_2_PIN is only defined if you have board type 33
TEMP_BED_PIN is not defined anywhere
result. it wont compile like this.
fastio.h
remove existing reference to AVR_AT90USB1287 and AVR_AT90USB1286
and add the following defs
#if defined (__AVR_AT90USB1287__) || defined (__AVR_AT90USB1286__)
// SPI
#define SCK DIO9
#define MISO DIO11
#define MOSI DIO10
#define SS DIO8
// change for your board
#define DEBUG_LED DIO31 /* led D5 red */
/*
pins
*/
#define DIO0_PIN PIND0
#define DIO0_RPORT PIND
#define DIO0_WPORT PORTD
#define DIO0_PWM NULL
#define DIO0_DDR DDRD
#define DIO1_PIN PIND1
#define DIO1_RPORT PIND
#define DIO1_WPORT PORTD
#define DIO1_PWM NULL
#define DIO1_DDR DDRD
#define DIO2_PIN PIND2
#define DIO2_RPORT PIND
#define DIO2_WPORT PORTD
#define DIO2_PWM NULL
#define DIO2_DDR DDRD
#define DIO3_PIN PIND3
#define DIO3_RPORT PIND
#define DIO3_WPORT PORTD
#define DIO3_PWM NULL
#define DIO3_DDR DDRD
#define DIO4_PIN PIND4
#define DIO4_RPORT PIND
#define DIO4_WPORT PORTD
#define DIO4_PWM NULL
#define DIO4_DDR DDRD
#define DIO5_PIN PIND5
#define DIO5_RPORT PIND
#define DIO5_WPORT PORTD
#define DIO5_PWM NULL
#define DIO5_DDR DDRD
#define DIO6_PIN PIND6
#define DIO6_RPORT PIND
#define DIO6_WPORT PORTD
#define DIO6_PWM NULL
#define DIO6_DDR DDRD
#define DIO7_PIN PIND7
#define DIO7_RPORT PIND
#define DIO7_WPORT PORTD
#define DIO7_PWM NULL
#define DIO7_DDR DDRD
#define DIO8_PIN PINE0
#define DIO8_RPORT PINE
#define DIO8_WPORT PORTE
#define DIO8_PWM NULL
#define DIO8_DDR DDRE
#define DIO9_PIN PINE1
#define DIO9_RPORT PINE
#define DIO9_WPORT PORTE
#define DIO9_PWM NULL
#define DIO9_DDR DDRE
#define DIO10_PIN PINC0
#define DIO10_RPORT PINC
#define DIO10_WPORT PORTC
#define DIO10_PWM NULL
#define DIO10_DDR DDRC
#define DIO11_PIN PINC1
#define DIO11_RPORT PINC
#define DIO11_WPORT PORTC
#define DIO11_PWM NULL
#define DIO11_DDR DDRC
#define DIO12_PIN PINC2
#define DIO12_RPORT PINC
#define DIO12_WPORT PORTC
#define DIO12_PWM NULL
#define DIO12_DDR DDRC
#define DIO13_PIN PINC3
#define DIO13_RPORT PINC
#define DIO13_WPORT PORTC
#define DIO13_PWM NULL
#define DIO13_DDR DDRC
#define DIO14_PIN PINC4
#define DIO14_RPORT PINC
#define DIO14_WPORT PORTC
#define DIO14_PWM NULL
#define DIO14_DDR DDRC
#define DIO15_PIN PINC5
#define DIO15_RPORT PINC
#define DIO15_WPORT PORTC
#define DIO15_PWM NULL
#define DIO15_DDR DDRC
#define DIO16_PIN PINC6
#define DIO16_RPORT PINC
#define DIO16_WPORT PORTC
#define DIO16_PWM NULL
#define DIO16_DDR DDRC
#define DIO17_PIN PINC7
#define DIO17_RPORT PINC
#define DIO17_WPORT PORTC
#define DIO17_PWM NULL
#define DIO17_DDR DDRC
#define DIO18_PIN PINE6
#define DIO18_RPORT PINE
#define DIO18_WPORT PORTE
#define DIO18_PWM NULL
#define DIO18_DDR DDRE
#define DIO19_PIN PINE7
#define DIO19_RPORT PINE
#define DIO19_WPORT PORTE
#define DIO19_PWM NULL
#define DIO19_DDR DDRE
#define DIO20_PIN PINB0
#define DIO20_RPORT PINB
#define DIO20_WPORT PORTB
#define DIO20_PWM NULL
#define DIO20_DDR DDRB
#define DIO21_PIN PINB1
#define DIO21_RPORT PINB
#define DIO21_WPORT PORTB
#define DIO21_PWM NULL
#define DIO21_DDR DDRB
#define DIO22_PIN PINB2
#define DIO22_RPORT PINB
#define DIO22_WPORT PORTB
#define DIO22_PWM NULL
#define DIO22_DDR DDRB
#define DIO23_PIN PINB3
#define DIO23_RPORT PINB
#define DIO23_WPORT PORTB
#define DIO23_PWM NULL
#define DIO23_DDR DDRB
#define DIO24_PIN PINB4
#define DIO24_RPORT PINB
#define DIO24_WPORT PORTB
#define DIO24_PWM NULL
#define DIO24_DDR DDRB
#define DIO25_PIN PINB5
#define DIO25_RPORT PINB
#define DIO25_WPORT PORTB
#define DIO25_PWM NULL
#define DIO25_DDR DDRB
#define DIO26_PIN PINB6
#define DIO26_RPORT PINB
#define DIO26_WPORT PORTB
#define DIO26_PWM NULL
#define DIO26_DDR DDRB
#define DIO27_PIN PINB7
#define DIO27_RPORT PINB
#define DIO27_WPORT PORTB
#define DIO27_PWM NULL
#define DIO27_DDR DDRB
#define DIO28_PIN PINA0
#define DIO28_RPORT PINA
#define DIO28_WPORT PORTA
#define DIO28_PWM NULL
#define DIO28_DDR DDRA
#define DIO29_PIN PINA1
#define DIO29_RPORT PINA
#define DIO29_WPORT PORTA
#define DIO29_PWM NULL
#define DIO29_DDR DDRA
#define DIO30_PIN PINA2
#define DIO30_RPORT PINA
#define DIO30_WPORT PORTA
#define DIO30_PWM NULL
#define DIO30_DDR DDRA
#define DIO31_PIN PINA3
#define DIO31_RPORT PINA
#define DIO31_WPORT PORTA
#define DIO31_PWM NULL
#define DIO31_DDR DDRA
#define DIO32_PIN PINA4
#define DIO32_RPORT PINA
#define DIO32_WPORT PORTA
#define DIO32_PWM NULL
#define DIO32_DDR DDRA
#define DIO33_PIN PINA5
#define DIO33_RPORT PINA
#define DIO33_WPORT PORTA
#define DIO33_PWM NULL
#define DIO33_DDR DDRA
#define DIO34_PIN PINA6
#define DIO34_RPORT PINA
#define DIO34_WPORT PORTA
#define DIO34_PWM NULL
#define DIO34_DDR DDRA
#define DIO35_PIN PINA7
#define DIO35_RPORT PINA
#define DIO35_WPORT PORTA
#define DIO35_PWM NULL
#define DIO35_DDR DDRA
#define DIO36_PIN PINE4
#define DIO36_RPORT PINE
#define DIO36_WPORT PORTE
#define DIO36_PWM NULL
#define DIO36_DDR DDRE
#define DIO37_PIN PINE5
#define DIO37_RPORT PINE
#define DIO37_WPORT PORTE
#define DIO37_PWM NULL
#define DIO37_DDR DDRE
#define DIO38_PIN PINF0
#define DIO38_RPORT PINF
#define DIO38_WPORT PORTF
#define DIO38_PWM NULL
#define DIO38_DDR DDRF
#define DIO39_PIN PINF1
#define DIO39_RPORT PINF
#define DIO39_WPORT PORTF
#define DIO39_PWM NULL
#define DIO39_DDR DDRF
#define DIO40_PIN PINF2
#define DIO40_RPORT PINF
#define DIO40_WPORT PORTF
#define DIO40_PWM NULL
#define DIO40_DDR DDRF
#define DIO41_PIN PINF3
#define DIO41_RPORT PINF
#define DIO41_WPORT PORTF
#define DIO41_PWM NULL
#define DIO41_DDR DDRF
#define DIO42_PIN PINF4
#define DIO42_RPORT PINF
#define DIO42_WPORT PORTF
#define DIO42_PWM NULL
#define DIO42_DDR DDRF
#define DIO43_PIN PINF5
#define DIO43_RPORT PINF
#define DIO43_WPORT PORTF
#define DIO43_PWM NULL
#define DIO43_DDR DDRF
#define DIO44_PIN PINF6
#define DIO44_RPORT PINF
#define DIO44_WPORT PORTF
#define DIO44_PWM NULL
#define DIO44_DDR DDRF
#define DIO45_PIN PINF7
#define DIO45_RPORT PINF
#define DIO45_WPORT PORTF
#define DIO45_PWM NULL
#define DIO45_DDR DDRF
#define AIO0_PIN PINF0
#define AIO0_RPORT PINF
#define AIO0_WPORT PORTF
#define AIO0_PWM NULL
#define AIO0_DDR DDRF
#define AIO1_PIN PINF1
#define AIO1_RPORT PINF
#define AIO1_WPORT PORTF
#define AIO1_PWM NULL
#define AIO1_DDR DDRF
#define AIO2_PIN PINF2
#define AIO2_RPORT PINF
#define AIO2_WPORT PORTF
#define AIO2_PWM NULL
#define AIO2_DDR DDRF
#define AIO3_PIN PINF3
#define AIO3_RPORT PINF
#define AIO3_WPORT PORTF
#define AIO3_PWM NULL
#define AIO3_DDR DDRF
#define AIO4_PIN PINF4
#define AIO4_RPORT PINF
#define AIO4_WPORT PORTF
#define AIO4_PWM NULL
#define AIO4_DDR DDRF
#define AIO5_PIN PINF5
#define AIO5_RPORT PINF
#define AIO5_WPORT PORTF
#define AIO5_PWM NULL
#define AIO5_DDR DDRF
#define AIO6_PIN PINF6
#define AIO6_RPORT PINF
#define AIO6_WPORT PORTF
#define AIO6_PWM NULL
#define AIO6_DDR DDRF
#define AIO7_PIN PINF7
#define AIO7_RPORT PINF
#define AIO7_WPORT PORTF
#define AIO7_PWM NULL
#define AIO7_DDR DDRF
//-- Begin not supported by Teensyduino
//-- don't use Arduino functions on these pins pinMode/digitalWrite/etc
#define DIO46_PIN PINE2
#define DIO46_RPORT PINE
#define DIO46_WPORT PORTE
#define DIO46_PWM NULL
#define DIO46_DDR DDRE
#define DIO47_PIN PINE3
#define DIO47_RPORT PINE
#define DIO47_WPORT PORTE
#define DIO47_PWM NULL
#define DIO47_DDR DDRE
//-- end not supported by Teensyduino
#undef PA0
#define PA0_PIN PINA0
#define PA0_RPORT PINA
#define PA0_WPORT PORTA
#define PA0_PWM NULL
#define PA0_DDR DDRA
#undef PA1
#define PA1_PIN PINA1
#define PA1_RPORT PINA
#define PA1_WPORT PORTA
#define PA1_PWM NULL
#define PA1_DDR DDRA
#undef PA2
#define PA2_PIN PINA2
#define PA2_RPORT PINA
#define PA2_WPORT PORTA
#define PA2_PWM NULL
#define PA2_DDR DDRA
#undef PA3
#define PA3_PIN PINA3
#define PA3_RPORT PINA
#define PA3_WPORT PORTA
#define PA3_PWM NULL
#define PA3_DDR DDRA
#undef PA4
#define PA4_PIN PINA4
#define PA4_RPORT PINA
#define PA4_WPORT PORTA
#define PA4_PWM NULL
#define PA4_DDR DDRA
#undef PA5
#define PA5_PIN PINA5
#define PA5_RPORT PINA
#define PA5_WPORT PORTA
#define PA5_PWM NULL
#define PA5_DDR DDRA
#undef PA6
#define PA6_PIN PINA6
#define PA6_RPORT PINA
#define PA6_WPORT PORTA
#define PA6_PWM NULL
#define PA6_DDR DDRA
#undef PA7
#define PA7_PIN PINA7
#define PA7_RPORT PINA
#define PA7_WPORT PORTA
#define PA7_PWM NULL
#define PA7_DDR DDRA
#undef PB0
#define PB0_PIN PINB0
#define PB0_RPORT PINB
#define PB0_WPORT PORTB
#define PB0_PWM NULL
#define PB0_DDR DDRB
#undef PB1
#define PB1_PIN PINB1
#define PB1_RPORT PINB
#define PB1_WPORT PORTB
#define PB1_PWM NULL
#define PB1_DDR DDRB
#undef PB2
#define PB2_PIN PINB2
#define PB2_RPORT PINB
#define PB2_WPORT PORTB
#define PB2_PWM NULL
#define PB2_DDR DDRB
#undef PB3
#define PB3_PIN PINB3
#define PB3_RPORT PINB
#define PB3_WPORT PORTB
#define PB3_PWM NULL
#define PB3_DDR DDRB
#undef PB4
#define PB4_PIN PINB4
#define PB4_RPORT PINB
#define PB4_WPORT PORTB
#define PB4_PWM NULL
#define PB4_DDR DDRB
#undef PB5
#define PB5_PIN PINB5
#define PB5_RPORT PINB
#define PB5_WPORT PORTB
#define PB5_PWM NULL
#define PB5_DDR DDRB
#undef PB6
#define PB6_PIN PINB6
#define PB6_RPORT PINB
#define PB6_WPORT PORTB
#define PB6_PWM NULL
#define PB6_DDR DDRB
#undef PB7
#define PB7_PIN PINB7
#define PB7_RPORT PINB
#define PB7_WPORT PORTB
#define PB7_PWM NULL
#define PB7_DDR DDRB
#undef PC0
#define PC0_PIN PINC0
#define PC0_RPORT PINC
#define PC0_WPORT PORTC
#define PC0_PWM NULL
#define PC0_DDR DDRC
#undef PC1
#define PC1_PIN PINC1
#define PC1_RPORT PINC
#define PC1_WPORT PORTC
#define PC1_PWM NULL
#define PC1_DDR DDRC
#undef PC2
#define PC2_PIN PINC2
#define PC2_RPORT PINC
#define PC2_WPORT PORTC
#define PC2_PWM NULL
#define PC2_DDR DDRC
#undef PC3
#define PC3_PIN PINC3
#define PC3_RPORT PINC
#define PC3_WPORT PORTC
#define PC3_PWM NULL
#define PC3_DDR DDRC
#undef PC4
#define PC4_PIN PINC4
#define PC4_RPORT PINC
#define PC4_WPORT PORTC
#define PC4_PWM NULL
#define PC4_DDR DDRC
#undef PC5
#define PC5_PIN PINC5
#define PC5_RPORT PINC
#define PC5_WPORT PORTC
#define PC5_PWM NULL
#define PC5_DDR DDRC
#undef PC6
#define PC6_PIN PINC6
#define PC6_RPORT PINC
#define PC6_WPORT PORTC
#define PC6_PWM NULL
#define PC6_DDR DDRC
#undef PC7
#define PC7_PIN PINC7
#define PC7_RPORT PINC
#define PC7_WPORT PORTC
#define PC7_PWM NULL
#define PC7_DDR DDRC
#undef PD0
#define PD0_PIN PIND0
#define PD0_RPORT PIND
#define PD0_WPORT PORTD
#define PD0_PWM NULL
#define PD0_DDR DDRD
#undef PD1
#define PD1_PIN PIND1
#define PD1_RPORT PIND
#define PD1_WPORT PORTD
#define PD1_PWM NULL
#define PD1_DDR DDRD
#undef PD2
#define PD2_PIN PIND2
#define PD2_RPORT PIND
#define PD2_WPORT PORTD
#define PD2_PWM NULL
#define PD2_DDR DDRD
#undef PD3
#define PD3_PIN PIND3
#define PD3_RPORT PIND
#define PD3_WPORT PORTD
#define PD3_PWM NULL
#define PD3_DDR DDRD
#undef PD4
#define PD4_PIN PIND4
#define PD4_RPORT PIND
#define PD4_WPORT PORTD
#define PD4_PWM NULL
#define PD4_DDR DDRD
#undef PD5
#define PD5_PIN PIND5
#define PD5_RPORT PIND
#define PD5_WPORT PORTD
#define PD5_PWM NULL
#define PD5_DDR DDRD
#undef PD6
#define PD6_PIN PIND6
#define PD6_RPORT PIND
#define PD6_WPORT PORTD
#define PD6_PWM NULL
#define PD6_DDR DDRD
#undef PD7
#define PD7_PIN PIND7
#define PD7_RPORT PIND
#define PD7_WPORT PORTD
#define PD7_PWM NULL
#define PD7_DDR DDRD
#undef PE0
#define PE0_PIN PINE0
#define PE0_RPORT PINE
#define PE0_WPORT PORTE
#define PE0_PWM NULL
#define PE0_DDR DDRE
#undef PE1
#define PE1_PIN PINE1
#define PE1_RPORT PINE
#define PE1_WPORT PORTE
#define PE1_PWM NULL
#define PE1_DDR DDRE
#undef PE2
#define PE2_PIN PINE2
#define PE2_RPORT PINE
#define PE2_WPORT PORTE
#define PE2_PWM NULL
#define PE2_DDR DDRE
#undef PE3
#define PE3_PIN PINE3
#define PE3_RPORT PINE
#define PE3_WPORT PORTE
#define PE3_PWM NULL
#define PE3_DDR DDRE
#undef PE4
#define PE4_PIN PINE4
#define PE4_RPORT PINE
#define PE4_WPORT PORTE
#define PE4_PWM NULL
#define PE4_DDR DDRE
#undef PE5
#define PE5_PIN PINE5
#define PE5_RPORT PINE
#define PE5_WPORT PORTE
#define PE5_PWM NULL
#define PE5_DDR DDRE
#undef PE6
#define PE6_PIN PINE6
#define PE6_RPORT PINE
#define PE6_WPORT PORTE
#define PE6_PWM NULL
#define PE6_DDR DDRE
#undef PE7
#define PE7_PIN PINE7
#define PE7_RPORT PINE
#define PE7_WPORT PORTE
#define PE7_PWM NULL
#define PE7_DDR DDRE
#undef PF0
#define PF0_PIN PINF0
#define PF0_RPORT PINF
#define PF0_WPORT PORTF
#define PF0_PWM NULL
#define PF0_DDR DDRF
#undef PF1
#define PF1_PIN PINF1
#define PF1_RPORT PINF
#define PF1_WPORT PORTF
#define PF1_PWM NULL
#define PF1_DDR DDRF
#undef PF2
#define PF2_PIN PINF2
#define PF2_RPORT PINF
#define PF2_WPORT PORTF
#define PF2_PWM NULL
#define PF2_DDR DDRF
#undef PF3
#define PF3_PIN PINF3
#define PF3_RPORT PINF
#define PF3_WPORT PORTF
#define PF3_PWM NULL
#define PF3_DDR DDRF
#undef PF4
#define PF4_PIN PINF4
#define PF4_RPORT PINF
#define PF4_WPORT PORTF
#define PF4_PWM NULL
#define PF4_DDR DDRF
#undef PF5
#define PF5_PIN PINF5
#define PF5_RPORT PINF
#define PF5_WPORT PORTF
#define PF5_PWM NULL
#define PF5_DDR DDRF
#undef PF6
#define PF6_PIN PINF6
#define PF6_RPORT PINF
#define PF6_WPORT PORTF
#define PF6_PWM NULL
#define PF6_DDR DDRF
#undef PF7
#define PF7_PIN PINF7
#define PF7_RPORT PINF
#define PF7_WPORT PORTF
#define PF7_PWM NULL
#define PF7_DDR DDRF
#endif
pins.h
replace existing Teensylu & Printrboard defs as follows
/****************************************************************************************
* Teensylu 0.7 pin assingments (ATMEGA90USB)
* Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
****************************************************************************************/
#if MOTHERBOARD == 8
#define MOTHERBOARD 8
#define KNOWN_BOARD 1
#define X_STEP_PIN 28
#define X_DIR_PIN 29
#define X_ENABLE_PIN 19
#define X_MIN_PIN 25
#define X_MAX_PIN -1
#define Y_STEP_PIN 30
#define Y_DIR_PIN 31
#define Y_ENABLE_PIN 26
#define Y_MIN_PIN 20
#define Y_MAX_PIN -1
#define Z_STEP_PIN 32
#define Z_DIR_PIN 33
#define Z_ENABLE_PIN 17
#define Z_MIN_PIN 27
#define Z_MAX_PIN -1
#define E_STEP_PIN 34
#define E_DIR_PIN 35
#define E_ENABLE_PIN 13
#define HEATER_0_PIN 15 // Extruder
#define HEATER_1_PIN 14 // Bed
#define FAN_PIN 16 // Fan
#define TEMP_0_PIN 7 // Extruder
#define TEMP_1_PIN 6 // Bed
#define SDPOWER -1
#define SDSS 20
#define LED_PIN -1
#define PS_ON_PIN -1
#define KILL_PIN -1
#define ALARM_PIN -1
#ifndef SDSUPPORT
// these pins are defined in the SD library if building with SD support
#define SCK_PIN 21
#define MISO_PIN 22
#define MOSI_PIN 23
#endif
#endif
/****************************************************************************************
* Printrboard Rev. B pin assingments (ATMEGA90USB1286)
* Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
* See http://reprap.org/wiki/Printrboard for more info
****************************************************************************************/
#if MOTHERBOARD == 9
#define MOTHERBOARD 9
#define KNOWN_BOARD 1
#define X_STEP_PIN 28
#define X_DIR_PIN 29
#define X_ENABLE_PIN 19
#define X_MIN_PIN 47
#define X_MAX_PIN -1
#define Y_STEP_PIN 30
#define Y_DIR_PIN 31
#define Y_ENABLE_PIN 18
#define Y_MIN_PIN 20
#define Y_MAX_PIN -1
#define Z_STEP_PIN 32
#define Z_DIR_PIN 33
#define Z_ENABLE_PIN 17
#define Z_MIN_PIN 36
#define Z_MAX_PIN -1
#define E_STEP_PIN 34
#define E_DIR_PIN 35
#define E_ENABLE_PIN 13
#define HEATER_0_PIN 15 // Extruder
#define HEATER_1_PIN 14 // Bed
#define FAN_PIN 16 // Fan
#define TEMP_0_PIN 1 // Extruder
#define TEMP_1_PIN 0 // Bed
#define SDPOWER -1
#define SDSS 2
#define LED_PIN -1
#define PS_ON_PIN -1
#define KILL_PIN -1
#ifndef SDSUPPORT
// these pins are defined in the SD library if building with SD support
#define SCK_PIN 21
#define MISO_PIN 22
#define MOSI_PIN 23
#endif
#endif
Hi,
I'm not sure if this is something I'm doing wrong or something in either the firmware or printrun or maybe skeinforge.
(I don't know which firmware version I have! It was the one dished out at the Bath masterclass.)
Anyway, to reproduce my problem, print something (probably without any filament loaded & heat off).
Let it do a layer or so, then click the "pause" button in printrun.
Optional : Hit Reset in printrun
Then either "restart" if you didn't reset or start a new "print" if you did.
The extruder then tries to suck back everything it just printed. This generally doesn't work and you now need to refeed your filament to start printing again. As well as cancel the print that just started with the filament end hanging loose.
I spent a long time thinking I was doing something wrong in Skeinforge before eventually not changing anything and loading the same gcode and printing again and it noticing that it didn't do what it did when I first loaded the file.
(This makes me think it's nothing to do with Skeinforge settings)
This is a bit annoying when you're trying to tune settings and every time you want to restart a print you need to completely power down the printer (remove USB and main power) or hit the reset switch on the control board.
It sort of makes sense to do this, I'm using "absolute" setting in "dimension". So I suppose that taking the extruder back to zero makes sense. But I would have thought the "Reset" in printrun could reset the extrude distance to zero...
Thanks,
Max
When using the experimental branch and the lift setting is activated in Slic3r, during the lifts, Sprinter will lower the head more and more until it crashed into the bed (over the course of several lifts). When this happens, the Z endstop is triggered, but ignored.
The master branch is unaffected.
Hi,
I had an attempt to update sprinter for Gen7 electronics, which seems to be working fine as far as I am concerned..
I have documented the changes that I have made here:
http://forums.reprap.org/read.php?147,119166
but since I am no programmer and I don't know anything about updating code in github, I guess someone might incorporate the updates so more ppl can make use if it..
** I guess I shouldn't write this as an issue, but I didn't know where else to go..
Thanks
fouadatmeh
Kliments idea
if(!endstop)step;else(++counter);
if(counter)counter--; else step;
The comment_mode does not work:
Trying to send a comment line starting with ";" does block the communication completely and subsequent commands are ignored. Only a reset can re-activate the controller.
And a comment following a command in the same line is not interpreted; the whole line is currently ignored.
Firmware: kliment-Sprinter-52f7f30 Ver1.3.11T
Software: PronterFace(Sorry, I don't know the version)
Hardware: Sanguinololu V1.3a
MCU: Mega644P
printer: Mendel
Sprinter configuration: Size= 170_160_100;
Operation steps:
1 Load a file(*.stl or *.gcode)
2 press All-Home button
3 press print button
~~~~~~~~~~~~~ the printer start print, but X and Y-axis did not move to center fist.
5 press pause button
6 move Y+ 100mm,
~~~~~~~~~~~~~ the bed will move for a small distance, about 80mm from home, then Stop.looks like reach the Y-end.
Another operation steps:
1 load a file
2 press All+home button
3 press Y-home button
4 press print button
~~~~~~~~~~~~~~~~ as same as previous operation, Y is wrong position.
5 press pause button
6 press Y-Home button, so X-home button
7 Press Restart button
~~~~~~~~~~~~~~~~~ printer looks work good.
Is this a bug? or somewhere in configuration.h can correct this problem?
what will happen on RAMS?
Hello,
I have a extra board from makerbot replicator 2. It is possible to flash sprinter firmware on it?
Thank you
Arduino's Millis() has an overflow after 9h32min. If you print something really long, or the machine was left powered before starting a print, this could be problematic.
see e.g. http://www.faludi.com/2007/12/18/arduino-millis-rollover-handling/
Alternatively, there seems to be a possibility to reset the internal millis() counter :
timer0_overflow_count=0 before a linear move might also do trick.
If you send the command to change head bed, hot end, or fan speed, they are executed much longer before they should.
I had this happening to me where the hotend was turned off minutes before the print was finished, resulting in the hot end being too cold to extrude before the print was finished.
Same thing is happening on first layer where the fan is turned on before the first layer is finished, resulting in, where the fan is on, being unable to stick to the bed.
My buffer is also set to 32 steps to prevent it from running out, so the commands are executed a lot before than what they should.
If your temp sensor ever comes unplugged, the temp reading registers as 0. This will cause the heater to run full out, causing a nasty meldown of plastic...
It would be nice if a missing temp sensor disabled the heater (bed and nozzle(s)).
Thanks!
Changed filment this moring to a diffrent colour, need to re-callabrate the extruder.
PLA brown, it melted at 195C so no problem, Had my steps_mm set at 733, maked off the 110 and it only pushed 35 mm down the tube. In the end I stopped at 3000 steps_mm and decided to re-flash back to an earlier version and the problem was fixed.
I was running the latest Sprinter, version downloaded 16/5/2011
Not 100% sure what the problem is.
Hardware, Prusa wih RAMPS 1.2 with SDRamps
Auzze
The PIN_PS_ON should be enabled when a stepper/heater is enabled, and disabled a certain waiting time after the last use of the steppers/heaters.
the reprap wiki has M203 as
M203: Record Z adjustment
Example: M203 Z-0.75
This records a Z offset in non-volatile memory in RepRap's microcontroller where it remains active until next set, even when the power is turned off and on again. If the first layer is too close to the bed, you need to effectively move the bed down, so the Z value will be negative. If the nozzle is too far from the bed during the first layer, the Z value should be positive to raise the bed. The maximum adjustment is +/-1.27mm.
Sprinter Experimental it's:
M203 Temperature monitor for Repetier
Sprinter Main does not have 203 implemented.
What do other firmwares have M203 as? is reprap wiki page wrong?
Trying to set up RepRap to use new hotend with a different thermistor, firmware uploads OK but depending on the value of THERMISTORHEATER Pronterface either connects fine or fails to connect. With value of 1-4 the printer can be connected to fine, a value of 5-7 causes Pronterface to get stuck on "Connecting..." I have been able to reproduce this consistently. I can make it connect with THERMISTORHEATER = 5 if I also set THERMISTORBED to 5. I am using commit de2feb0 with the following changes
--- a/Sprinter/Configuration.h
+++ b/Sprinter/Configuration.h
@@ -17,7 +17,7 @@
// Gen 3 Plus = 21
// gen 3 Monolithic Electronics = 22
// Gen3 PLUS for TechZone Gen3 Remix Motherboard = 23
-#define MOTHERBOARD 33
+#define MOTHERBOARD 62
//// Thermistor settings:
// 1 is 100k thermistor
@@ -27,12 +27,12 @@
// 5 is ParCan supplied 104GT-2 100K
// 6 is EPCOS 100k
// 7 is 100k Honeywell thermistor 135-104LAG-J01
-#define THERMISTORHEATER 1
+#define THERMISTORHEATER 5
#define THERMISTORBED 1
//// Calibration variables
// X, Y, Z, E steps per unit - Metric Prusa Mendel with Wade extruder:
-#define _AXIS_STEP_PER_UNIT {80, 80, 3200/1.25,700}
+#define _AXIS_STEP_PER_UNIT {40, 40, 1600/1.25,364.22}
// Metric Prusa Mendel with Makergear geared stepper extruder:
//#define _AXIS_STEP_PER_UNIT {80,80,3200/1.25,1380}
// MakerGear Hybrid Prusa Mendel:
@@ -45,9 +45,9 @@
// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
//If your axes are only moving in one direction, make sure the endstops are connected properly.
//If your axes move in one direction ONLY when the endstops are triggered, set [XYZ]_ENDSTOP_INVERT to true here:
-const bool X_ENDSTOP_INVERT = false;
-const bool Y_ENDSTOP_INVERT = false;
-const bool Z_ENDSTOP_INVERT = false;
+const bool X_ENDSTOP_INVERT = true;
+const bool Y_ENDSTOP_INVERT = true;
+const bool Z_ENDSTOP_INVERT = true;
// This determines the communication speed of the printer
#define BAUDRATE 115200
@@ -117,10 +117,10 @@ const bool DISABLE_E = false;
//-----------------------------------------------------------------------
// Inverting axis direction
//-----------------------------------------------------------------------
-const bool INVERT_X_DIR = false;
-const bool INVERT_Y_DIR = false;
+const bool INVERT_X_DIR = true;
+const bool INVERT_Y_DIR = true;
const bool INVERT_Z_DIR = true;
-const bool INVERT_E_DIR = false;
+const bool INVERT_E_DIR = true;
//-----------------------------------------------------------------------
//// ENDSTOP SETTINGS:
Reprap Longboat Prusa
Sanguinololu 1.3a
kliment-Sprinter-52f7f30
Pronterface
Slic3r
I realised that my printer was printing mirrored and so I reversed direction for the X motor (const bool INVERT_X_DIR = true;), of course the X end stop is then at the wrong end. Rather than move the end stop I tried setting X_HOME_DIR to 1 instead of -1 but the X motor then doesn't move when the home button is pressed (it does move if the X+ and X- buttons are pressed), I tried playing with max_software_endstops but it made no difference. I got around the problem by moving the endstop to the X motor end but the weight distribution means that the X-Idler end doesn't always drop as it should. I can add weights or springs but it worked a lot better when I homed to the x-idler end.
Bryan
I had some trouble with prints failing because the temperature was dropping. I guess it is caused by a bad temperature reading, triggering this code in Sprinter.pde:
#ifdef MINTEMP
if(current_raw <= minttemp)
target_raw=0;
#endif
If instead of setting the target_raw to 0 the heater_pin can be set low, so if the next reading of the temperature sensor is ok the printer keeps on managing the heater.
I changed Sprinter.pde by moving #ifdef MINTEMP to where the heater pin is managed:
#ifdef PIDTEMP
error = target_raw - current_raw;
pTerm = (PID_PGAIN * error) / 100;
temp_iState += error;
temp_iState = constrain(temp_iState, temp_iState_min, temp_iState_max);
iTerm = (PID_IGAIN * temp_iState) / 100;
dTerm = (PID_DGAIN * (current_raw - temp_dState)) / 100;
temp_dState = current_raw;
analogWrite(HEATER_0_PIN, constrain(pTerm + iTerm - dTerm, 0, PID_MAX));
#else
if(current_raw >= target_raw)
{
WRITE(HEATER_0_PIN,LOW);
#if LED_PIN>-1
WRITE(LED_PIN,LOW);
#endif
}
else
{
WRITE(HEATER_0_PIN,HIGH);
#if LED_PIN > -1
WRITE(LED_PIN,HIGH);
#endif
}
// ----------------------------------------------------
// if bad temp reading turn heater off for now
//--
#ifdef MINTEMP
if(current_raw <= minttemp) {
WRITE(HEATER_0_PIN,LOW);
#if LED_PIN>-1
WRITE(LED_PIN,LOW);
#endif
}
#endif
//---------------------------------
#endif
Thanks,
Frank
Getting compile error when I comment out RAPID_OSCILLATION_REDUCTION
Hey,
I just updated from a version of Sprinter (Tonokip) around mid May and found that the Repsnapper "Current Temp" box was being left empty. I don't have a heated bed, and the feedback from M105 is correctly showing the temp.
I thought at first it was a formatting issue, but turns out it's not.
In the earlier version of the firmware, the output code was:
Serial.print("T:");
Serial.println(tt);
and if I add those two lines in before the current code... like so:
Serial.print("T:");
Serial.println(tt);
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) || defined HEATER_USES_AD595
Serial.print("ok T:");
Serial.print(float(tt));
#if TEMP_1_PIN > -1 || defined BED_USES_AD595
Serial.print(" B:");
Serial.println(float(bt));
#else
Serial.println("");
#endif
#else
then everything goes back to working... I think repsnapper misses the T: because of the "ok"
anyway - perhaps for those using Repsnapper V357, we need to add another #define REPSNAPPER_357 ??
and just #ifdef REPSNAPPER_357, then print the temp as before?
With current master d651a6c filament retraction does not work after some movements. I sliced a file using skeinforge and at some points retraction by 5mm causes the motor to make an approx 800Hz sound. The motor does not move / retract the filament at all but makes some loud noise. Pushing the filament forwards afterwards results in a big blob in the printed part.
Most of the time retraction works well; but some GCode-combination causes the Extruder to stop retracting.
One of those cases is in the following GCode-Snippet:
G90
G92 X77.1 Y98.7 Z0.36 E30.6 ;start from here
; this was line 420
;G1 X75.894 Y97.349 Z0.36 F1440.0 E30.616
;G1 X77.162 Y98.776 Z0.36 F1440.0 E30.6693
G1 X76.862 Y97.914 Z0.36 F1440.0 E30.6948
G1 X76.806 Y97.858 Z0.36 F1440.0 E30.697
G1 F798.0
G1 E25.697 ; motor does not move, approx 800Hz sound (losing steps?!)
In Configuration.h I have (manually retracting the extruder at 2700mm/min does work)
#define _MAX_FEEDRATE {400, 400, 2, 45} // (mm/sec)
The experimental branch shows the same behaviour.
6d5a329 was working alright.
Any ideas what could cause such a behaviour?
iff --git a/Tonokip_Firmware/configuration.h b/Tonokip_Firmware/configuration.h
index 2bd4e6a..dc9ac01 100644
--- a/Tonokip_Firmware/configuration.h
+++ b/Tonokip_Firmware/configuration.h
@@ -141,6 +141,8 @@ const int Z_HOME_DIR = -1;
#define bedtemptable temptable
//Endstop Settings
+//If your motors are only moving in one direction, make sure your endstops are connected
+//then try setting ENDSTOPS_INVERTING = true
#define ENDSTOPPULLUPS 1
const bool ENDSTOPS_INVERTING = false;
const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.