element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14 presents
  • Challenges & Projects
  • More
element14 presents
Off-Grid MakerShop Project - Gate Opener/Closer Control System
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14 presents to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: KalebTheMaker
  • Date Created: 26 Oct 2022 2:29 PM Date Created
  • Views 2343 views
  • Likes 13 likes
  • Comments 18 comments
  • homestead
  • diy
  • solar power
  • off-grid
Related
Recommended

Project - Gate Opener/Closer Control System

KalebTheMaker
KalebTheMaker
26 Oct 2022
Project - Gate Opener/Closer Control System

image  image

Priorities are strange. I have a huge list of projects on Bonesnapper Ridge, but what came up as the highest priority? The gate opener. Yep, even before power. This is the first project that I am going to build and blog about.

This topic is open for discussion. I would love to have your input on this build. 

The Problem

During the construction and move-in phase, I have been going to town 2-3 times a day. Every time I leave, I have to stop the vehicle, get out, walk up to the gate, unlock it, open it, futz with making it stay in the right spot with a stick or a rock, walk back to the car, drive 20 feet, get out, go back and move that rock, close the gate, lock it, walk back to the car, get in and go. Then when I get back, I do the same thing in reverse. It's really not a big deal, just annoying to do so many times. And when it starts raining, it's going to be 100x more annoying. 

Why build my own?

My uncle owns a large fencing company in the next county over. He has been in business for something like 45 years and has accumulated a large stock of parts. Apparently, some residents and businesses like to upgrade their gate openers regularly, and they just let him take the perfectly good functional parts. He told me that I can come down and search through the stock and pick out what I need. He has tons of actuators and all the parts that go with them to hook up to my gate. Probably even some keypads, though I am not sure if I can use those or not. So, why build my own? I have access to free parts, and not a complete system. So yeah, sounds like fun!

Also, I have been living behind a gate opener system for the last year and a half. It's a pretty pricey system, high-end stuff. And it has almost no features other than open/close, limit, IR sensor, and a lock. As far as programming goes, you can set multiple codes, and that's it. No logging, no alert, and no way to edit or modify a code/user. I managed the system for a bit and was absolutely surprised that there is no interface other than the keypad. I wanted some logging about who was coming in and out and at what times. Now I have the opportunity to build in all of those features. Let's talk about some of the possibilities:

Possible Features

  • Web UI for create/modify/delete of codes/users. 
  • Logging of usages and possibly errors
  • Notifications of the gate opening (SMS / Send pic to my phone of who is operating the gate?)
  • Wireless Entry (LoRa for long-range open?)
  • Isolated solar power for the entire system.
  • Wyze camera for semi 2way comms?
  • Other two-way communication?
  • Keypads on both sides of the gate
  • Limit switches for open/closed states
  • IR Sensor for safety? (optional...) 

I would like to be able to program it remotely, have a date and timestamped access log, and get notifications at the house (or anywhere I am) when the gate is opened. Those would be my main "upgrades" from the typical system (that I have experience with). Wireless entry is also key (see what I did there?) with a long enough range that the gate is already open by the time I get to it so I don't have to slow down or stop. 

What will I have to build?

Since I know my Uncle has lots of actuators to pick from, I figure I will have to build everything else. I am hoping that he has Infrared Sensors and a solenoid-type gate latch at least. Those might be difficult to spec for weather resistance.  I will need a motor controller, an MCU to control everything, various relays for IR and a latch, Solar power & batteries for the system, code for the MCU, and wireless entry FOB's and a receiver.

One feature that many gate openers have is detecting resistance on the gate and reversing the direction the actuator is running in so you don't squish anyone in the system. I'm not quite sure how to do this, other than the motor controller having some sort of detection of resistance. I know there are some stepper drivers that can do this, but I am not sure what type of motor the actuator will have. Does anyone know how to do this? Otherwise, the gate is two miles out a private road and there is virtually zero foot traffic up here. I *could* just put a sign on the gate that says, "Don't get squished. It will squish you" and be done with it. 

Parts

Let's talk parts. The actuator is an unknown, and maybe I will end up with a couple to choose from. That will determine what type of motor controller I will need. Here is a list of potential parts:

  • MCU: This could be a WiFi enabled Arduino, or a Raspberry Pi.
  • Actuator: I would like to find an "arm" style actuator that attaches to the gate and the post. Usually, these are a ball screw type actuator. 
  • Motor Controller: I won't know what type of controller I will need until I get the actuator.
  • Keypads: These will need to be IP64/IP65 rated.
  • Limit Switches: There are plenty of industrial limit switches that are IP rated for outdoor use. 
  • Solar Power: I will need to build an isolated solar power system to run it 24/7.
  • Control Box: Again, an IP-rated box that will house all of the electronics, solar charge controller, and batteries. 
  • Steel Square Tube: Probably 4" to make the keypad post/housing.

Power

Since I do not have any power here, and the gate is far enough away from the house that it does not make sense to run power out there, I will need to build an isolated solar power system. I think this part will be pretty easy. I will use a couple of small solar panels and an inexpensive solar charge controller to charge some type of batteries. Probably Sealed Lead Acid since they are affordable, but if I can find a suitable LifePo4 alternative that is affordable, I may go that route since they are quite safe. 

A Raspberry Pi will take more power to run 24/7 than an Arduino type MCU and that could be a problem. I will have to account for that power draw plus the opening and closing of the gate X number of times on a battery charge. Same accounting will need to be done if I use an Arduino type MCU, but with less power draw throughout the day. If I decide to go Arduino, then I will have a server running at the house to host the access control and Web UI which will use more power overall (since that will have to be *at least* a Raspberry Pi, in addition to the Arduino). So maybe it makes more sense to have a Pi out at the gate that is 100% powered by that isolated system. What do you think? Pi or Arduino?

Existing Gate

Currently, there is quite an average agricultural style gate with an ~8" post in concrete on the hinge side, and a ~4" post in concrete on the latch side. The gate itself is pretty boring, and I fully intend to build my own gate once the shop is done and I have a nice place to weld. My uncle also offered me to look around his "pile of gates" to see if there was something better or build me a custom gate. I've always wanted to build my own gate, so I am leaning towards that, but if he has something good... It's not off the table.  

There is not really a great south-facing spot right near the gate for the solar panels, I will have to set them back a good 40-50 feet to be in an area that gets good access to the sun. 

Fabrication & Prep

I will have to do some grunt work for this installation. I will need to install a pole for the solar panel mount, which will probably also have the control box mounted to it. Trench from the control box to the first keypad, trench from that keypad to the gate, then to the second keypad. I will also need to fabricate posts of some sort for the keypads. The keypad and solar posts will need to be cemented into the ground. Ill have to run a conduit from each point to carry conductors. 

Discussion Time

Well, those are my thoughts going into this project. I would love to hear any suggestions or ideas you may have on this topic. Everything is open for discussion, I know what I need to do, but I have not settled on exactly how to get there. I will be covering the build in the blog, and there will be an Element14 Presents Friday episode of the build! 

I will give an update once I go sort through the parts at my Uncles shop. Hopefully by next week. Meanwhile, I will keep an eye on this post for any ideas or suggestions that come up

-Kaleb

  • Sign in to reply

Top Comments

  • KalebTheMaker
    KalebTheMaker over 2 years ago in reply to beacon_dave +1
    That is a great idea, and I started thinking about it right after you mentioned LoRa. I'm thinking about yet another project, where I have a raspberry PI (luckily I have several not in use) that I can…
  • beacon_dave
    beacon_dave over 2 years ago in reply to KalebTheMaker

    Line of sight through some trees might be an issue. I seem to recall the BBC publishing a paper on the effect of trees on TV reception where they suggested that the higher terrestrial TV frequencies were affected by trees. If you are tied to 915MHz for LoRa then that may also impact you. Some testing / strategic pruning may be required.

    I've not taken the plunge into LoRa as yet, but Andreas Spiess got good results here with the Draguino LoRa v1.2 shield

    https://www.youtube.com/watch?v=adhWIo-7gr4 

    which looks like it uses the Semtech SX1276/SX1278 device. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to KalebTheMaker

    Something I saw the other day was using LoRa with a mesh network topology for off-grid use.

    https://www.youtube.com/watch?v=TY6m6fS8bxU

    It might fit in with your use case in future as your system grows.

    It looks like it supports router nodes as well now so if you have high points with good line of site then you could set them as router nodes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • KalebTheMaker
    KalebTheMaker over 2 years ago in reply to beacon_dave

    That is a great idea, and I started thinking about it right after you mentioned LoRa. I'm thinking about yet another project, where I have a raspberry PI (luckily I have several not in use) that I can put a LoRa radio on, and a WiFi adapter with an external antenna connector. This pi would be on a short mast in a weather proof box outside with external omni's for both LoRa and WiFi for gathering all of my remote sensor data. The house is sort of central and has line of sight (some through trees) to most areas I need to collect data from. That way I have options for both WiFi and LoRa. 

    Any suggestions for a PI LoRa radio? Ive looked at a few, but have not decided on anything yet.

    Thanks,

    -Kaleb

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to KalebTheMaker

    Might need something bigger when you upgrade to the Jurassic Park style gates Slight smile

    I was thinking more of a couple of LoRa radio modules configured back-to-back without the expense of the LoRaWAN layer, just to get the additional range. You can get LoRa concentrator hats/boards for the likes of the R-Pi to build your own LoRaWAN gateway though once the number of nodes starts to increase.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • KalebTheMaker
    KalebTheMaker over 2 years ago in reply to beacon_dave

    Hi Dave, 

    According to the mightymule PDF, I am zone 2. 100W should be plenty. In fact, I just dumpster-dived a 100w panel to use for this! (ill cover more of that in my next update). 

    I absolutely want to get into LoRa networks here. I should probably just get some LoRa-equipped boards and start testing. I'm not really sure what type of device I need for a "gateway", or if any board with a LoRa radio can act as one. 

    So far I have been playing with an ESP-WROOM-32UE for this project which has a U.FL connector on it, I also have a 15dbi directional panel antenna for that. I have a line of sight through trees from the house to the gate. I have been toying with the idea of having an audio intercom on the system, and I think I would need regular WiFi for that. I am hopeful that I will have decent WiFi to the gate area.

    -Kaleb

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube