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



2320 posts

Uber Geek

Trusted
Subscriber

# 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
What does this tag do
1022 posts

Uber Geek

Subscriber

  # 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


1699 posts

Uber Geek

Subscriber

  # 1593900 17-Jul-2016 13:37
3 people support this post
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! 


 
 
 
 


1699 posts

Uber Geek

Subscriber

  # 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]" }

 


1699 posts

Uber Geek

Subscriber

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

Some pictures;

 

Click to see full size

 

Click to see full size


22503 posts

Uber Geek

Trusted
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

1699 posts

Uber Geek

Subscriber

  # 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

 

 


22503 posts

Uber Geek

Trusted
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

 
 
 
 


1699 posts

Uber Geek

Subscriber

  # 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. 


22503 posts

Uber Geek

Trusted
Subscriber

  # 1593954 17-Jul-2016 14:46
One person supports this post
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

1699 posts

Uber Geek

Subscriber

  # 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. 


22503 posts

Uber Geek

Trusted
Subscriber

  # 1593963 17-Jul-2016 15:00
One person supports this post
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



2320 posts

Uber Geek

Trusted
Subscriber

  # 1594076 17-Jul-2016 17:40
One person supports this post
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?


1699 posts

Uber Geek

Subscriber

  # 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!


4526 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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


2776 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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31


Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51


Facebook Portal to land in New Zealand
Posted 19-Sep-2019 18:35


Amazon Studios announces New Zealand as location for its upcoming series based on The Lord of the Rings
Posted 18-Sep-2019 17:24


The Warehouse chooses Elasticsearch service
Posted 18-Sep-2019 13:55


Voyager upgrades core network to 100Gbit
Posted 18-Sep-2019 13:52



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.