Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


mdf

mdf

3513 posts

Uber Geek

Trusted

#198633 17-Jul-2016 10:21
Send private message

Warning: I am sure this is a very noob question. I take no responsibility for side splitting laughter at my naivety. 

 

I would like to be able to open and close my garage door with my phone (I have a perfectly good remote, but that's not the point). Having trawled the internet for pretty basic information, I think I should be able to do this with a simple relay switch. One option might be an Arduino stacked with ethernet and relay shields, but I have a strong feeling that there is probably a simpler way than this.

 

The garage door (the very common Merlin 430R) has a couple of ports for attaching a hard wired switch. This seems to work along the lines of 

 

 if circuit closed, then activate door 

 

I've tested this (perhaps foolishly but it works) by closing the circuit with a length of wire and indeed I can control the door just by closing the circuit. The door knows whether it's open or closed and so just does the opposite. If it's currently moving and the circuit is closed, the door will stop.

 

So I think all I need to do is wire in a relay between the manual control ports. However, my query is whether there is a simple single board module that I could make work with this? I have a vague notion of using openHAB on a Raspberry Pi as the controller (and then from that to my phone), but am pretty open to other controller options if that would be best.

 

I have seen some commercial offerings (MyQ, Garageio) but these all seem to anticipate more a tilt style door that you can attach additional sensors to. There are also a couple of bluetooth options that I can fall back to if necessary, but ideally I'd like to be able to control the door completely remotely.

 

As an addon, I'd like to add some kind of proximity sensor so I can tell remotely whether the door is open or closed. But that's probably a second stage project.

 

Any advice about the relay board options?


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2 | 3
jnimmo
1097 posts

Uber Geek


  #1593811 17-Jul-2016 10:55
Send private message

I just got a little relay from eBay for this purpose http://www.ebay.com/itm/New-1pc-1-Channel-12V-H-L-Level-Triger-Optocoupler-Relay-Module-for-Arduino-/390746697486?

 

Actually going to connect it to my alarm system though which has a programmable output, and recently got an internet connectivity module for the alarm so will be able to do it from that. I just ran an extra wire from the back of the hardwire alarm switch up to the alarm box.

 

I got a reid/magnetic switch from TradeMe which I'll connect as a zone sensor to the alarm which will show when the door is open

 

No reason can't do the same from openHAB though




  #1593900 17-Jul-2016 13:37
Send private message

I did this using a very cheap Wemo D1-Mini (ESP8266 based chip) + relay shield which cost about $US4+$US2 delivered from AliExpress (http://www.aliexpress.com/store/1331105). I then got a reed switch (also from AliExpress - there are 100s on there) and wire up the reed magnet to the door opener chain, fixed the other side of the reed sensor to the garage door opener assembly. Then connected the Wemos relay across the opener terminals (as you have already tested) and uploaded the following sketch (written by me but based on the Homie f/w).

 

https://github.com/IntranetOfThings/wemos-garage

 

This publishes the door state (i.e. OPEN or CLOSED) on an MQTT topic and listens in for messages on a different MQTT topic, pulsing the relay when the ON command is received. I have this hooked up to openHAB via the MQTT binding and it works a treat.

 

Obviously requires a bit of tinkering compared to an out-of-the-box solution but it is very cheap and very effective - total cost about $US10! 


  #1593902 17-Jul-2016 13:47
Send private message

The openHAB item bindings for this device if you are interested;

 

 

Switch GF_Garage_Door_Opener "Garage Door Opener" <remotecontrol> { mqtt=">[mosquitto:/homie/wemos-01/opener/press/set:command:ON:1]", autoupdate="false" }
Contact GF_Garage_Door "Garage Door [%s]" <garagedoor> (GP_Door_External) { mqtt="<[mosquitto:/homie/wemos-01/door/state:state:default]" }

 




  #1593940 17-Jul-2016 14:21
Send private message

Some pictures;

 

Click to see full size

 

Click to see full size


richms
28172 posts

Uber Geek

Trusted
Lifetime subscriber

  #1593941 17-Jul-2016 14:25
Send private message

+1 for the wemos boards, they are so much better value than the arduino boards plus ethernet plus cabling hassle, or an even more expensive wifi shield.

 

Ive even used the wemos board for a couple of projects that will never see the wifi being used unless I am really board, just because they are so convenient compared to the not much cheaper arduino mini's





Richard rich.ms

  #1593943 17-Jul-2016 14:27
Send private message

@richms - have you checked out Homie? really good f/w for handling WIFI and MQTT connections etc. Plus support for OTA updates via homie-ota (written in part by yours truly). 

 

 

 

https://github.com/marvinroger/homie-esp8266

 

https://github.com/jpmens/homie-ota

 

 


richms
28172 posts

Uber Geek

Trusted
Lifetime subscriber

  #1593946 17-Jul-2016 14:33
Send private message

No, not yet. Once I have openhab working I will then start to play with the esps doing things. Sorting out my lan here for vlanning off cameras and automation onto another SSID and similar is something I need to do first.

 

For now am just using a couple of them with the neopixel library on some LEDs to cycle them. The reasoning being that when I get around to it I will get them controlled over wifi so why not start with the micro that can do wifi instead of changing it later on.

 

Only downside of wemos over the atmel arduino clones is the incredibly slow compile and upload process on them - a minuite is not unheard of compared with seconds on the atmega based ones.





Richard rich.ms

 
 
 
 

Send money globally for less with Wise - one free transfer up to NZ$900 (affiliate link).
  #1593951 17-Jul-2016 14:39
Send private message

I need to do that with my IP cameras as well (sorry for OT post). Would welcome any tips or suggestions about how you are going about that. 


richms
28172 posts

Uber Geek

Trusted
Lifetime subscriber

  #1593954 17-Jul-2016 14:46
Send private message

SumnerBoy:

 

I need to do that with my IP cameras as well (sorry for OT post). Would welcome any tips or suggestions about how you are going about that. 

 

 

My POE switches are "smart" ones so just put the ports with cameras onto the same vlan and add another vlan interface in the realtek diagnostic software on the PCs I want to view it on with them all statically assigned IPs in a different range and no gateway defined. That way the CMS software on the PC can still see the cameras and NVR's, and I can still remote into that PC to have a look at things thru the CMS software, but the dodgey chinese cameras have no internet access to open backdoor cloud access via their servers. No NTP server on that network at the moment so I have to sort out a pi to do that at some stage.





Richard rich.ms

  #1593962 17-Jul-2016 14:57
Send private message

richms:

 

My POE switches are "smart" ones so just put the ports with cameras onto the same vlan and add another vlan interface in the realtek diagnostic software on the PCs I want to view it on with them all statically assigned IPs in a different range and no gateway defined. That way the CMS software on the PC can still see the cameras and NVR's, and I can still remote into that PC to have a look at things thru the CMS software, but the dodgey chinese cameras have no internet access to open backdoor cloud access via their servers. No NTP server on that network at the moment so I have to sort out a pi to do that at some stage.

 

 

Ok - thanks for that - I don't have smart switches so am gonna have to setup a different SSID in my Unifi controller (all bar one of my cameras are connecting over WiFi due to a lack of cabling to the necessary spots). I think I might need to invest in a managed switch however, to handle the other camera and other devices I want to segregate. 


richms
28172 posts

Uber Geek

Trusted
Lifetime subscriber

  #1593963 17-Jul-2016 15:00
Send private message

I need to get something routing between the networks since if I am on my phone I cant get any of the cameras on the other vlan which is a pain, since I use my tablet to watch the door cameras often when waiting for food to arrive. Someone told me it can be done with a fancier switch than I have but right now the main thing I care about is not having the cameras on the internet since some of them do not have the option to disable their cloud service at all, and on ones that do, they still seem to check in for something so may still have their totally insecure crappy software exposed to the internet.





Richard rich.ms

mdf

mdf

3513 posts

Uber Geek

Trusted

  #1594076 17-Jul-2016 17:40
Send private message

Thanks guys. Looks like a cool new project.

 

It's been a *loong* time since my Dick Smith’s Fun Way into Electronics Vol. 1. I'm keen to get back into this though as a hobby so am looking at some of the SparkFun kits. Or is that something I shouldn't admit to in polite company?


  #1594097 17-Jul-2016 18:09
Send private message

Seriously, grab some Wemos and start playing around with them. For $US4 what is there to lose! Once you can program those up using the Arduino IDE then you can program any Arduino device. Heaps of tutorials and guides online for Arduino sketches. 

 

PS - I had that Dick Smith Vol 1 book as a kid as well!


davidcole
6034 posts

Uber Geek

Trusted

  #1594132 17-Jul-2016 18:49
Send private message

Having just started playing with openhab this weekend, I'd be interested in which particular bits you looked at for doing something - ie closing a switch.

I've put In Temperature sensing -via a couple of raspberry pis with dht11 sensors. Bit expensive for doing that. I've found an ibeacon type Bluetooth device with temp that I've got coming from aliexpress that will hopefully be cheaper, and easier to distribute.
Also with a raspberry Pi with a USB uirt blaster I have it turning on and off and volume of my old stereo. I bought an ir remote shield v1.0 and while I could get it to receive, it wouldn't transmit.

But next I'd like to turn on some lights, or the garage door. A sparky was going to wire it into my paradox alarm...so I may just try and interface with that and fire commands at it from openhab.




Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Paul1977
5042 posts

Uber Geek


  #1594271 18-Jul-2016 09:00
Send private message

We are just finally getting power into our garage, so will be also getting a door opener. Are there any available that already have this functionality (they make washing machines with wifi, which seems far less needed)?


 1 | 2 | 3
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.