Video surveillance

Securing a Rural Farm: Isolated Cameras, Solar Poles and a Gate Alarm in a Birdhouse

Illustration of a wooden birdhouse on a large tree trunk beside a closed metal ranch gate across a dirt road, with a pole carrying a small solar panel and a security camera, and rows of white hoop greenhouses on dry golden hills behind

Farms are some of the hardest places to secure. The property is big, the buildings are spread out, power is wherever the original owner happened to run it, and the nearest help is a long way off. Add a business where security is a condition of operating, and you need a system that covers every way in, keeps recording when something fails, and can’t itself become the weak point.

This is how we did that for a large licensed cannabis farm off Highway 36 in Humboldt County. For obvious reasons, I’m not naming the client or showing anything that would identify the site. The full write-up is in our case study; this post is about the decisions behind it, and what I’d tell anyone with a similar property.

The problem, in the client’s terms

When the farm brought us in, in June 2020, the list looked like this:

  • Cameras on every way in and out of the sensitive areas: the property entrance, the office, the nursery, the greenhouses and a two-story metal processing building.
  • Wi-Fi across the property, including for staff and temporary workers.
  • An alert when a vehicle reaches the gate, loud enough to hear away from the office.
  • All of it on a rural site where power doesn’t reach every place a camera needs to go.

Why the obvious fixes don’t work

The quick answer to “we need cameras” is a box of Wi-Fi cameras and an app. On a property like this, that falls apart fast:

  • Wi-Fi cameras need power anyway. “Wireless” usually means the video goes over the air, not that the camera runs on nothing. Out by a greenhouse or a gate there may be no outlet at all.
  • Long, open distances are hard on Wi-Fi. Coverage that works around a house doesn’t stretch across fields and between metal buildings.
  • Cloud cameras talk to the internet. For a site that wants its video kept to itself, a camera that phones home to a vendor’s servers is the wrong design.
  • Extending utility power to every pole means trenching everywhere, and on a large property that’s a lot of digging for one camera.

So the design had to answer three questions for every camera location: how does it get power, how does its video get back, and who can it talk to?

What we built

A core that records everything locally

At the center is a UniFi Dream Machine Pro running UniFi Network and UniFi Protect, with a UniFi Switch Pro 24 PoE that powers cameras and radios over their network cables, including PoE++ for higher-power devices. Video records on site to a UniFi UNVR with four 12 TB drives in RAID 5, chosen for as much retention as possible and set up to keep recording through a single drive failure.

Diagram: the internet connects to a UniFi Dream Machine Pro running UniFi Network and UniFi Protect, then to a UniFi Switch Pro 24 PoE with PoE++ support. The switch connects to a UniFi UNVR with four 12 TB drives in RAID 5, to an isolated camera VLAN with no internet access serving hardwired poles on buried conduit and solar poles on point-to-point backhaul, and to outdoor UAP AC Mesh Wi-Fi carrying the management and staff networks and a guest hotspot for staff and temporary workers. How the farm’s system fits together, with the cameras on a network of their own.

Cameras that can’t reach the internet

This is the decision I’d push hardest on any client. The cameras sit on their own VLAN, isolated from every other network on the farm, with no outbound internet access. They can reach the recorder and nothing else. People view video through UniFi Protect, not by connecting to cameras directly.

That does two things. A compromised phone or laptop on the Wi-Fi can’t get to the cameras. And if a camera ever has a security flaw, it has nowhere to send anything. Cameras are small computers that rarely get the attention a server does, so the network has to protect them.

Buried conduit where we could reach, solar where we couldn’t

Where a camera location was within reach of the network, we trenched and buried conduit to carry Ethernet and PoE to it. One cable powers and connects each device, and most of them are mounted on poles, up high with a clear view of the entrance they cover.

Long runs get checked before anything goes in the ground. The case study shows one of those checks: a 368-foot run of 14 AWG copper at 24 V DC, feeding a 22 W load, which the calculator put at a 7.13 percent voltage drop. If you do this kind of work, it’s worth having a quick way to run the numbers yourself:

#!/usr/bin/env python3
"""Voltage drop on a two-wire DC run (out and back)."""
import math
import sys

# Resistance of solid copper at 20 °C, ohms per 1,000 feet.
OHMS_PER_KFT = {10: 0.9989, 12: 1.588, 14: 2.525, 16: 4.016, 18: 6.385}

def loop_ohms(length_ft: float, awg: int) -> float:
    return OHMS_PER_KFT[awg] * (2 * length_ft) / 1000

def nominal_drop(length_ft: float, awg: int, volts: float, watts: float) -> float:
    """Quick estimate: current fixed at watts / supply volts."""
    return (watts / volts) * loop_ohms(length_ft, awg)

