Before you start · Drill, screwdriver, wire stripper and a continuity tester.
Prepare the radio Attach its antenna before powering it. If it needs firmware, use the Meshtastic flasher with a USB data cable and select the exact model and revision.
Join your ranch mesh Set the region to US for US915 hardware. Import the ranch channel from the base and match the modem preset. Keep the channel QR code private because it contains the channel key.
Wire and align the switch With power disconnected, wire the dry contacts to a supported GPIO and ground. Choose the contact that closes near the magnet. Mount the switch on the fixed latch post and align the magnet with the gate shut. Follow the specified gap for your switch.
Configure Detection Sensor Choose the actual GPIO you wired. For a switch that closes to ground in the normal state, enable the pull-up if supported and trigger on high. Verify both states on the bench and choose a status interval suitable for your mesh.
Weatherproof the node With power disconnected, verify connector polarity and the approved charging setup before attaching the battery and solar panel. Seal the cable entry with a gland and leave a drip loop.
Verify both gate states Open and close the gate several times. Confirm fresh reports at the base from the final mount. Treat a missing report as unknown until a fresh state arrives.
These are example layouts. Confirm the pinout, power and fit for your exact parts. Field validation is pending.