Skip to content

piejanssens/Garage-Control-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Garage Control with Arduino

Arduino Garage Control project including sketch and tutorial.

alt text

#Demo Watch it in action!

#Overview The purpose of this project was to create a DIY garage control utitlity that can be remotely controlled via my iPhone. I chose for BLE (Bluetooth Low Energy a.k.a. Bluetooth 4.0) as it - what's in a name - very energy efficient and above all, has better connectivity (range + connectiontime) then its predecessors. We certainly didn't want to reinvent the wheel as there are quite a few tutorials on the internet showing remotely controlled garages by a smartphone. But it's not just a test project I really want to use it on a daily basis. Therefore it must be good, real good. And that meant, useful, fast and super easy to use. A big plus for this implementation is that it will auomatically connect once the BLE shield is in range of your smartphone, no need to press the connect button (over and over). Most of the time it takes <1 second to be connected once you open one of the apps!

#Apps I wrote two iOS companion apps. Note that you need to compile these yourself, the apps are not available on the App Store.

  • Carage Controller - Monitor sensors and control the garage door
  • My Garage - Only function is to connect and immediately send the door switch command and close. This can be used with Siri by giving the command "Open my garage" which will just open the app and let it do it's thing.

Both apps are using a modified BLE Shield library and will keep scanning for the device until it's found and then connect. This is very useful since (in case your so lucky that your car supports this) you can drive up to your house, press the steering wheel button (or activate Siri with the home button) and say "Open my garage". As soon as you come in range of the Arduino it will open the garage!

#Requirements The requirements describe the parts you need to create the same Arduino project as I did and is almost plug and play (that is whilst using my sketch and iOS app). It's up to you to decide what you want t$

#How To

  1. Mount the grove base shield on the BLE shield, and mount the BLE shield on the Arduino
  2. Connect the light sensor connector with A3 on the base shield
  3. Connect the temperature sensor connector with A2 on the base shield
  4. Connect the relay with D4 on the base shield
  5. Cut one grove connector cable in two.
  6. Plug the connector side in D6 and wirethe black and yellow cables to either side of the magnetic switch.
  7. Upload the sketch
  8. Open the console and enable debugging (= send 'd') or connect with one of the companion iOS apps
  9. Optional add a random authentication bytes "handshake" to both the sketch and the iOS app. These bytes are sent before switching the relay. Without this handshake the command to open the garage door will not be accepted.

About

Arduino Garage Control project including sketch and tutorial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%