maocypher / Octoprint-Smart-Filament-Sensor

OctoPrint plugin that lets integrate Smart Filament Sensors like BigTreeTechs SmartFilamentSensor directly to RaspberryPi GPIO pins.
GNU General Public License v3.0
13 stars 20 forks source link

which GPIO pin is recommended #4

Closed wuast94 closed 3 years ago

wuast94 commented 3 years ago

What do you recommend to use?

https://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/06/Raspberry-Pi-GPIO-Header-with-Photo.png

or are all GPIO pins possible ?

maocypher commented 3 years ago

Hi :) from this I used the free green GPIO pins e.g. 11 in Board Mode (Pin number) i.e. GPIO 17 in BCM Mode. Other GPIO pins like GPIO 2 are for special usage (in this case I2C) which might be necessary for some sensors you probably want to attach to your Raspberry.

Take care to use VCC with 3.3V, because GPIO pins don't last very long with 5V.

maocypher commented 3 years ago

I added this to the README.MD and will close this issue tomorrow, if this answered your question.

wuast94 commented 3 years ago

Sry for the late reply.. Don't seen it yet.. But yes that answered my question and it's nice to add it to the Doku :)

Tanks :)

Edit: I let the issue open so you can track it and close it when it's added to the Readme

maocypher commented 3 years ago

Recommendation is put into description how to use the plugin

liebig commented 3 years ago

Sorry for the stupid question, but how do I wire the Bigtreetech Filament Sensor to the Raspberry Pi? The cable consists of a 4 pole end piece, whereby only 3 wires are connected here. Can you tell me which cable is used for power, ground and data? This might also be something for the documentary.

Thanks a lot!

maocypher commented 3 years ago

There are no stupid questions: https://github.com/bigtreetech/smart-filament-detection-module/tree/master/manual On page 12 of the manual you can find which pin is for what usage. Please check if the wiring on the board side of the cable is correct. I heard there are some cables with pole twists.

VCC connect to 3.3V SIN to GPIO 11, if you know how to use others feel free GND to GND

liebig commented 3 years ago

Wow thank you very much for the quick response. I will test this. Thanks for your great work here!