Giter Club home page Giter Club logo

Comments (18)

SirRenix avatar SirRenix commented on July 18, 2024 1

Unfortunately this will not work with the standard cabling on FAN3 of Voron V0.2 config, because according to schematic this port GPIO20 is linked with the laser port. Furthermore Klipper gives an error message that the port is already occupied. You are not allowed to connect a fan on FAN3 and have to switch to FAN 2/1.

from smart-filament-detection-module.

jonathanalevi avatar jonathanalevi commented on July 18, 2024

Add this to the appropriate config file on YOUR setup (on mine it's sky-pico-v1.0.cfg)

[filament_switch_sensor switch_sensor]
switch_pin: ^gpio16 # as shown in Figure 2, switch sensor I is PAO
pause_on_runout: False
runout_gcode:
  PAUSE # [pause resume] is required in printer.cfg
  M117 Filament switch runout
insert_gcode:
  M117 Filament switch inserted

[filament_motion_sensor encoder_sensor]
switch_pin: ^gpio20 # as shown in Figure 2, motion sensor IO is PC2 
detection_length: 2.88 # accuracy of motion sensor 2.88mm 
extruder: extruder 
pause_on_runout: False 
runout_gcode:
  PAUSE # [pause resume] is required in printer.cfg
  M117 Filament encoder runout
insert_gcode:
  M117 Filament encoder inserted

And here's what it should look like with yellow highlights to point out:
IMG_5490

Someone at BTT should add this as a sample config. I don't know how to submit a pull request, I'm not a programmer.

from smart-filament-detection-module.

dgpmaluco avatar dgpmaluco commented on July 18, 2024

Thanks I will try this!

from smart-filament-detection-module.

geoffdavis avatar geoffdavis commented on July 18, 2024

Unfortunately this will not work with the standard cabling on FAN3 of Voron V0.2 config, because according to schematic this port GPIO20 is linked with the laser port. Furthermore Klipper gives an error message that the port is already occupied. You are not allowed to connect a fan on FAN3 and have to switch to FAN 2/1.

I wonder if the P11 "SERVOS" header could be used, with the caveat that you'd have to re-pin the connector. Not sure if GPIO29_ADC being an ADC port will cause an issue or not.

The endstops are wired pin 1: data, 2: gnd, 3: 5V
The servos header is wired pin 1: gnd, pin 2: 5v, pin 3: data

Another candidate is the P13 "PROBE" header, which requires repinning that two wires into 3-pins green and black connector to a 2-pin connector. You'd have to install a jumper on P21 between pins 2 and 3, and the motion sensor would thus be on the Pico's GPIO 22 aka "P_2" pin.

Probably easier to just wire this thing to your raspberry pi header, assuming you can find a spare 5v pin that you haven't already hijacked by powering the pi via the SKR Pico's P5 header. Though it looks like this thing will take 3.3 volts as well, so you could use the Pi pin 1 for 3.3v.

from smart-filament-detection-module.

idubrov avatar idubrov commented on July 18, 2024

Not sure if GPIO29_ADC being an ADC port will cause an issue or not.

Oh yes, it will. Apparently, GPIO29 is used internally by RP2040 to measure VSYS, and connecting it as a digital input messes up thermistor reads somehow, causing Klipper to crash with "ADC out of range". Okay, VSYS theory might not be correct. The issue might be that sensor feeds its supply voltage back to the filament motion pin, so when connected to GPIO29, it will feed its supply of 5V back into an ADC pin. Presumably, ADC inside the RP2040 doesn't like that and all other measurements go bonkers.

However, there is a pin header on a board with GPIO22 on the middle pin -- this one could be used for encoder. I re-pinned the connectors such that one connector, JST, got red/black/blue and is plugged into E0 stop and another connector, Dupont, gets a single wire, green, going to that middle pin with GPIO22.

from smart-filament-detection-module.

anthonielamay avatar anthonielamay commented on July 18, 2024

Has there been any updates or solutions for any of you?

from smart-filament-detection-module.

howdy-vulcan avatar howdy-vulcan commented on July 18, 2024

I got this working for anyone who is looking to connect the BTT smart filament sensor to a SKR Pico. There doesnt seem to be enough points for a correct separate connection. I was able to feed a needle though the connection and swap the pins around on the Motion / GND connnection. I matched the RGB connection layout per the pinout diagram on the Pico (next to the E0 endstop) and activated it via that pin. Changing the connector pins allows for more ports to be used.

from smart-filament-detection-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.