-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] MKS Robin Nano E0_AUTO_FAN_PIN Sanity Check Error #14711
Comments
More troubleshooting from another issue. @tpruvot: Is there a particular file I should look for? There are a ton of files to go through now that I've added the |
i would check on the file where you got the error in the past. I think its a ".i" file for the preprocessed C code |
Here are all the *.i files if you can point me in the right direction: tevo-nereus-temp-files.zip. I'm not seeing an obvious error/reason why |
from board.ii on the VET6 i get that
but the RCT6 is different, with less gpios |
just my 0.02DKK do you set the autofan pin in the pins file? i set it in configuration_adv.h |
maybe try fgrep -r PB0 * to find conflicting ones... |
nope i dont, our nozzle fan pin is 24V permanent |
@boelle: See the first post 🙂 I’ve tried setting it multiple ways. The weird part is that if you bypass the sanity check, the board works as expected. |
yeah, i just updated my fork and get the same error if i set auto fan to the same as part cooling fan i know that some delta printers like the reprap pro fisher used one fan to cool both the cold end and at the same time work as a part cooling fan, https://www.thingiverse.com/thing:1503175 |
but he doesnt set to the same pin ^^ |
@boelle: I know it can be wired differently/modded, but in order to get a printer config into Marlin, it needs to work on the stock/shipped printers. Telling users who upgrade Marlin to rewire their machine/install mods isn't going to fly. |
nope, excatly my thought, i just took the fisher as an example where i know that auto fan and fan needs to be the same for it to work out the box |
@tpruvot: Here are the results when searching the temp files for |
so i seen some boards have #define ORIG_E0_AUTO_FAN_PIN ... see Marlin/src/pins/stm32/pins_REMRAM_V1.h may be related |
I've asked @zillarob to test the latest changes (Tevo Nereus branch) which now compiles with |
I should have some time to give it a run this eve and will let you guys know. |
#14768 i guess, no issue here. Maybe the timeout |
Got a chance to do some looking and it might be the calibration. I did give some random taps on the new one that didnt work the other day just to check, but didnt go crazy so may have slipped by. On the mks_touch one I tested for you I had commented out the calibration in config and pasted the mks calibration in the pins file. On this new version the cal in config is defined, and no mks cal in the pins file. I will be out this weekend so prob wont get to test until sun/mon. Hopefully false alarm =D |
Good news, and bad news. Bad news- The weekend didnt go as planned. There was a big boat and a big rock. The big rock won. Was starting to wonder if I was going to find out how good of a swimmer I am =) Good news- I got back early and was able to play around. Pasting in the mks calibration got everything working again. Not sure where the best place to put that in might be, Id guess in the pins file, but I will leave that to sharper minds =D |
@tpruvot |
if you mean the endstop as pwm pin, users need to remove a tiny capacitor to use it. |
Thanks! |
@tpruvot |
Ya, I always thought 4.7k was the go-to for these things, but seeing the 10k more and more. Im trying to see if can use E1 EN, STP, DIR for this also so dont have to mod the board. I see the open drain stuff in the Longer pins file, but I dont fully understand what that is (yet). |
the open drain (OD) is when you use a pullup res over the 5V (or more). the chip will only ground it to 0 (=5V) or be "unconnected" to the chip (= 0V on the device) so the logic is reversed |
Thanks for the tip. Looks like I have more homework to do =D When you set a servo pin, do you know if it enables the internal pullup so we might not have to add anything? |
pullup or pulldown are for inputs, servo signal is an output. Dont mess that with the ZMin sensor of the bltouch... need both Zmin and ZMax (here as output) |
Here is what I have been playing with. Pruned from the Longer file and pins set for the Nano.
|
yep, i said that because you said you removed the Zmin resistor.. which is not the most logic :p (if you want to use a normal sensor later, well this R45 seems useless anyway) |
Are you sure it was a 10K one ? those in serial are generally small values "fuses" ones as protection |
For sure, Im just fumbling my way through this stuff. Have an extra board just in case though =D It was 10k on the button with the meter. BTT looks like they use them on the SKR also. Oddly enough the TL Touch worked fine on the SKR. SKR v1.3 had a dedicated servo pin so that prob had something to do with it. Double checked with the meter |
Just tested The BLT on E1 STP PA6 TIM8 and looks good on the Robin Nano. Originally set up with 10k pullup to 3.3v, but pulled that off just to see what would happen and appeared to work fine without. Got a test print out (no pullup) and looks good. I think this might be a good option for the nano guys that arent using E1 and dont want to mess with the cap/resistor. |
Anyone know if simular option is possible for the MKS Robin Lite? Do I just have to put in the PWM line in the pin definition? Or also remove the 10k on the Z+ for it to work? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
TL;DR:
#if HAS_AUTO_FAN
block inSanityCheck.h
thinks two separate pins are the same.Background
I am compiling a config for the Tevo Nereus (MKS Robin Nano-based w/ "dumb" MKS TFT) which has the hotend attached to HE0 (pin
PC3
), hotend auto fan connected to HE1 (pinPB0
), and the parts cooling fan connected to the FAN connector (pinPB1
):For a general board reference:
Link to schematics on MKS' repo.
Steps to Reproduce
Setting
E0_AUTO_FAN_PIN
toFAN1_PIN
inConfiguration_adv.h
causes theSanityCheck.h
to return "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN." despite the pins being different forFAN1_PIN
andFAN_PIN
:Commenting out the hotend conditional and defining the
FAN1_PIN
directly returns the same "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN." error:Taking it a step further and defining
E0_AUTO_FAN_PIN
asPB0
inConfiguration_adv.h
and commenting outFAN1_PIN
in the pins file still results in the same "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN." error:Troubleshooting further with @tpruvot, I modified the pins file again to undefine
E0_AUTO_FAN_PIN
and defined it directly asPB0
, which still results in the same "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN." error:If you comment out the
#if HAS_AUTO_FAN
block inSanityCheck.h
, everything compiles without issue and both the auto fan & parts cooling fan works as expected (confirmed with the help of @zillarob since he owns the printer).Why is sanity check throwing an error when these are clearly two different pins?
Config/pins file: Tevo Nereus - MKS Robin Nano.zip
The text was updated successfully, but these errors were encountered: