Smart Garage

Summary of Smart Garage


This project is a smart garage door opener using an Arduino MKR1000, designed to replace lost remotes and enable remote access via Azure IoT Hub. The system integrates sensors for safety and status monitoring, aiming to run four tasks simultaneously despite the lack of a native RTOS on the MKR1000. Although the author encountered stability issues preventing full completion, the design offers a framework for DIY home automation with cloud connectivity and local display feedback.

Parts used in the Smart Garage:

  • Arduino MKR1000
  • GY-521 MPU-6050 3 Axis Gyroscope + Accelerometer Module
  • Ultrasonic Sensor HC-SR04
  • SSD1306 OLED I2C Display
  • Relay (generic)

Change the way you operate your garage!

Smart Garage

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
GY-521 MPU-6050 3 Axis Gyroscope + Accelerometer Module For Arduino
× 1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor – HC-SR04 (Generic)
× 1
SSD1306 OLED I2C Display
× 1
Relay (generic)
× 1

Software apps and online services

Arduino IDE
Arduino IDE
Visual Studio 2015
Microsoft Visual Studio 2015
Atmel Studio 7
Microchip Atmel Studio 7
Optional

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Quick Solutions to Questions related to Smart Garage:

  • Why was this smart garage system created?
    The project was inspired by losing a garage remote twice and the inconvenience of sharing physical remotes with family members.
  • What hardware components are required for the prototype?
    You need an Arduino MKR1000, a GY-521 MPU-6050 module, an HC-SR04 ultrasonic sensor, an SSD1306 OLED display, and a generic relay.
  • How do you connect the HC-SR04 to the MKR1000?
    Use a voltage divider because the MKR1000 uses 3.3v logic levels while the sensor may operate at higher voltages.
  • What software tools are needed for development?
    The project utilizes Arduino IDE, Microsoft Visual Studio 2015, and optionally Microchip Atmel Studio 7.
  • Does the system support global remote access?
    Yes, the improved version connects to Azure IoT Hub to allow access from anywhere, unlike the previous local-only prototype.
  • Can the MKR1000 run multiple tasks simultaneously?
    The design aims to run four tasks at once, but the MKR1000 lacks a direct RTOS port, causing stability issues.
  • What happens if the code crashes on the MKR1000?
    Fixing a bricked MKR1000 requires a JTAG or SWD debugger to flash it directly with OpenOCD.
  • What information does the SSD1306 display show?
    The display shows debug information and the current time using the RTC capability of the MKR1000.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top