-
Notifications
You must be signed in to change notification settings - Fork 38
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
BTT 2.0 with Creality 4.2.7 system board #43
Comments
I have this same problem just with the Artillery Sidewinder X2... I don't think they really support the product. They clearly do not monitor this site at all. And over a week I put in a tech support ticket I entered on their site - they have never responded. |
Believe it or not, I actually got it to work today. I needed to resolder a cable to get both sensors to work on the Ender3 v4.2.7 system board. I’ll post more details here as soon as I have time. |
mate if you could, youd be a life saver |
mate, to say im grateful doesnt even come close |
It seems that I haven't really got the motion sensor working fully as I thought yesterday. Sometimes it is detected and sometimes not (often it is there after a firmware restart.) But as soon as it starts printing it is empty. Not sure what is going on here. I'll dig on. At least the Switch works which is more important, so if the printer runs out of filament it'll pause the print. |
Hey mate how’d you go getting it sortedHaven’t even gotten around to putting my sensor in yet but the plan is to make a move todaySo what do you suggest… don’t even bother with the motion sensor and just run the switch on its own?On 29 Oct 2023, at 18:25, MathiasH ***@***.***> wrote:
It seems that I haven't really got the motion sensor working fully as I thought yesterday. Sometimes it is detected and sometimes not (often it is there after a firmware restart.) But as soon as it starts printing it is empty. Not sure what is going on here. I'll dig on. At least the Switch works which is more important, so if the printer runs out of filament it'll pause the print.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Hey! Yeah, no. I can't get the motion sensor to play ball, only the switch. There's got to be something with the PA7-port that is different from how BTT thinks it should work. |
Yeah I had a tinker with no luck either, ended up blanking it from the config |
~PA7 instead of ^PA7 for the motions sensor actually makes Klipper detect filament - visible under the Misc part on the dashboard but also through the command "QUERY_FILAMENT_SENSOR SENSOR=btt_motion_sensor". From the Klipper manual : I've also tried ^!PA7 and ~!PA7 which than makes the sensor detect a runout immediately but the sensor is not true. ^PA7 should be correct. The Z- pin should be a pull-up resistor after what I've read. But no setting I tried has made the blue led flash as it should when filament is passing by it. One thing that might work that I haven't tried is to switch the motion-cable and switch sensor cable but that requires new soldering of the contacts since the switch sensor cable contact has three poles and won't fit into the Z- port. I'm quite disappointed in BTT who haven't answered my support request two weeks ago. They're not active here or on Discord. |
Guys, I've been trying to get this working on an Artillery Sidewinder X2 (running Klipper) -- I suspect we have similar or identical problems. It does not detect motion for me, and Pauses immediately after purging the nozzle. The X2 only has 1 Z-Stop connector I can use for the Motion Sensor, thus the SFSv2's Runout wire/pin is not connected. Is there code we can use to test the filament sensor without printing... just moving the filament in/out by hand? |
So, I got this working on a Creality 4.2.7 board. What I did was just set the PIN to the Z-Stop pin PA7, no pull-up or pull-down. I have tested it multiple times mid-print and it will pause the print and wait for me to resume it. Hope this helps those who are having issues. BTW this was on Klipper. |
But have you got the motion sensor to work? The blue light should be blinking while you print.
…________________________________
Från: shaidou1287 ***@***.***>
Skickat: Friday, November 10, 2023 8:30:17 PM
Till: bigtreetech/smart-filament-detection-module ***@***.***>
Kopia: Mathias Haas ***@***.***>; Author ***@***.***>
Ämne: Re: [bigtreetech/smart-filament-detection-module] BTT 2.0 with Creality 4.2.7 system board (Issue #43)
So, I got this working on a Creality 4.2.7 board. What I did was just set the PIN to the Z-Stop pin PA7, no pull-up or pull-down. I have tested it multiple times mid-print and it will pause the print and wait for me to resume it. Hope this helps those who are having issues. BTW this was on Klipper.
—
Reply to this email directly, view it on GitHub<#43 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKM7YHG6FLAX3HG4V4RR5ETYDZ6ETAVCNFSM6AAAAAA6MYMDYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGMZDGNJZHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yeah, the blue light is blinking and if I hold the extruder open so filament won't go through it runs my pause macro. |
Wow, interesting! Can you please share the details? So motion sensor cable (green+black) to PA7, right? And blue+red switch sensor cable to PA4 I assume? Or aren't you using the switch cable at all? Can you please drop in your printer.cfg here so that I can compare the differences? Because I tried all combinations of Pull up/down. Thanks! |
Interesting… |
Sorry for the Delay but here is the section of the Printer config I have for the sensor. The rest is just the basic Ender 3 V2 config from the example w/ a CR Touch added.
|
Crap, what if you're already using the PA7 pin to get a Biqu MicroProbe v2 to work? Does it need hardware pullup? The MicroProbe V2 does which is why it has to goto PA7 instead of the default touch port PB1. I wonder if PB1 could be used in this case? |
Honestly I have absolutely no clue. All I know is that it works with out the pull up or pull down and the way I got to thinking about this is that the v1.0 doesn't use pull up or pull down for its encoder. |
That'll be the key point - the Microprobe needs a hefty pullup to function correctly which PB1 lacks. Wiring is gonna get a bit messy but it'll be cool if it enables full functionality. |
I’m about to try this out thanks so much for your hardwork everyone! Just a quick tip, I know the default is to want to break out the soldering iron and solder these things but it makes a mess. With these “pinned connectors” all you have to do is repin them. It’s super easy, just grab a pair of tweezers, poke the pins latch on the flat side until it’s down a bit and remove the wire. Then use your fingernail or something to pry the latch flap back about 45 degrees and stuff it into the hole on the other connector. Repeat until there’s no more pins. |
Since PA7 is the old z- end stop which you no longer need if you have a bltouch, wouldn't it make more sense to make that one your runout sensor? Then PA4 could be used for the motion encoder since that's not just a simple switch but a lightbulb and sensor counting optical interrupts. I had them switched up (because I was doing it by myself before finding this thread, and had to swap them in the code. |
It would if I had a BL or CR-Touch unit. I dont. I'm rocking a v2 BIQU Microprobe which doesn't work in the standard PB1 probe port because the pullup there is insufficient. So the MPv2 goes into PA7 and PB1 is free. Hence breaking out the soldering iron to make a splitter to connect the two ports. Seems to be working so far as a simple presence detector. Haven't yet got around to compiling a custom Marlin but I think that will be an either/or situation - Marlin only supports one runout sensor per extruder AFIK. |
@TacII im so gratefull someone tryed this out before. I wanted to try it today and i made my last search on google to find out if this was already done before i make some mistakes. Thank you so much! |
I didn't realize this was the case. I only just bought the BTT V2.0 run-out sensor for my Creality 4.2.7 board. I'm right now trying to figure out how to make it work in Marlin but looks like it might not be possible. |
Hello, I am trying to add the BTT SFS V2.0 with the command lines mentioned above but I am not having any luck. Could anyone get it to work? Ender 3 V2 whit klipper |
What command lines are you using? |
The ones you uploaded... I already found the error and it worked (I was placing the lines in the start and end gcode)... Is there a way to configure the times in which the motion sensor is activated? Since sometimes the head does travel too far to the edge of the bed when returning the filament that was stretched too much, it makes the sensor think that it is stuck |
That is totally separate thing in klipper. it's actually a klipper command
you can run to enable and disable the sensor. That would be something you
would need to put into code.
SET_FILAMENT_SENSOR¶
SET_FILAMENT_SENSOR SENSOR=<sensor_name> ENABLE=[0|1]: Sets the filament
sensor on/off. If ENABLE is set to 0, the filament sensor will be disabled,
if set to 1 it is enabled.
Is the command reference from klipper documentation.
…On Tue, Apr 2, 2024, 11:02 AM BakoBangBang ***@***.***> wrote:
Hello, I am trying to add the BTT SFS V2.0 with the command lines
mentioned above but I am not having any luck. Could anyone get it to work?
Ender 3 V2 whit klipper
What command lines are you using?
The ones you uploaded... I already found the error and it worked (I was
placing the lines in the start and end gcode)... Is there a way to
configure the times in which the motion sensor is activated? Since
sometimes the head does travel too far to the edge of the bed when
returning the filament that was stretched too much, it makes the sensor
think that it is stuck
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR6GIFGAHJXLJ3YIJULAPELY3LJCBAVCNFSM6AAAAAA6MYMDYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSGQ2TKMJRGQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Thought I'd chime in here as I did get this working with Marlin. You have to be running MARLIN-BUGFIX-2.1.X for this to work. If you're apprehensive about migrating, there's a feature within VSCODE that lets you compare files so you can move your changes over with relative ease. (Right click first file "select for compare", right click second file "compare with selected"). I followed the wiring diagram shown in the manual (see original post by TacII) with a few differences: In Marlin I followed the V2 instructions shown here with the following changes: #define FILAMENT_RUNOUT_DISTANCE_MM 20 I find that the filament runout distance of 5mm is too small...if the printer head moves far enough, a bunch of slack is pulled on the filament. The result is no filament length is pulled through the SFS resulting in a false runout error. As for the normal runout config: #define FIL_RUNOUT_PIN PA4 Hope this helps someone out there! |
How did you guys get this thing to eventually work on 4.2.7? What was the final solution? I connected red-blue to PA4 (blue on the left), black-green to PA7 (black on the left), in Klipper I prescribed pa4 as switch, pa7 as motion detector. I tried it both with and without the ^ sign. During normal printing the blue indicator blinks. If the filament runs out, the PA4 detector is triggered and the printer goes into pause mode. If you open the extruder and prevent the filament from moving, the blue light stops blinking and turns off. But the printer does not pause! One more observation: after rebooting Klipper, if no filament is inserted, both sensors are in not detected/empty status. As soon as I insert a filament, both sensors go into "detected". And then only the filament sensor is triggered, the status of the motion sensor never changes. Guys, what should I write in the settings? Actually, have 4.2.2, but (I mean) its similar as 4.2.7 |
I got it working with Marlin no problem (see comment above). One thing to note that came to light later one, the circular slider switch on the front of the sensor sometimes needs to be tightened. If it comes loose, you'll get a false (binary) filament runout detection. Could see this driving someone nuts who's not sure if they even have the pin assignment done correctly in klipper/marlin Make sure the slider switch button head is finger tight when rotated clockwise. |
But my problem is motion sensor not working (for klipper, I mean, coz blue lamp blinking during normal printing, so, signal from BTT sending to board and... klipper not received it?) and not enetering in pause mode when filament not moving (but present). Works only switch present/not present filament. |
I never got it working properly on Marlin (single filament sensor limitation) and for other reasons needed to change out the 422 board for a SKR Mini E3 V3 alongside a switch to Klipper. Works great there - both presence and motion will pause the machine and wait for interaction. The motion sensor only applies when the extruder moves and there's not linked movement from the sensor. It's a little unintuitive but does work. I'd be double checking klipper configs if these are not functioning as expected.
Same. A drop of blue Loctite would have been a great factory addition. |
Graciias Tacll, funcioona en Marlin y Klipper en una ender 3 con placav4.2.7, mi errror era que se habia soltado un pin del conector que va a la placa base. De nuevo, muy agradecido |
ok so im really struggling here. Pretty new to using VSCode and have done some basic work in arduino IDE. But i cannot for the life of me figure out how to compile this firmware. Ive edited my configuration.h file, ive followed all the steps and have the extensions loaded etc etc but its just not working for me - dont suppose anyone can upload a .bin file of their firmware for me? im pulling my hair out here!!! lol |
Just wondering does anyone have a config file for an Ender 3 pro with a CR touch and the BTT filament runout sensor that they would be willing to share? |
If so i would be very interested also! |
Edit: This is with Marlin-2.1.3-b1 I got it working with the stock Creality 4.2.2 board in Marlin. If you haven't read the previous posts, note that you will have to have a z-probe, because you need to free up the PA7 port (by default, for the Z-stop switch) if you want to have both the runout sensor and motion sensor working. I am not going to share my entire config files right now (I am running a BL-touch, a Microswiss NG direct drive extruder with a BMS Dragonfly heater block, a 60W heater and a P1000 thermistor, so I don't think it would be too helpful for anybody else to build my config). Anyway, it definitely seems to be working when I don't load the filament, and it successfully paused the print yesterday when my heat break got jammed with nylon (that wasn't fun to fix by the way), and it isn't throwing any false positives during my prints either. Thank you everyone in this thread; I wouldn't have figured this out without the various steps and ideas that you outlined above. Here is what I ended up doing: Physical connections
MarlinFile 1: pins_CREALITY_V4.h
File 2: Configuration.hFilament runout sensor component
Filament Motion Sensor Component
OtherPer the instructions:
enable the nozzle park feature.
File 3: Configuration_adv.h
enable the Advanced Pause Feature. |
Hello!
I recently purchased a BTT SFS v2.0 and I have a Creality v4.2.7 system board. The manual says, “To connect to a motherboard without filament runout port, please consult our technical support.”.
The Creality v4.2.7 system board only has a filament runout sensor (circled) which I ran successfully with the BTT Sensor v1 and Klipper.
Now, the blue light is constantly on and never blinks on the sensor when I connect one of the two cables. With the other one the sensor is just black.
I’ve tried using both firmware modifications for Klipper, [filament_motion_sensor] and [filament_switch_sensor] in printer.cfg (with everything that goes beneath them). I used own a BTT v1.0 so I’m fairly familiar with the setup.
The Creality system board filament sensor PIN is called PA4 and I’ve tried “PA4” and “^PA4” with both cables. I feel like I’m missing something here since there are two cables but only one that can be connected. Please advise.
The text was updated successfully, but these errors were encountered: