
AstroUniBoard
xlazam01/AstroUniBoard
STM32G0B1-based telescope focuser/rotator controller — OnStepX firmware port + KiCad PCB

(more) secure electric lock with DESFire EV1 NFC tags
Raspi nfc lock is an open-source printed circuit board by rambo, from the rambo/nfc_lock repository on GitHub, published under the MIT licence. It is a 2-layer board with 80 parts on 56 nets, routed with 490 tracks and 58 vias.
It is built around the LM2596S-5.0, 74HC14 and TXB0104PW, with the MMBT3904, SMF15A and AO2300 among its other parts. Its parts include 33 resistors, 13 connectors, 11 diodes, 10 capacitors and 3 ICs. It belongs with the radio and wireless boards of this library.
(more) secure electric lock with DESFire EV1 NFC tags
sudo apt-add-repository ppa:christopher-hoskin/ppa
sudo apt-get update
sudo apt-get install libnfc5 libnfc-bin libnfc-pn53x-examples libnfc-examples
sudo apt-get install libfreefare0 libfreefare-bin
sudo apt-get install python-zmq python-yaml python-tornadopython-yaml and python-tornado can be installed to virtualenv (esp tornado might be better to install via pip even if not to virtualenv the deb pulls unneccessary dependencies), zmq will be painful to install via pip, use the system package.
For the C programs.
sudo apt-get install libfreefare-dev libnfc-dev libssl-dev pkg-config libzmq-devAll libraries should be part of normal releases now.
Create a test file sqlite3 keys.db:
CREATE TABLE valid_tokens (value TEXT UNIQUE, type INTEGER, acl INTEGER, external_ids TEXT);
CREATE TABLE revoked_tokens (value TEXT UNIQUE, type INTEGER);Prepare some tags and insert their (real) UIDs to the grants and revokes
INSERT INTO revoked_tokens VALUES ("04453069b21e80");
INSERT INTO valid_tokens VALUES ("04212f69b21e80", 0, 1);In reality you will generate this file based on your person registry (keep track of validity times etc there, then regenerate the keydb for the door).
Remember to valgrind your C programs (valgrind -v --leak-check=yes myprog args) at the same time as you do general functionality testing.
It seems Valgrind does not (and will not) support some instructions we use to talk with the NFC chips, see (this stackoverflow)valgrindworkaround for a workaround.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | 4k7 | Resistors_SMD:R_0603 | R107, R108, R109, R110, R111, R112, R113, R114, R115, R116, R117, R118, R119, R120, R121, R127 |
| 11 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_Horizontal | J102, J103, J104, J105, J106, J107, J108, J109, J110, J111, J112 |
| 7 | 100n | Capacitors_SMD:C_0603 | C101, C102, C103, C104, C105, C108, C109 |
| 5 | 10 | Resistors_SMD:R_0603 | R102, R103, R104, R105, R106 |
| 5 | LED | Diode_SMD:D_0603_1608Metric | D102, D103, D104, D105, D106 |
| 4 | MountingHole | Mounting_Holes:MountingHole_3.2mm_M3 | H101, H102, H103, H104 |
| 3 | DNI | Resistors_SMD:R_0603 | R123, R124, R131 |
| 2 | 0R | Resistors_SMD:R_0603 | R125, R130 |
| 2 | 2k21 | Resistors_SMD:R_0603 | R101, R129 |
| 2 | 470R | Resistors_SMD:R_0603 | R132, R133 |
| 2 | MMBT3904 | Package_TO_SOT_SMD:SOT-23 | Q101, Q103 |
| 2 | SMF15A | Diodes_SMD:D_SOD-123 | D101, D108 |
| 1 | 100n | Capacitors_SMD:C_1206 | C110 |
| 1 | 10R | Resistors_SMD:R_0603 | R122 |
| 1 | 10k | Resistors_SMD:R_0603 | R126 |
| 1 | 1M | Resistors_SMD:R_0603 | R128 |
| 1 | 220 μF 25V | Capacitors_SMD:CP_Elec_8x10 | C106 |
| 1 | 470uF 10V | Capacitors_SMD:CP_Elec_8x10.5 | C107 |
| 1 | 74HC14 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U101 |
| 1 | AO2300 | Package_TO_SOT_SMD:SOT-23 | Q102 |
| 1 | BUZZER | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_Horizontal | J113 |
| 1 | G6E | Relay_THT:Relay_SPDT_Omron_G6E | K101 |
| 1 | LED_OPEN | Diode_SMD:D_0603_1608Metric | D109 |
| 1 | LM2596S-5.0 | Package_TO_SOT_SMD:TO-263-5_TabPin3 | U102 |
| 1 | MM3Z12 | Diode_SMD:D_SOD-323 | D110 |
| 1 | Polyfuse 1.5A | Fuse_Holders_and_Fuses:Fuse_SMD2920 | F101 |
| 1 | Raspberry_Pi_2_3 | Pin_Headers:Pin_Header_Straight_2x20_Pitch2.54mm | J101 |
| 1 | SP0502BAHT | Package_TO_SOT_SMD:SOT-23 | D111 |
| 1 | SS34 | Diodes_SMD:D_SMA | D107 |
| 1 | SWRB1204S-330MT | Inductor_SMD:L_12x12mm_H6mm | L101 |
| 1 | TXB0104PW | Package_SO:TSSOP-14_4.4x5mm_P0.65mm | U103 |
80 parts, built around the LM2596S-5.0, 74HC14, TXB0104PW and MMBT3904. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the rambo/nfc_lock repository on GitHub, at the commit this page was made from: the board is hardware/raspi_nfc_lock.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

xlazam01/AstroUniBoard
STM32G0B1-based telescope focuser/rotator controller — OnStepX firmware port + KiCad PCB







Satya777777/ESP32-Industrial-IO-Controller
4-layer ESP32-based industrial I/O controller designed in KiCad with 0–10 V, 4–20 mA, RS485, USB-C and relay interfaces.