-
Notifications
You must be signed in to change notification settings - Fork 35
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
Detection Sensor not working on SKR mini e3 Board #1
Comments
Following! |
Me too |
I have run into the same issue. The default settings in the source recommends PC15, however I'm guessing that's just for on/off switches and not motion. I created a new Issue on the E3 Mini repo since its likely something with the board and linked back here. I also saw that Marlin moved from Bugfix-2.0.x to just 2.0.X so I guess that means its released now? I was going to try compiling straight from there tomorrow and see if that has an effect. |
So I just got a response on the other SKR Mini thread stating that PT-DET is not use for filament detection. I've asked if the module will work on 2 pins vs 3 since technically it comes with a 4 pin to 3 pin cable. |
same here - wondering which pin to use on this board |
\marlin-2.0.x\marlin-2.0.x\marlin\src\pins\stm\pins_BTT_SKR_MINI_E3.h #define FILAMENT_RUNOUT_SENSOR M119 to test if the sensor is working Hope this helps!! |
Interesting. I had the pins set correctly, but I didn't change the FIL_RUNOUT_INVERTING value. When my current print ends (in a couple of days), I'll update the firmware and see what happens. Thanks! |
Do you have FIL_RUNOUT_PULLDOWN commented out same as PULLUP? I flashed the firmware 2x now to test. First time I set Inverting to true but missed that you commented out the FIL_RUNOUT_PULLUP as well. In this state it let me print, but when I removed filament it never seemed to trigger. I recompiled and left inverting set to true, but commented out the pullup line and now its triggered at all times. Kind of wish I could change these values in the menu to make testing easier :\ |
Anyone solved? I'm facing the same problem. I have also an SKR 1.3 not tried yet. There is a way to check if sensor is faulty? Thanks |
I just placed the order for one. I will use it with an SKR 1.3 Mini E3 I'm already using. I'm using 2.0.1 Marlin I configured to use BL Touch. My next step will be to figure out if I want to connect this through Marlin or to a GPIO pin on my Raspberry Pi running Octoprint. If I go the GPIO pin way, I will use some 3v - 5V adapter chip I have running around to not put 5V on the Pi's pins directly. |
Anyone get this to work with the BIGTREETECH TFT35 V3.0 touchscreen display? They have a Fil-Det pin for this purpose. |
Had a similar Problem on my Cr10 with MKS SGEN L using Z+ endstop pin. the pin has the same pullup, capacitor wiring as the skr 1.3. My problem was that Marlin does not set the runout distance after flashing the firmware. M412 M412 D7 After that the sensor works fine for me |
I have a Ender 3 Pro - I gave up on trying to get it to work with the TFT 35 v3.0 and ended up using the PT-DET on the skr mini e3 v1.2 board. So far it seems like it does work, but I'll need to do more test around it. Not sure if you have a BLTouch as well, but I found the combination of BLTouch and trying to enable the filament runout settings to be over the 256k memory cap. Did a bit of research and turns out the v1.2 can go above that. The modifications I made were on the configs I grabbed are from the bigtreetech github for the skr mini e3 - https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/tree/master/firmware/V1.2/Marlin-2.0.x-SKR-Mini-E3-V1.2 platformio.ini - change from 256k to 512k[platformio] My filament runout sensor settings. I trimmed a bunch of stuff and left what's enabled to reduce clutter. configuration.h#define FILAMENT_RUNOUT_SENSOR #define FILAMENT_RUNOUT_SCRIPT "M600" #define NOZZLE_PARK_FEATURE Configuration_adv.h#define M114_DETAIL #define ADVANCED_PAUSE_FEATURE pins_BBT_SKR_MINI_E3.h#ifndef FIL_RUNOUT_PIN |
@phtp - How is your testing going with the BTT Smart Filament Sensor + SKR Mini E3? I have the SKR Mini E3 and BLTouch, and am wondering if it's safe to buy the BTT sensor, or if I should look down another path? |
It's pretty much plug and play as long as you adjust the configs right. I just can't get it to work with the touchscreen mode on the tft35. |
@phtp i tried that set up and when i put that in all the sensor does is set off the alarm and the ender 3 doesnt leave boot screen. |
What does the boot screen say, something along the lines of filament change? |
It just stayed on the marlin splash screen. I went back and took off the 512K. It did the filament change thing with #define FIL_RUNOUT_INVERTING true Gave me the full treatment. Maybe about 4 hours into the print it stopped. The filament didn't break and there was no pause screen. It had an ETA message that I hadn't seen before. |
Do you have v1.0 or v1.2 of the mini board? My settings are for v1.2. Not sure about inverting as mine is set to false. The smart sensor handles run out and jams. Maybe it detected a jam? |
i have v1.2. and it appears that it was jammed. guess its working. now i have to find out why it jams at the extruder. |
I had it once where it paused mid-print and I think it was because the filament being too tight. Was a very old PLA roll and near the end of it. I'm not 100% on this, but it hasn't happened with my new roll. |
Seems like the tension on the extruder was too tight. Everything is working now. |
I've been tinkering with mine over on Reddit with the help of (I assume) @phtp. @zuverck One thing that was pointed out is that when you call M119, if the sensor is connected it will show "open", but if its unplugged it shows "triggered". In my case it shows open regardless of whether or not the sensor is attached. I even ran a jumper between the Signal and Ground wires just to confirm and no change. Curious if anyone else running into this issue is seeing the same thing. |
This solved the same problem on my skr v1.3 too. |
Is there a light anywhere on this runout sensor? I am having issues as well. It always shows open. SKR E3 Mini 1.2,even have the TFT35 E3 v3 (pins dont work on this for sure, so went with PT-DET PC12). |
M119 (not matter if filament or not): |
Also same behavior after this as well: |
ok. so i thought it was working, but i was wrong. sometimes when i start a print it will go to the pause menu and move out of the way as if it was paused. i would resume the print it would be fine. i just did a quick test and cut the filament and let it run, but the sensor didnt kick on. #define FILAMENT_RUNOUT_SENSOR |
I wish that there is one. But you can easily add one. I used a cheap red led an a 1k resistor. just solder them together an plug it into the connector of the runout sensor (between V and S pin). or to have it more permanent just solder it to the connector on the sensor pcb.
this is a motion sensor. so it not just detects is filament is present or not, it toggles between open and triggered when the filament is moving. An other possibility to check the wiring ist to unplug the sensor an check M119 then shortcut S and V or S and gnd with a 1k resistor and check M119 again, this should definetly toggle the state |
Thanks all. Tested power and it appears to be getting 5v to the sensor. I ordered a replacement and tried new cable and new smart sensor, same results. This is what I have: pins_BTT_SKR_MINI_E3.h Configuration.h // Set one or more commands to execute on filament runout. // After a runout is detected, continue printing this length of filament
#endif Configuration_adv.h #define ADVANCED_PAUSE_FEATURE
#define FILAMENT_UNLOAD_RETRACT_LENGTH 13 // (mm) Unload initial retract length. #define PAUSE_PARK_NOZZLE_TIMEOUT 45 // (seconds) Time limit before the nozzle is turned off for safety. //#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change. //#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu. |
Also, why do they have the pins defined in their user guide in the following format, it appears abnormal. example: "#define FIL_RUNOUT_PIN P1_28" |
I was confused about this before, but it's for their other board and not the mini. |
Does anyone know if the BTT TFT35 E3 3.0 even really supports the Smart Filament Sensor. The document shows "only TFT 3.0" supported. When buying this item, they made it looked like it was supported. Incredible how buggy and non functioning this paperweight has proven to be. My setup: Bigtreetech, feel free to hop in and confirm your products work together with certainty. |
What's the current situation? Only tft35 connection is not working, but if you connect to motherboard (1.2), it's working? It's shame that BTT is releasing product without proper support and testing. |
It doesn’t appear to work no matter where it is connected. Always open (or triggered depending on inverting = true). I could share the Marlin 2 build of it made sense. But I am really assuming that these are just an issue generally for everyone. Does anyone know of a “smart” filament sensor that does distance and clog detection other than the BTT one? Their SKR boards are great, but not 100 % sure about this filament runout sensor haha. |
Somebody should check this on a scope, in this way we can be sure if filament detector is working properly. |
It's a bit of a lengthy thread with TerawattX but maybe you might find this useful. But it might turn out his board is faulty. I posted my configs there and using the BTT github code (https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/tree/master/firmware/V1.2/Marlin-2.0.x-SKR-Mini-E3-V1.2) for the mini versus directly from Marlin. |
I tried the other firmware and it now says M119 "open" while both connected and disconnected and with and without filament in it. However, the other firmware I was troubleshooting it said "triggered" in both states. This is with invert = false I even tested another "regular" filament runout sensor on my board and it triggers open / triggered respectively. I have uploaded the firmware I have been working with here: If you were to do a compare file between the BTT SKR E3 1.2 vanilla firmware and this you would see a lot of differences, but nothing that I could imagine would stop the sensor from switching. Maybe the (potential) bug in this Marlin firmware is the same bug others have reported the same issue as I have. So I am uploading it in the event BigTreeTech would like to figure this issue as it doesn't appear unique. |
If this code I posted to GitHub works for anyone else using the BTT Smart Filament Sensor, let me know. It would be interesting to see if issue is related to Firware or is hardware related. |
@btsubjectdata Sounds like you're in the same boat I am. I changed my firmware to just a on/off and left it on the PT-DET port to test if I could change the open/triggered state and no matter what it stayed the same. I'm not sure if this is a fault with the board or bug in the code though. There is a setting near the end of the configuration_adv file that enables debugging for pins. Might be worth enabling to confirm if the board is seeing the state change and its just being lost in the code somewhere after that. By the time I had gotten to this point though I was burnt out and just wanted to print something vs figure out how to even see the pin states, let alone debug more of the code. In the end I just set up a dumb filament switch using my old Z-stop and wired it to the E0-stop port. It won't catch clogs and jams, but better than nothing. |
Thank you for posting this as I could finally get it working "kind of". I too could not for the life of me get it to work with my tft35 v3.0. So went by your details and put it on my skr e3 mini 1.2. In 12864 mode the runout portion works, but it keeps thinking the line has stopped. I have tried having the filament going in either end to see if the sensor wheels have to turn one way or the other and does the same no matter what. Oh, and is there a way to have a continue option instead of having to turn off the runout sensor in order to continue. I have either PURGE or RUNOUT SENSOR on/off. Only after I turn the sensor off I get a continue option. For now I am going back to my old runout sensor as I have been at this for days. But any help would be appreciated. |
To anyone still having trouble with this, this comment describes the problem and workaround to the problem: bigtreetech/BIGTREETECH-SKR-mini-E3#144 (comment) The gist is that the PT-DET pin is already claimed by another process. An easy workaround is to initialize the runout sensor after the serial communications. Essentially, move these lines in
to directly after lines:
The directions in the manual are otherwise correct (except that the pin is PC12). |
Been working this thing for a few weeks now. I do not have a BL Touch. All it took was to hook up the filament sensor to the servo pins PA1 and it works perfect. Not sure what is happening with PC-12, but it's working fine with the PA1 pins. |
Many of us do have a BLTOUCH (myself included). I'm glad to hear you didn't have this trouble.
… On Mar 11, 2020, at 3:28 PM, SPACEMONKEY-01 ***@***.***> wrote:
Been working this thing for a few weeks now. I do not have a BL Touch. All it took was to hook up the filament sensor to the servo pins PA1 and it works perfect. Not sure what is happening with PC-12, but it's working fine with the PA1 pins.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Oh for sure!! I also want to get a BLT so hopefully they get this pin issue fixed. With my original post I just wanted to let everyone know with a BLT that you're not doing anything wrong. This is a pin issue for sure.
|
I'm going to open a PR with the Marlin repo with the fix I mentioned, and open a discussion on how to solve the problem properly. |
Hi sorry for bumping this issue again. Seems i have a different issue with PC12 PIN (PT-DET). Did all the changes mentioned including the change on Marlin/src/MarlinCore.cpp. Every time i pull out the filament the printer shuts down. I need to reinsert/trigger the sensor the turn on the printer. BTW im using vanila marlin 2.0.5.3. I see that the BTT has been updated to the latest version but I am having a hard time compiling it. |
I’m having the same problem too. |
If anyone has got this working on a 3 pin fil runout sensor, can they tell me wiring from board to sensor, I have tried (as it should be: I have tried changing the pins file to run on PC14 (probe). I have left the 5v connection to the PC-DET, but the other 2 (Ground and SIgnal) are on Probe connections. Found that it is triggering in reverse, so define FIL_RUNOUT_INVERTING true |
Ended up getting this working. This little vid https://www.youtube.com/watch?v=TrDJmYcZ0Ic was helpful for the setting up the firmware. The PDF in this repo can be used to work out the wiring. Once wired up you can do is call M119. Your filament sensor may show open or triggered. Whichever one it shows, you can advance filament through your sensor just a little bit, then run the command again. If you wired your sensor up correctly, you should see this flip from Triggered, to open and back and forth. Once you see your sensor going, you should be able to print. Make sure to do a M502, You can explicitly set this with "M412 S1 D7", and then "M500" to save, but the other way is best. Good luck. (Editing my comment). I was testing off the SERVO port, when I flipped to the PC-DET port I saw the same issue. (Even though my sensor was sending the right signals, verified via debug ie. enable debug and "M43 P44 W". You can see the sensor switching, but apparently the signal is not being interpreted. Maybe, this pin doesn't support interrupts and the the other one does? Anyway, might dig into this more but if your pulling your hair out, its a quick fix to wire into the SERVO port make sure to check your wiring as the pins have to flipped around.) |
anyone do it? I try Find 12 and 15 and doesn't work |
If the runout distance is set in the firmware and flashed it won't get used until you run an M502 to reload factory defaults. Confirmed it the other night. |
This issue is resolved in Marlin firmware 2.0.6. I have verified that using PIN 12 now works without further modification of the source code. |
If not mentioned previously, you can uncomment //#define FILAMENT_RUNOUT_SENSOR_DEBUG in RUNOUT.H. The debug information on your console will show you "MOTION DETECTED:0" and "REMAININGMM:#.##" while you're running a print. You just might have to watch very carefully for it as it scrolls by fast. |
Also had to do M412 D7, I have a skr 1.3 and I'm running a marlin bugfix of 2 weeks ago (604d10d3075f6a0b9b40fba85aeee5cb3acefb68) |
Utilized the Marlin build in the SKR mini e3 v1.2 repository to enable the smart filament sensor. I wired up the sensor to the DET0 (PC12) pin on the board, made the changes to enable the feature in the firmware including printing out the debug info to the terminal. The firmware never senses a change on the input line of DET0 to reset the runout counter so after 7mm the printer will halt. I have connected the sensor to a logic analyzer and verified that the sensor is working and toggling the output as filament passes through the rollers. However their is something wrong between the pin input and the getting into the processor as the PC12 pin never changes state in the software.
Can you provide guidance on your test setup utilized for the skr mini e3 v1.2 and which port was the sensor connected to?
The text was updated successfully, but these errors were encountered: