Close

You shall not pass

A project log for OpenOpener

Open source (software and hardware) DC motor controller for electric gates

manuManu 08/19/2014 at 00:070 Comments

...unless you have the remote control, the rfid tag, or whatever makes the input detect a pulse.

I want to keep the remote control as simple as possible: just one button. So I have to implement a finite 4-states machine: OPEN - STOP - CLOSE - STOP. One clic on the open opens the gates, an other stop them, an other make them close and another one stop them.

The motion controller detects automatically (when a sufficient time has passed) that both gate are in the stop state with the current sense system. In this case, a clic on the button starts the gate in the opposite way than the previous move (it closes if the gates are fully opened and opens it the gates are fully closed).

So any pulse on the input make the controller change between these states. In intend to remote it with 3 sources:

- the HF remote controls that I already have. As long as the receiver will work, I will use them, but they are not my best choice: they are powered by 12V batteries, that are pretty uncommun compared to 1.5V AAA-size battery.

- the rfid reader: rfid tags are cheap and can be found in many shapes (card, button, wristbands, even rings!). No power is necessary (on the tag side obviously, if there is no power on the reader side, well, ... the motors cannot move too, so it not a real problem).

- rapberry pi connected to my wifi router: it is an excuse to learn to write a small app on a smartphone and setup a decently securised web server on a pi).

That beeing said, anything that is a dry contact (push button, relay, ...) can control the gates.

Discussions