pinhole gate sensor?

Hi, I'm wanting to put a hidden sensor on my farm gate to advise me when gate is opened and was thinking a sensor that could be fitted into a gate post or fencepost (drill hole, insert sensor, not easily spotted).

I have the wireless comms aspect sorted to buzz at house 200m away (this works fine) but am now unsure which of the myriad options for sensors would be best. I tried ultrasonic but sensor is large and was not terribly reliable. The gate is a simple chain over latch type latch so not really suited to a mechanical switch. I'm thinking laser or ultrasonic or perhaps IR switch. Anyone know of something suited to arudino which could be easily hidden in fencepost?

TIA.

Magnet and Hall Effect sensor

RFID tag?

This is a good time to ask about distances. At what minimum distance should it be "closed"? At what maximum distance should it be "open"?

Do you want to know if the gate is:
Approached by a human, opened / closed, tampered with, other?

The gate is a simple chain over latch type latch

Please post a photo.

image posting guide

aarg:
This is a good time to ask about distances. At what minimum distance should it be "closed"? At what maximum distance should it be "open"?

Good questions, I should have been more specific.
Well there are two ways to do this:

  1. Detect when a person or vehicle approaches the gate
  2. Detect when the gate is opened - this is the preferred option I think.

The gate is a swinging farm gate (not sliding) and is about 3.5m wide, 1m high, steel tube frame with wire netting.
Any movement of the gate from closed to opened needs to be detected, ie even opening it 1 foot for a person to get through, or wide open for a vehicle.

RFID will not work with visitors? I'm not necessarily trying to keep people out, simply detect when they try to come in.
Hall effect/magnet: Presumably this will need equipment in both gate and post? How far apart can the two be and work reliably?
Thanks

I would first try mounting a snap-action microswitch (possibly with roller lever) at the gate hinge, with a cam of some sort on the moving part of the gate. They are rugged and extremely reliable.

nzmuzzer:
RFID will not work with visitors?

Tag in the gate, sensor in the post. Or vicey versy.

Hi,
To sense the metal gate you need an inductive sensor, these come in a variety of shapes and sizes and are WEATHER PROOF.
You could hide the sensor in a fence post.

google
inductive sensor arduino

There are projects and YouTube clips to show you applications and principles.

Tom... :slight_smile:

jremington:
They are rugged and extremely reliable.

But those are not by any means waterproof, so your suggestion is moot.

Magnet and reed switch. Big gap (up to an inch or two); stronger magnet. :grinning:

Hi! If the goal it´s simply to know when the door is opened (and closed) a magnetic door sensor such as those used in alarm systems is a great tool: cheap, reliable, easy to install, no mechanical parts.. and cheap :slight_smile:

Sample:

The sensor needs no power. You may read the status with any Arduino digital input.

Best regards!

An even easier solution will be to ground the hinge end. Then insulate the fixed portion of the latch. When the gate is fastened, the insulated latch is grounded, When the gate is opened, the insulated latch is not-grounded.

Paul

Hi,
We need to remember this is a "FARM GATE" not a doorway or security door with close, repeatable and precise alignment.

Farm gates rattle, do not have a fixed lock position as they usually have a chain around them to just keep them closed.

I don't know the OPs exact situation, but it may have cattle or vehicles push against it (yes in on the farm these things happen).

Tom.... :slight_smile:
PS, A country boy in my youth.

nzmuzzer:
Hall effect/magnet: Presumably this will need equipment in both gate and post? How far apart can the two be and work reliably?

The magnet doesn't have any electrical connections. It's just a magnetic slug. I asked you about distances and you never responded. I suppose a few centimeters would be the answer for Hall effect sensors. Shorter for the digital type (with built in on-off threshold).

Have not seen the promised picture. I have a similar gate. It can be swung open either way. I this your situation, also?

Paul