Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
firmware:klipper:bltouch-with-raspberry-pi [2022/03/16 20:00] – [Attaching the BLTouch] vidschofelix | firmware:klipper:bltouch-with-raspberry-pi [2022/03/16 20:05] – [Attaching the BLTouch] vidschofelix | ||
---|---|---|---|
Line 11: | Line 11: | ||
==== Attaching the BLTouch ==== | ==== Attaching the BLTouch ==== | ||
- | * remove the red pin from the triple-connection cable and put it into a single dupont case | + | * remove the red pin from the triple-connection cable and put it into a single dupont case (included in original BLTouch packaging) |
* connect the pins to the [[https:// | * connect the pins to the [[https:// | ||
- | * white -> GPIO | + | * white -> GPIO0 |
* black -> GND next to GPI0 | * black -> GND next to GPI0 | ||
* yellow -> GPIO27 | * yellow -> GPIO27 | ||
Line 19: | Line 19: | ||
* red -> 3.3V | * red -> 3.3V | ||
* //Todo: Add a picture of the wires// | * //Todo: Add a picture of the wires// | ||
- | * you can choose whatever pins you like, but it's easier to follow if you choose the same | + | * you can choose whatever pins you like for control_pin, but it's easier to follow if you choose the same |
==== printer.cfg adjustment ==== | ==== printer.cfg adjustment ==== | ||
Line 40: | Line 40: | ||
</ | </ | ||
- | ==== working around the pullup pgio setting | + | ==== good choice for sensorpins |
- | * thats not the best way to do it, but it works, so here is how and why | + | * you can choose between gpio0 and gpio1 for the sensorpin because |
- | * klipper | + | * klipper |
- | * So, to fix that up, we will use a script that sets the gpio as pullup and monitors the mcu firmware. if the firmware changes (restart) it will set the pullup | + | * before i found this out, here was a long description how to set pullup |
- | * < | + | |
- | * < | + | |
- | * < | + | |
- | * <file bash pgio.sh> | + | |
- | # | + | |
- | set_gpio () { | + | |
- | raspi-gpio set 12 ip pu | + | |
- | } | + | |
- | set_gpio | + | |
- | while true; do | + | |
- | while inotifywait -e create / | + | |
- | set_gpio | + | |
- | done | + | |
- | done | + | |
- | </ | + | |
- | * make the script | + | |
- | * next we will add our script to cron, so it will run after reboot | + | |
- | * < | + | |
- | * and paste this inside (make sure there is a newline at the end) | + | |
- | * < | + | |
- | * thats it, reboot your pi and check if you script | + | |
- | pi@mainsail: | + | |
- | pi | + | |
- | </ | + | |
==== Testing the Probe ==== | ==== Testing the Probe ==== | ||
* follow the [[https:// | * follow the [[https:// | ||
- | * also make sure, that the bltouch works after firmware restart, klipper restart and restart of the raspberry. If not check your scripts! | ||
- | |||
==== Wrapping it up ==== | ==== Wrapping it up ==== |