Network
Overview
[edit | edit source]
The network consists of a cable modem feeding an OpenWrt router/AP, which in turn uplinks to the mezzanine Ubiquiti managed switch. From there, connections run to two loft patch panels: one Blue, one Grey. Each network drop in the space has a corresponding Blue and Grey jack; only some are wired through to the switch, and only some are currently used. The main table has a small managed switch.
Blue and Grey cables are functionally identical. The colours reflect physical routing rather than logical separation.
Static Devices
[edit | edit source]Most fixed equipment uses static DHCP leases on the OpenWrt router. If you add a static IP address, give it a static DHCP lease on the openwrt router, even if the device doesn't use dhcp. These are the main devices:
| Device | IP Address |
|---|---|
| OpenWrt router | 192.168.0.1 |
| Home Assistant | 192.168.0.2 |
| Lazzor | 192.168.0.4 |
Patch Panel Map
[edit | edit source]| Grey device / location | Switch port | Label | Switch port | Blue device / location |
|---|---|---|---|---|
| Lobby black cable (unterminated) | 1 | 1 Laser Loft | 2 | Lobby AP |
| Lazzor | 3 | 2 Laser Room | 4 | Laser room computer |
| (unused) | 5 | 3 Craft Shelf Arch | 6 | (unused) |
| (unused) | 7 | 4 Craft Shelf Top | 8 | Payphone |
| (unused) | 9 | 5 Cubesville | 10 | Denon AVR |
| Game of Life cube | 11 | 6 Main Room Beam Front | 12 | Main table Ethernet (phone, switch) |
| (unused) | 13 | 7 Main Room Beam Back | 14 | Main Room AP |
| (unused) | 15 | 8 Tool Town L (breaker panel) | 16 | Sherline computer |
| (unused) | 9 Tool Town R (shopbot) | (unused) | ||
| (unused) | 10 Mezzanine R (unterminated) | (unused) | ||
| (unused) | 11 Mezzanine L (unterminated) | (unused) | ||
| (unused) | 12 Main Room Couches (unterminated) | (unused) | ||
|
Unconnected Grey ↔ Blue runs: 13–24 | ||||
Router
[edit | edit source]| Port | Connected device |
|---|---|
| WAN | Spectrum modem |
| LAN 1 | (unused) |
| LAN 2 | Mezzanine switch (uplink) |
Mezzanine Switch
[edit | edit source]The ports on the left are for the patch panel.
The SFP ports on the right are:
17 Home Assistant (purple) 18 Uplink (yellow)
The switch is managed through the Ubiquiti app in Home Assistant
ToDo
[edit | edit source]- OpenWRT setup
- Ubiquiti setup
ESP32 near elevator door
[edit | edit source](TODO new page dedicated to space access controls)
Currently, there's a m5stack ATOM-Lite (very small) ESP32 board hanging above the elevator door/intercom/laser loft stairs area. This serves:
- Elevator door sensor inside(?) maglock housing (it is a reed switch)
- Keypad in elevator shaftway (a direct wired 4x3 key matrix on the end of a cat5 cable)
ATOM-Lite publishes these into HA, where the sensor states are used in various automations related to locks. I think it publishes the elevator door sensor state over Bluetooth (why?) and publishes codes entered into the keypad over MQTT. See the config in ESPHome though.
Wiring (rat nest) "diagram":
[Pictures are worth 1000 words, but only if you can upload them. --Ed]
jumpers:
- ATOM-Lite GND <=> WAGO <=> white twisted pair a terminal <=> elevator door sensor (reed switch)
- ATOM-Lite GPIO21 <=> white twisted pair other terminal <=> elevator door sensor (reed switch)
- ATOM-Lite GPIO 23 <=> grey jacket cat5, green-white <=> keypad terminal 5 (col 3) [2]
- ATOM-Lite GPIO 19 <=> grey jacket cat5, green <=> keypad terminal 6 (col 2)
- ATOM-Lite GPIO 22 <=> grey jacket cat5, brown-white <=> keypad terminal 7 (col 1)
breadboard:
- ATOM-Lite 3v3 <=> 1 kΩ pull-ups to each of GPIO 25,32,26,33 [1]
- ATOM-Lite GPIO 25 <=> pull-up & grey jacket cat5, blue-white <=> keypad terminal 1 (row 1) [2]
- ATOM-Lite GPIO 32 <=> pull-up & grey jacket cat5, blue <=> keypad terminal 2 (row 2)
- ATOM-Lite GPIO 26 <=> pull-up & grey jacket cat5, orange-white <=> keypad terminal 3 (row 3)
- ATOM-Lite GPIO 33 <=> pull-up & grey jacket cat5, orange <=> keypad terminal 4 (row 4)
[1] Without these strong external pull-ups, the ~2meter twisted pairs run to the keypad is too noisy for the matrix scanning to work. Ask me how I know. 3.3 kΩ is better than the 45 kΩ (?) on-chip pull-ups but still not enough.
[2] here, 4 rows and 3 cols of the physical keypad layout; the ESPHome config calls the physical columns "rows" (pins configured as strobed outputs) and calls the physical rows "columns" (pins configured as inputs)
"Shelly" near elevator door
[edit | edit source]Switches 12v power to the elevator door maglock...