TG Control V3
PA3AEF/HP8562A-Tracking-Generator
Homebrew tracking generator for base-band, 6cm, 3cm and 12mm bands

PIR motion switch for Revotion NODE Ambient (AM312, PhotoMOS, KiCad)
Pir camper am312 is an open-source printed circuit board by samba09, from the samba09/camper-pir-switch repository on GitHub, published under the MIT licence. It is a 2-layer board of 48 × 28 mm with 28 parts on 18 nets, routed with 160 tracks and 11 vias.
It is built around the AQY212S, TPS70933DBV and 1N4148W, with the BC847C, BC857C and MMBTA14 among its other parts. Its parts include 8 resistors, 5 capacitors, 4 transistors, 3 ICs and 2 diodes. It belongs with the sensors and measurement boards of this library.
A small motion sensor board that switches the camper light through a Revotion NODE Ambient switch input. Motion closes a potential-free contact (AQY212 PhotoMOS) for an adjustable hold time of about 2 minutes, and a light sensor keeps it from triggering in daylight. It runs from the camper's 12 V supply and draws about 0.1 mA while idle.
| Variant | Sensor | Build | Documentation |
|---|---|---|---|
| AM312 SMD board | AM312 module in a socket | KiCad PCB, ready for production | kicad/pir_camper_am312/ |
| AM312 perfboard | bare AM312 + Fresnel lens | 22 × 18 holes, no jumpers | PIR_Camper_AM312.pdf |
| HC-SR505 perfboard | HC-SR505 module | 18 × 14 holes, two jumpers | PIR_Camper.pdf |
| HC-SR505 retrofit | existing HC-SR505 board | adds the off-delay to an already built board without delay | lochraster_umbau_verzoegerung_*.svg |
The HC-SR505 board is the first version; it was built and measured (hold time about 3 min). The AM312 boards replace it and add the light sensor. The PDFs (also as HTML) contain the full build guides: schematic, perfboard layout with every solder path, parts list, simulation results and test steps.
12 V ── reverse-polarity diode ── 3.0/3.3 V LDO ── AM312 PIR
│ 2.3 s pulse per motion
light inhibit ┤ (LDR + trimmer, Q2)
▼
off-delay: C1 + R2 → Q1 (≈ 2 min)
▼
AQY212 PhotoMOS LED (≈ 5 mA)
▼
potential-free contact ── NODE Ambient switch inputTerminal J1:
| Pin | Signal | Connect to |
|---|---|---|
| 1 | +12V | camper +12 V (fused) |
| 2 | GND | camper GND |
| 3 | SW_A | +12 V, or the left pin of the Ambient input if it carries 12 V (measure it) |
| 4 | SW_B | right pin of the Ambient input (12 V = on) |
Set that NODE Ambient input to switch mode ("Schalter"), not push-button mode ("Taster"). The sensor board and the Revotion system must share the same ground, which they do when both run from the camper's 12 V distribution.
| Board | Hold time | Light threshold |
|---|---|---|
| AM312 SMD | trimmer RV2: about 50 s to 3.5 min | trimmer RV1 |
| AM312 perfboard | R2/C1: 56 kΩ / 1000 µF ≈ 2 min (table in the PDF) | trimmer RV1 |
| HC-SR505 | R2: 20 kΩ with 2000 µF ≈ 2.3 min (table in the PDF) | – |
Set the light threshold on site: in the light where the sensor should just stop reacting (for example at dusk), turn RV1 until motion no longer switches on. Without the LDR the board simply ignores daylight.
The end of the hold time is a slow fade, so real parts vary: the HC-SR505 board measured about 3 min where the simulation gave 2.3 min. The PDFs explain which part tolerances cause that.
kicad/pir_camper_am312/ holds the KiCad 7 project:
| File | Content |
|---|---|
pir_camper_am312.kicad_sch / .kicad_pcb / .kicad_pro | schematic and routed PCB |
pir_camper.kicad_sym, pir_camper.pretty/ | project library (AM312 module socket) |
fab/pir_camper_am312-gerbers.zip | Gerbers and drill files for the PCB maker |
fab/pir_camper_am312-bom.csv, -pos.csv | parts list and pick-and-place positions |
fab/pir_camper_am312-1to1.pdf | 1:1 print to check the footprints |
fab/reichelt_warenkorb.csv, reichelt_warenkorb_info.txt | parts order at Reichelt for 2 boards (about 42 EUR, checked 2026-10-02) plus the parts to get elsewhere |
drc.rpt | design rule check: no errors, 2 warnings for locally modified connector footprints |
Main parts: AM312 module, TPS70933 3.3 V LDO, AQY212S PhotoMOS (SOP-4), MMBTA14 Darlington for the timer, BC847C/BC857C, Bourns 3314 trimmers, Phoenix MC 3.81 mm terminal, and a JST XH socket for the optional LDR.
Everything is generated by the Python scripts in tools/:
| Script | Output | Needs |
|---|---|---|
gen_schematics.py, gen_am312_schematic.py | schematic SVGs | schemdraw |
gen_ltspice.py | LTspice files (*.asc, *.cir) | – |
gen_simplots.py, gen_am312_sim.py | simulation plots and *_results.json | ngspice |
gen_perfboard.py, gen_retrofit.py | perfboard layout SVGs | – |
build_doc.py, build_am312_doc.py | HTML and PDF build guides | Google Chrome or Chromium (headless, for the PDF) |
gen_kicad.py, pcb_kicad.py | KiCad schematic, placed PCB, Freerouting .dsn | KiCad 7 (pcbnew Python module) |
route_kicad.py | routing, GND pour, DRC, Gerbers, BOM | KiCad 7 kicad-cli, Freerouting + Java |
For example, the AM312 perfboard guide:
pip install schemdraw
python3 tools/gen_am312_schematic.py
python3 tools/gen_ltspice.py
python3 tools/gen_am312_sim.py
python3 tools/build_am312_doc.py| File | Content |
|---|---|
PIR_Camper_AM312.pdf / .html | build guide, AM312 perfboard |
PIR_Camper.pdf / .html | build guide, HC-SR505 perfboard |
schaltplan_am312.svg, schaltplan_mit_verzoegerung.svg | schematics (AM312, HC-SR505) |
lochraster_am312_*.svg | AM312 perfboard, top and bottom view |
lochraster_mit_verzoegerung_*.svg | HC-SR505 perfboard, top and bottom view |
lochraster_umbau_verzoegerung_*.svg | retrofit of the HC-SR505 board without delay |
ltspice_am312.asc, ltspice_mit_verzoegerung.asc / .cir | simulation netlists (LTspice, also run in ngspice) |
am312_sim_*.svg, sim_*.svg, *sim_results.json | simulation plots and results |
kicad/ | AM312 SMD board, see above |
tools/ | generators for all of the above |
"Schaltplan" is German for schematic, "Lochraster" for perfboard, "mit Verzögerung" for "with delay" and "Umbau" for retrofit.
Revotion and NODE are trademarks of REVOTION GmbH. This project is not affiliated with REVOTION.
MIT, see LICENSE.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 100nF | Capacitor_SMD:C_0805_2012Metric | C4, C5 |
| 2 | 1N4148W | Diode_SMD:D_SOD-123 | D1, D2 |
| 2 | BC847C | Package_TO_SOT_SMD:SOT-23 | Q2, Q4 |
| 2 | M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2 |
| 1 | 1.8k | Resistor_SMD:R_0805_2012Metric | R4 |
| 1 | 100k | Resistor_SMD:R_0805_2012Metric | R7 |
| 1 | 10k | Resistor_SMD:R_0805_2012Metric | R5 |
| 1 | 12V GND SW_A SW_B | Connector_Phoenix_MC:PhoenixContact_MC_1,5_4-G-3.81_1x04_P3.81mm_Horizontal | J1 |
| 1 | 1M | Resistor_SMD:R_0805_2012Metric | R8 |
| 1 | 1M | Potentiometer_SMD:Potentiometer_Bourns_3314G_Vertical | RV2 |
| 1 | 1µF 25V | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 2.2k | Resistor_SMD:R_0805_2012Metric | R3 |
| 1 | 2.2µF 10V | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 22k | Resistor_SMD:R_0805_2012Metric | R2 |
| 1 | 330µF 6.3V | Capacitor_SMD:CP_Elec_6.3x5.4 | C1 |
| 1 | 470 | Resistor_SMD:R_0805_2012Metric | R1 |
| 1 | 47k | Resistor_SMD:R_0805_2012Metric | R6 |
| 1 | 50k | Potentiometer_SMD:Potentiometer_Bourns_3314J_Vertical | RV1 |
| 1 | AM312 module | pir_camper:AM312_Module_Socket | U2 |
| 1 | AQY212S | Package_SO:SO-4_4.4x4.3mm_P2.54mm | U1 |
| 1 | BC857C | Package_TO_SOT_SMD:SOT-23 | Q3 |
| 1 | LDR GL5528 (optional) | Connector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal | J2 |
| 1 | MMBTA14 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | TPS70933DBV | Package_TO_SOT_SMD:SOT-23-5 | U3 |
PA3AEF/HP8562A-Tracking-Generator
Homebrew tracking generator for base-band, 6cm, 3cm and 12mm bands



z2amiller/pedalfx
Replaces the Panasonic MN3102 (clock generator for MN3204/05/07/08/09 BBDs) with a CD4047B plus four passives. Two ways to use it:

GuavTek/M2IDI_TANGLE_HW
A multiplexer module for the M2IDI system


nsm81/VehiclePrecharge_PCB
The precharge board contains the precharge resistors, precharge relay, main relay drivers (with economisers), and a controlling micro.

Benv-B/photo-frame-hardware
Open hardware carrier for an AirDrop ChLCD color e-paper frame: XIAO ESP32-C5, NFC wake, KiCad, schematic, BOM and Gerbers. CERN-OHL-P-2.0.
It measures 48 × 28 mm and has 2 copper layers, 1.6 mm thick.
28 parts, built around the AQY212S, TPS70933DBV, 1N4148W and BC847C. 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 samba09/camper-pir-switch repository on GitHub, at the commit this page was made from: the board is kicad/pir_camper_am312/pir_camper_am312.kicad_pcb and its schematic kicad/pir_camper_am312/pir_camper_am312.kicad_sch. 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).