Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
Elecrow community is a shared platform and we are not responsible for any design issues.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
closed
user-img

Lily lee

Published: Apr 09,2024

DIY Garage Door Opener Using Arduino: a Beginner's Guide

In this article, we'll delve into the exciting realm of simulating a garage door opener using Arduino.

ccc ccc
Copyright Info

Attribution-ShareAlike (CC BY-SA)

Read More⇒
  123
  0
  0
cover-img
 
  • thumbnail-img
 

Hardware Components

  • Arduino Board

    X 1 fenxiang
  • SG-90 Servo Motor

    X 1 fenxiang
  • Breadboard

    X 1
  • Jumper Wires

    X 1
  • Infrared Sensor

    X 1 fenxiang
  • Stick

    X 1

Tools, APP Software Used etc.

  • Arduino IDE

    Arduino IDE

    Arduino

Story

Embarking on the journey of learning Arduino opens up a world of possibilities for enthusiasts to create innovative projects. In this article, we'll delve into the exciting realm of simulating a garage door opener using Arduino. By following these steps, you'll not only gain a better understanding of Arduino modules but also have a functional garage door opener of your own.

DIY Automatic Garage Door with Arduino and CrowbotBolt Smart Car #ElecrowDIY - YouTube

Supplies

Supplies

 

To begin this project, you'll need the following materials:

 

Arduino Board x1

SG-90 Servo Motor x1

Breadboard x1

Jumper Wires x60

Infrared Sensor x1

Stick x1

Step 1: Understanding the SG-90 Servo Motor

Understanding the SG-90 Servo Motor

The SG-90 Servo has 3 wires, with two of them being VCC and GND for power, while the third wire is for the signal input. The control signal for the servo operates on pulse width modulation (PWM) with a period of 20ms. The pulse width ranges from 0.5ms to 2.5ms, corresponding to a rudder position of 0 to 180 degrees. Essentially, providing the servo with a specific pulse width will maintain its output axis at a corresponding angle, regardless of external torque, until it receives a pulse signal of a different width to adjust to a new position.

Step 2: Connecting the Components

Connecting the Components

When connecting the components, ensure that you correctly identify the positive and negative terminals to avoid damaging the components. You can choose the ports for connecting the servo and the infrared (IR) sensor according to your preference, but ensure that the servo is connected to a port capable of generating PWM signals.

Step 3: Writing the Code

Writing the Code

Controlling the servo using Arduino is simplified by utilizing the "Servo.h" library. Include this library in your Arduino program to easily control the servo motor.

Go to my Github for code.

Step 4: Testing

Testing

After uploading the code to your Arduino boardadjust the trigger distanceof theIR sensor manually to ensure it detects the proximity of passing objects, such as a car. Proper calibration ensures that the IR sensor triggers the servo motor to actuate the garage door opener mechanism.

Step 5: Subsequent Improvements

If you're familiar with interrupt functions, you'll likely recognize areas where my program could be enhanced for better robustness. If you haven't explored interrupts yet, I strongly advise delving into them. Once you've grasped their concepts, assisting me in optimizing this code should be a straightforward task for you.

Code
  • Gatekeeper

    https://github.com/Elecrow-RD/short_eletronics/tree/main/Gatekeeper
    View
user-img

Lily lee

+ Follow

Topic

View All
Arduino Door Beginner Guide
  • Comments( 0 )
  • Like( 0 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All