Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
firmware:klipper:bltouch-with-raspberry-pi [2022/03/15 02:44] – [Why?] vidschofelix | firmware:klipper:bltouch-with-raspberry-pi [2022/03/16 20:04] – [Testing the Probe] vidschofelix | ||
---|---|---|---|
Line 13: | Line 13: | ||
* 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 | ||
* connect the pins to the [[https:// | * connect the pins to the [[https:// | ||
- | * white -> GPIO12 | + | * white -> GPIO |
- | * black -> GND next to GPIO12 | + | * black -> GND next to GPI0 |
* yellow -> GPIO27 | * yellow -> GPIO27 | ||
* brown -> GND | * brown -> GND | ||
Line 28: | Line 28: | ||
[bltouch] | [bltouch] | ||
- | sensor_pin: ^rpi:gpio12 | + | sensor_pin: ^rpi:gpio0 |
# Pin connected to the BLTouch sensor pin. Most BLTouch devices | # Pin connected to the BLTouch sensor pin. Most BLTouch devices | ||
# | # | ||
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 ==== |