Marlin heating D8 instead of D10 October 15, 2016 03:36PM |
Registered: 7 years ago Posts: 5 |
Re: Marlin heating D8 instead of D10 October 16, 2016 12:05AM |
Registered: 8 years ago Posts: 552 |
Re: Marlin heating D8 instead of D10 October 16, 2016 12:05AM |
Registered: 8 years ago Posts: 552 |
Re: Marlin heating D8 instead of D10 October 16, 2016 05:24AM |
Admin Registered: 13 years ago Posts: 7,019 |
Re: Marlin heating D8 instead of D10 October 16, 2016 09:48AM |
Registered: 7 years ago Posts: 5 |
Quote
Roxy
Just about... You can put anything on any pin. You just need the Pins.h file to (correctly) say where your stuff is. Are you talking about D8 and D10 of a RAMPS board? Without a little more information, it is really hard to offer any help.
Re: Marlin heating D8 instead of D10 October 16, 2016 09:52AM |
Registered: 7 years ago Posts: 5 |
Quote
Dust
what motherboard did you set in configuration.h
did you edit pins_RAMPS.h?
I’m guessing you actually have a ramps?
It could be a bad clone mega or ramps also.... remove the ramps and check d8 is getting 5v on output
You could even go back a step, load up the blink demo in the ardunio ide and change the port to 8 or 10 and check that port on the mega is changing.
Re: Marlin heating D8 instead of D10 October 16, 2016 10:12AM |
Registered: 8 years ago Posts: 552 |
Quote
Roxy
/**
* M43: Scan for a pin to help the user locate unused pins on their controller board
* Either an LED or volt meter can be placed on the desired pin.
* This command will scan the non-sensitive pins and put a voltage on the pin for
* a short duration.
*
* S Start Pin number. If not given, will default to 0
*
* E End Pin number. If not given, will default to 127
*
* N No Sensitive Pin Checks. Use with caution!!!!
*
* R Repeat pulses on each pin this number of times before continueing to next pin
*
* W Wait time (in miliseconds) between pulses. If not given will default to 500
*
*/
//
// sensitive_pin() is used by both M43 and M44 to avoid messing with pins that should not be touched.
// It is cleaner to have it as a function call than as in-line logic.
//
static bool sensitive_pin(int p) {
int i;
for (uint8_t i = 0; i < COUNT(sensitive_pins); i++) {
if (p == sensitive_pins || p==68 || p==69 || p==70 || p==71 || p==72 || p==73 || p==74 //causes KILL on my printer
) {
return true;
}
}
return false;
}
inline void gcode_M43() {
int p, j, s=0, n_flag=0, e=127, w=500, r=1;
if (code_seen('R'))
r = code_value_int();
if (code_seen('S'))
s = code_value_int();
if (code_seen('E'))
e = code_value_int();
if (code_seen('N') )
n_flag++;
if (code_seen('W'))
w = code_value_int();
for(p=s; p<=e; p++) {
if ( n_flag==0 && sensitive_pin(p) ) {
SERIAL_ECHOPAIRPGM("Sensitive Pin: ", p);
SERIAL_ECHOPGM(" untouched.\n");
} else {
SERIAL_ECHOPAIRPGM("Pulsing Pin: ", p);
pinMode(p, OUTPUT);
for(j=0; j<r; j++) {
digitalWrite(p, 0);
idle();
delay(w);
digitalWrite(p, 1);
idle();
delay(w);
digitalWrite(p, 0);
idle();
delay(w);
}
}
SERIAL_ECHOPGM("\n");
}
SERIAL_ECHOPGM("Done\n");
}
Re: Marlin heating D8 instead of D10 October 16, 2016 10:17AM |
Registered: 7 years ago Posts: 5 |
Re: Marlin heating D8 instead of D10 October 16, 2016 10:32AM |
Registered: 7 years ago Posts: 5 |
#if MB(RAMPS_13_EFF) #define HEATER_0_PIN 8 #else #define HEATER_0_PIN 10 // EXTRUDER 1 #endif
Re: Marlin heating D8 instead of D10 October 16, 2016 04:37PM |
Registered: 8 years ago Posts: 552 |