New Cable, debounce

This commit is contained in:
T
2026-06-25 23:52:18 +02:00
parent 95580bb3eb
commit b8a56829f3
4 changed files with 155 additions and 23 deletions
+46 -7
View File
@@ -1,21 +1,32 @@
# ButtonCtl
![](./buttons-platzierung.png)
### Dependencies
- RPi python3-rpi.gpio
```sh
sudo apt install python3-rpi-gpio
```
- OpenSSH client
```sh
sudo apt install openssh
```
- circuitpython libraries for neopixel
```sh
pip3 install adafruit-circuitpython-neopixel
```
- SPI
Enable SPI in raspi bootloader for GPIO10
### Install
```sh
cd buttonctl/1og
./service.sh # create systemd .service file
@@ -23,25 +34,51 @@ sudo systemctl enable --now buttond # start and autostart at boot
```
### Wiring
- pin 23: left button input (pull-down)
- pin 23: left/aerie button input (pull-down)
- pin 24: center button input (pull-down)
- pin 22: right button input (pull-down)
- pin 18: neopixel data
- pin 22: right/cellar button input (pull-down)
- pin 12: neopixel data
- pin 4: (pull-down)
#### 6-pin socket
**GPIO**
| | Notch | |
|------|-------|----|
| 23 | 24 | 12 |
| 3.3V | GND | 22 |
**KiCAD**
| | Notch | |
|---|-------|---|
| 5 | 3 | 1 |
| 6 | 4 | 2 |
**UV Klemme**
| | Notch | |
|------------------------------------------------------------|---------------------------------------------------------------|-----------------------------------------------------------|
| <span style="background: green; color: white;">grün</span> | <span style="background: brown; color: white;">braun</span> | <span style="background: blue; color: white;">blau</span> |
| <span style="background: red;">rot</span> | <span style="background: black; color: white;">schwarz</span> | <span style="background: yellow">gelb</span> |
![](pins.png)
- led strip:
```
(25-36) (13-24) (1-12)
AERIE KELLER
(counter-clockwise)
```
(1-12) (13-24) (25-36)
AERIE KELLER
(counter-clockwise, top is first)
```
## Usage
### Open Door
<span style="color:red">&#9724;</span>
<span style="color:black">&#9724;</span>
<span style="color:red">&#9724;</span>
@@ -62,6 +99,7 @@ sudo systemctl enable --now buttond # start and autostart at boot
<span style="color:red">&#9724;</span>
### Abort
<span style="color:red">&#9724;</span>
<span style="color:black">&#9724;</span>
<span style="color:red">&#9724;</span>
@@ -77,6 +115,7 @@ sudo systemctl enable --now buttond # start and autostart at boot
<span style="color:red">&#9724;</span>
### No-Op
<span style="color:red">&#9724;</span>
<span style="color:black">&#9724;</span>
<span style="color:red">&#9724;</span>