project:brmdoor:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| project:brmdoor:start [2023/01/14 19:02] – [Photos of cable connections of Raspi + PN532 shield (location Ke kaplicce 20) - old Raspi 1 rev B2] abyssal | project:brmdoor:start [2025/09/01 14:36] (current) – sachy | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| & | & | ||
| ~~ | ~~ | ||
| + | ---- dataentry project ---- | ||
| + | name: BrmDoor | ||
| + | status: active | ||
| + | image: {{: | ||
| + | ---- | ||
| Line 51: | Line 55: | ||
| * Raspberry 4B | * Raspberry 4B | ||
| - | Tested Raspbian 9 and 10 (Raspi OS 2021-03-04). | + | Tested Raspbian 9 and 10 (Raspi OS 2021-03-04). Still works on 2023-09-17, when we needed to drop '' |
| + | |||
| + | Raspberry 1 and 2 - it's just slow, everything is slow there. Raspberry 3B+ or 4 with USB boot and USB flash instead of SDcard recommended. | ||
| Make sure you enable SPI in device tree or '' | Make sure you enable SPI in device tree or '' | ||
| Line 238: | Line 244: | ||
| General GPIO PIN assignments are configurable, | General GPIO PIN assignments are configurable, | ||
| - | pinouts. Raspi pinouts for all versions: | + | pinouts. Raspi pinouts for all versions: |
| + | |||
| + | (Follow whatever Rpi is installed for pinout as power sources keep killing them time to time) | ||
| Numbering scheme used by brmdoor for lock and open switch (based on BCM GPIO numbering, different from P1 | Numbering scheme used by brmdoor for lock and open switch (based on BCM GPIO numbering, different from P1 | ||
| Line 246: | Line 254: | ||
| PIN assignemnts (physical PINs on P1 header, with BCM GPIO numbers used in config): | PIN assignemnts (physical PINs on P1 header, with BCM GPIO numbers used in config): | ||
| - | * 5V power into Raspberry: physical #1 | + | * Raspberry power - via USB |
| - | * Ground from power source to Raspberry: physical #9 | + | |
| * 5V power out into Adafruit PN532 reader: #4 | * 5V power out into Adafruit PN532 reader: #4 | ||
| * Ground for Adafruit PN352: physical #6 | * Ground for Adafruit PN352: physical #6 | ||
| * BERA-E lock open/close: physical #22, BCM GPIO #25 | * BERA-E lock open/close: physical #22, BCM GPIO #25 | ||
| - | * Open/close switch input PIN: physical #15, BCM GPIO #22 | + | * Open/close switch input PIN: physical #15, BCM GPIO #22 (/sys/ |
| - | * Ground for open/close switch: physical #25 | + | |
| * SPI pins for Adafruit PN532 reader - SPI PINs on Raspberry - physical #19, #21, #23, #24 | * SPI pins for Adafruit PN532 reader - SPI PINs on Raspberry - physical #19, #21, #23, #24 | ||
| - | + | * electrical measurement | |
| - | After upgrade to Raspi 3B+, pin assignments along with colors: | + | * grounds not mentioned just connect to any ground |
| - | + | ||
| - | Order of pins on reader: | + | |
| - | * IRQ | + | |
| - | * RST | + | |
| - | * SCK | + | |
| - | | + | |
| - | * CS grey | + | |
| - | * MOSI white | + | |
| - | + | ||
| - | Raspi pin color, number | + | |
| - | + | ||
| - | * 19 MOSI - white | + | |
| - | * 21 MISO - brown | + | |
| - | * 23 SCK - orange | + | |
| - | * 24 CS - grey | + | |
| Line 302: | Line 293: | ||
| {{: | {{: | ||
| - | ===== Updated photos after replacing Raspi 1 rev B2 with Raspi 3B+ (18 May 2021) ===== | + | ===== Updated photos after replacing Raspi 1 rev B2 with Raspi 3B+ (18 May 2021) - OBSOLETE |
| + | |||
| + | Power source fried the Raspi 3B+ sometimes in 2022, replaced again with Raspi 2B | ||
| Added on left side is a stepdown that works with Raspi 3B+ power consumption. | Added on left side is a stepdown that works with Raspi 3B+ power consumption. | ||
| Line 310: | Line 303: | ||
| {{: | {{: | ||
| + | ===== Updated photos after replacing fried Raspi 3B+ for old Raspi 2B and changing casing (14 Jan 2022) ===== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ==== Outside view of PN532 shield (14 Jan 2022) ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| ===== Brmdoor HOWTO (displayed after you login as root, in /etc/motd) ===== | ===== Brmdoor HOWTO (displayed after you login as root, in /etc/motd) ===== | ||
| < | < | ||
| Line 377: | Line 385: | ||
| Add following to your ~/ | Add following to your ~/ | ||
| + | |||
| + | You need to have access to '' | ||
| + | |||
| + | You need ssh that supports '' | ||
| < | < | ||
| - | Host = brmbar-external | + | |
| - | VerifyHostKeyDNS = no | + | Host data.brmlab.cz |
| - | Hostname = hrach.eu | + | User root |
| - | Port = 22715 | + | Port 22 |
| - | User = brmlab | + | IdentityFile = ~/.ssh/whatever_your_key_is |
| - | IdentityFile = ~/.ssh/id_rsa | + | |
| - | ForwardX11 = no | + | |
| - | UsePrivilegedPort = no | + | |
| Protocol 2 | Protocol 2 | ||
| - | Host = brmdoor-external | + | Host = brmdoor-via-data |
| - | ProxyCommand | + | ProxyJump |
| - | Hostname = 192.168.77.247 | + | Hostname = 192.168.77.30 |
| - | Port = 22715 | + | Port = 22 |
| User = root | User = root | ||
| - | IdentityFile = ~/.ssh/id_rsa | + | IdentityFile = ~/.ssh/whatever_your_key_is |
| ForwardX11 = no | ForwardX11 = no | ||
| UsePrivilegedPort = no | UsePrivilegedPort = no | ||
| Protocol 2 | Protocol 2 | ||
| + | </ | ||
| + | Then using | ||
| + | |||
| + | < | ||
| + | ssh brmdoor-via-data | ||
| </ | </ | ||
| - | Then ssh brmdoor-external | + | will get proxyjump over data into brmdoor. |
project/brmdoor/start.1673722948.txt.gz · Last modified: 2023/01/14 19:02 by abyssal