def constant_power_drop(length_ft: float, awg: int, volts: float, watts: float) -> float:
    """Regulated load: it keeps drawing `watts`, so current rises as the voltage sags.
    Solves V_load = volts - (watts / V_load) * R for the higher root."""
    r = loop_ohms(length_ft, awg)
    disc = volts ** 2 - 4 * watts * r
    if disc < 0:
        raise ValueError("Run is too long for this load: the far end can't reach that power.")
    v_load = (volts + math.sqrt(disc)) / 2
    return volts - v_load

if __name__ == "__main__":
    length, awg, volts, watts = float(sys.argv[1]), int(sys.argv[2]), float(sys.argv[3]), float(sys.argv[4])
    print(f"{length:.0f} ft of {awg} AWG at {volts:.0f} V, {watts:.0f} W load")
    for label, drop in (("Nominal current", nominal_drop(length, awg, volts, watts)),
                        ("Constant power", constant_power_drop(length, awg, volts, watts))):
        print(f"  {label:16} {drop:.2f} V drop ({100 * drop / volts:.2f}%), {volts - drop:.2f} V at the far end")
python3 vdrop.py 368 14 24 22
# 368 ft of 14 AWG at 24 V, 22 W load
#   Nominal current  1.70 V drop (7.10%), 22.30 V at the far end
#   Constant power   1.85 V drop (7.69%), 22.15 V at the far end

The first line is the usual quick estimate, which takes the current as watts divided by the supply voltage. It lands within a few hundredths of a percent of the calculator; the small difference is the resistance figure, since wire gets more resistive as it warms up and calculators don’t all assume the same temperature. The second line matters more for cameras and radios. Most of them are regulated loads that keep drawing the same power as the voltage sags, so they pull a little more current at the far end and the real drop comes out higher than the quick estimate. Size the cable on the constant-power figure, and if it’s close to your limit, go up a wire size. That costs far less now than digging the trench again later.

📝 Note: The run above is DC power. Ethernet and PoE runs have their own maximum length, and PoE budgets are a separate calculation. Check both.

Some locations were out of reach of both power and a trench. Those got solar camera poles: their own panel, charge controller and battery, with video sent home over a point-to-point wireless link to the network core. Each one is a self-contained camera site. I’ve written more about how those work in Solar Camera Poles: How We Put Cameras Where the Power Doesn’t Reach.

Wi-Fi, with guests kept out of the security system

For wireless coverage we mounted UniFi AC Mesh access points outdoors across the areas the farm needed. A guest hotspot gives staff and temporary workers internet access with no route into the farm’s own networks or the camera system.

A gate alarm hidden in a birdhouse

Cameras tell you what happened. The farm also wanted to know the moment a vehicle reached the gate. For that we used a Dakota Alert driveway alarm:

  1. A buried vehicle probe near the gate detects vehicles.
  2. Its transmitter is hidden inside a birdhouse in a tree inside the perimeter, out of sight and out of reach.
  3. An RE-4000 Plus receiver in the office picks up the alert and plays a sound.
  4. The receiver’s dry-contact output switches a loud bell on a 12 V supply, so the alert carries well past the office walls.

Diagram: a vehicle at the front gate is detected by a buried vehicle probe. Its transmitter, hidden in a birdhouse in a tree inside the perimeter, sends a wireless alert to an RE-4000 Plus receiver in the office, which plays a sound in the office and, through a dry contact, rings a loud bell on a 12 V supply. From a car at the gate to a bell ringing, with nothing visible at the gate itself.

I like this part of the job because it’s simple. Nothing at the gate looks like security equipment, there’s no app to check, and nobody has to be watching a screen. A bell rings and people look up.

Finally, every camera, pole, link and cable run was planned on a site map and documented, so the system can be maintained and expanded without guesswork.

If you’re in the same spot

If you run a farm, ranch, yard or any spread-out rural property, these are the questions I’d work through before buying anything:

  1. Map every way in. Roads, gates, doors and the paths between buildings. Coverage starts from that list, not from a camera count.
  2. For each location, decide power and backhaul. Can you trench to it? If not, does it have sun and a line of sight back to the network? That answer decides between conduit, a solar pole and a wireless link.
  3. Keep cameras off the internet. Put them on their own network with no outbound access, record locally, and view through the recording software.
  4. Plan for a failed drive. Use a recorder with a RAID array so one dead disk doesn’t mean lost video.
  5. Separate guests from everything else. Workers and visitors get internet, not a path to your systems.
  6. Think about alerts, not just recordings. A driveway alarm tells you something is happening while it’s still happening.
  7. Document it. Whoever maintains the system next, including you, will need the map.

If you’d like help working through that for your property, get in touch. Site evaluations for solar camera poles are free.

Your next project starts here

Let’s build something that works.

A new building, a camera system for the back forty, or a network that needs a fresh start. Tell us what you’re working with — the first conversation is free.

Or email hello@emeraldsecurity.net