Skip to the content
2 layers94.1 × 63.5 mmGarageOpener, the printed circuit board in 3D

Universal Garage Door using BLE (Bluetooth Low Power) running on ESP32 with highest security possible.

Size
94.1 × 63.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
42
Nets
45
Pads
187
Tracks, vias
149, 16
Pours
5
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
29 Jul 2025
Updated
29 Jul 2025

Overview

GarageOpener is an open-source printed circuit board by AshiqAshref, from the AshiqAshref/Garage-Door-Opener repository on GitHub, published under the MIT licence. It is a 2-layer board of 94.1 × 63.5 mm with 42 parts on 45 nets, routed with 149 tracks and 16 vias.

It is built around the ESP32-C3-MINI-1U-N4, AP63205WU and AMS1117-3.3, with the LESD5D5.0CT1G, PTS526 SMG15 SMTR2 LFS and TB002-500-02BE among its other parts. Its parts include 18 capacitors, 6 diodes, 5 resistors, 4 connectors and 4 switches. It belongs with the radio and wireless boards and the ESP32 and RISC-V boards of this library.

Main components

10

README

README.md

Smart Garage Door Opener

A complete IoT garage door opener system featuring secure Bluetooth Low Energy (BLE) communication, ESP32-C3 microcontroller, custom PCB design, and Android mobile application.

🚀 Project Overview

This project implements a modern, secure garage door opener that can be controlled via a smartphone app. The system features:

  • Secure BLE Communication: Encrypted pairing and authentication
  • ESP32-C3 Based Controller: Low-power WiFi/BLE microcontroller
  • Custom PCB Design: Professional circuit board with integrated power management
  • Android Mobile App: Modern Material Design 3 interface
  • Visual Feedback: 8-digit LED matrix display for status and pairing codes
  • Physical Controls: Manual pairing button and factory reset capability

📁 Project Structure

text
Garage Door Opener Root/
├── Garage Door Opener Circuit/        # KiCad PCB design files
│   ├── GarageOpener.kicad_sch         # Main schematic
│   ├── GarageOpener.kicad_pcb         # PCB layout
│   ├── production files/              # Gerber files for manufacturing
│   └── parts.txt                      # Bill of materials
├── Garage Door Opener Code/
│   ├── ESP32/                         # Firmware for ESP32-C3
│   │   └── Garage Door Opener/
│   │       ├── src/main.cpp           # Main firmware code
│   │       └── platformio.ini        # PlatformIO configuration
│   └── Android/                       # Android mobile application
│       └── GarageOpenerUI/
│           └── app/src/main/          # Android app source code
├── LICENSE                            # Project license
└── README.md                          # This file

🔧 Hardware Components

Main Components

  • ESP32-C3-MINI-1U-N4: Main microcontroller with WiFi/BLE
  • 5V Relay Module: Controls garage door motor
  • MAX7219 LED Matrix: 8-digit display for status and pairing codes
  • Buck Converter: Efficient 5V power supply from mains voltage
  • 3.3V Regulator: Powers ESP32 and logic circuits

Key Features

  • Input Voltage: 3.8V - 32V DC input range
  • Power Consumption: Low-power design with sleep modes
  • Protection: ESD protection, overcurrent protection
  • Connectivity: Micro USB for user cusom programming and debugging
  • User Interface: Physical pairing button, LED status indicators

PCB Specifications

  • Board Size: Compact form factor for enclosure mounting
  • Layers: Multi-layer design for proper power distribution
  • Components: Surface mount components for reliability
  • Connectors: Screw terminals for garage door connections

💻 Software Features

ESP32 Firmware

  • Secure BLE Server: Implements encrypted communication
  • Pairing Management: Secure device pairing with passkey display
  • Display Controller: Real-time status updates on LED matrix
  • Memory Management: Persistent storage of paired devices
  • Factory Reset: Complete system reset capability

Android Application

  • Modern UI: Material Design 3 with Jetpack Compose
  • Device Discovery: Automatic BLE device scanning
  • Secure Pairing: Handles BLE security and authentication
  • Device Management: Save and manage multiple garage door openers
  • Real-time Status: Live connection status and feedback

🔐 Security Features

  • Encrypted BLE Communication: All data transmitted over encrypted channels
  • Device Authentication: Secure pairing with passkey verification
  • Bonded Devices: Only previously paired devices can connect
  • Timeout Protection: Pairing mode automatically times out
  • Factory Reset: Complete security reset capability

🛠️ Installation & Setup

Hardware Assembly

  1. PCB Assembly: Solder all components according to the schematic
  2. Power Connection: Connect 5-32V DC power supply to input terminals
  3. Relay Wiring: Connect relay outputs to garage door motor controls
  4. Display Connection: Wire MAX7219 LED matrix to designated pins
  5. Enclosure: Mount PCB in weatherproof enclosure

Firmware Installation

  1. Install PlatformIO: Set up PlatformIO IDE or VS Code extension
  2. Clone Repository: Download project files
  3. Configure Platform: Verify ESP32-C3 platform configuration
  4. Build & Upload: Compile and flash firmware to ESP32
bash
cd "Garage Door Opener Code/ESP32/Garage Door Opener"
pio run --target upload

Android App Installation

  1. Easy Install : Pre built app can be found in Garage Door Opener Code/Android/GarageOpenerUI/app/release/app-release.apk

Android App build

  1. Android Studio: Open project in Android Studio
  2. Dependencies: Sync Gradle dependencies
  3. Build Configuration: Configure signing and build settings
  4. Install: Build and install APK on Android device
bash
cd "Garage Door Opener Code/Android/GarageOpenerUI"
./gradlew assembleRelease

📱 Usage Instructions

Initial Setup

  1. Power On: Connect power to the garage door opener
  2. Pairing Mode: Press and hold the pairing button for 5 seconds
  3. Mobile App: Open the Android app and scan for devices
  4. Select Device: Choose "Garage" from the discovered devices list
  5. Enter Passkey: Input the 6-digit code displayed on the LED matrix
  6. Complete Pairing: Confirm pairing on both devices

Daily Operation

  1. Open App: Launch the Garage Opener app on your phone
  2. Connect: App automatically connects to paired device
  3. Control: Tap the garage door button to operate
  4. Status: Monitor connection status via app interface

Advanced Features

  • Multiple Devices: Pair multiple garage door openers
  • Device Management: Remove or re-pair devices as needed
  • Factory Reset: Hold pairing button for 10 seconds to reset

🔌 Pin Configuration

ESP32-C3 Pin Assignments

cpp
#define RELAY_PIN 12        // Garage door relay control
#define BUTTON_PIN 13       // Pairing/reset button
#define DIN_PIN 21          // MAX7219 data input
#define CS_PIN 19           // MAX7219 chip select
#define CLK_PIN 18          // MAX7219 clock

Power Requirements

  • Input Voltage: 5V - 32V DC
  • ESP32 Current: ~80mA active, ~10µA deep sleep
  • Relay Current: ~70mA when activated
  • Display Current: ~20mA typical

🐛 Troubleshooting

Common Issues

Cannot pair device:

  • Ensure Bluetooth is enabled on phone
  • Verify device is in pairing mode (LED shows passkey)
  • Check app permissions for Bluetooth access

Relay not activating:

  • Verify power supply voltage (5V minimum)
  • Check relay connections and wiring
  • Test relay manually with multimeter

Display not working:

  • Confirm MAX7219 connections and power
  • Verify pin assignments in firmware
  • Check display module with simple test code

Connection drops frequently:

  • Reduce distance between phone and device
  • Check for interference from other 2.4GHz devices
  • Verify phone's Bluetooth Low Energy support

🔧 Development

Building from Source

Requirements:

  • PlatformIO Core 6.0+
  • Android Studio Arctic Fox+
  • ESP32 Arduino Core 2.0+
  • Android API Level 30+

ESP32 Development:

bash
# Install dependencies
pio pkg install

# Build firmware
pio run

# Upload to device
pio run --target upload

# Monitor serial output
pio device monitor

Android Development:

bash
# Build debug APK
./gradlew assembleDebug

# Run tests
./gradlew test

# Generate release APK
./gradlew assembleRelease

Code Structure

ESP32 Firmware:

  • main.cpp: Main application logic and BLE server
  • LedController.hpp: MAX7219 display management
  • platformio.ini: Build configuration and dependencies

Android Application:

  • MainActivity.kt: Main UI and app lifecycle
  • BleService.kt: Bluetooth Low Energy communication
  • build.gradle.kts: Build configuration and dependencies

📋 Bill of Materials (BOM)

Critical Components

ComponentPart NumberQuantityDescription
ESP32-C3-MINI-1U-N4ESP32-C3-MINI-1U-N41Main microcontroller
RelaySRD-05VDC-SL-C15V SPDT relay
Buck Converter ICTBD15V switching regulator
LED MatrixMAX7219 8-digit1Status display
CapacitorsVariousMultiplePower filtering
ResistorsVariousMultiplePull-ups and current limiting

See parts.txt for complete component specifications

🤝 Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the Repository: Create your own fork
  2. Create Feature Branch: git checkout -b feature/new-feature
  3. Commit Changes: Use descriptive commit messages
  4. Push Branch: git push origin feature/new-feature
  5. Create Pull Request: Submit PR with detailed description

Development Standards

  • Follow existing code style and formatting
  • Add comments for complex logic
  • Test thoroughly before submitting
  • Update documentation as needed

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Safety Warning

ELECTRICAL SAFETY: This device interfaces with garage door motors that operate at dangerous voltages. Installation should only be performed by qualified electricians. Always disconnect power before making connections.

SECURITY: While this system implements encryption, no system is 100% secure. Use appropriate physical security measures for your garage.

📞 Support

For questions, issues, or contributions:

  • Issues: Use GitHub Issues for bug reports
  • Discussions: GitHub Discussions for general questions
  • Email: Contact project maintainer for urgent issues

🔄 Version History

  • v1.0: Initial release with basic BLE functionality
  • Future: Planned features include WiFi connectivity, web interface, and voice control integration

Built with ❤️ for the maker community

Parts

42
QtyValueFootprintReferences
310uf tant(0.2-10R esr)Capacitor_SMD:C_1206_3216MetricC5, C8, C12
3LESD5D5.0CT1GLESD5D5.0CT1G:TVS_LESD5D5.0CT1GD7, D8, D9
20.1uF/16V 10%C1206C104K5RACTU:VARC3216X85NC3, C9
210KResistor_SMD:R_0402_1005MetricR4, R5
210uf/50VUMK325AB7106KM-T:CAPC3225X270NC11, C15
222pF/50V(5%)Capacitor_SMD:C_0201_0603MetricC2, C6
222uf/16VGRM188R61A226ME15J:CAPC1608X100NC14, C16
2PTS526_SMG15_SMTR2_LFSPTS526_SMG15_SMTR2_LFS:SW_PTS526_SMG15_SMTR2_LFSS1, S2
2TB002-500-02BETB002_500_02BE:CUI_TB002-500-02BEJ5, J6
10.1uF/16V 10%Capacitor_SMD:C_0201_0603MetricC4
10.1uF/16V 10%Capacitor_SMD:C_0805_2012MetricC5
10.1uF/50V 10%Capacitor_SMD:C_0201_0603MetricC1
10.1uf/16V 10%C1206C104K5RACTU:VARC3216X85NC7
10.1uf/16V 10%Capacitor_SMD:C_0201_0603MetricC10
110kResistor_SMD:R_0402_1005MetricR2
11N4148WDiode_SMD:D_SOD-123D6
11N5819HW-7-F1N5819HW-7-F:SOD3715X145ND10
122ufCapacitor_SMD:C_1206_3216MetricC13
13.3kResistor_SMD:R_0603_1608MetricR1
14.7u 1.5A - 2ANRS5030T4R7MMGJ:IND_NRS5030T100MMGJ_TAYL1
147ufCapacitor_SMD:C_1206_3216MetricC17
175Resistor_SMD:R_0402_1005MetricR3
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1AP63205WUPackage_TO_SOT_SMD:TSOT-23-6U3
1DISP_OUTConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ4
1ESP32-C3-MINI-1U-N4ESP32-C3-MINI-1U-N4:XCVR_ESP32-C3-MINI-1U-N4U4
1MMBT3904Package_TO_SOT_SMD:SOT-23Q1
1PWRLEDLTST_C191KGKT:0603D5
1SRD-05VDC-SL-CSRD-05VDC-SL-C:RELAY_SRD-05VDC-SL-CK1
1SW_PushButton_Switch_SMD:SW_SPST_PTS645Sx43SMTR92SW1
1USB_B_MicroConnector_USB:USB_Micro-B_Amphenol_10118194_HorizontalJ2

Similar boards

  • 2 layers44.5 × 64 mmWoodstove monitor pcb, the printed circuit board in 3D

    Woodstove monitor pcb

    hoodnoah/woodstove_monitor

    An ESP32-based temperature monitor and logger for stack temperature of a woodstove, written in Rust.

    33 parts
  • 2 layers40 × 111 mmLED Wled, the printed circuit board in 3D

    LED Wled

    edvard5/wEasyLed_V2

    96 parts
  • 2 layers126.2 × 25.5 mmUniversal Programmer, the printed circuit board in 3D

    Universal Programmer

    TiebeDeclercq/Uart-programmer

    A versatile UART programming board designed for microcontroller development with flexible voltage selection and multiple connection options.

    46 partsMIT
  • 2 layers53.8 × 62.9 mmEnvironmental monitoring device, the printed circuit board in 3D

    Environmental monitoring device

    pcbcupid/Lora-Wireless-Sensor-Network

    A wireless sensor network based on Lora and esp32C3. This repo will help you build a complete product from scratch to finish!

    43 parts30MIT
  • 2 layers110 × 110 mmMs pcb, the printed circuit board in 3D

    Ms pcb

    opatiny/micromouse

    Designing a custom micromouse robot.

    39 parts15CERN-OHL-P-2.0
  • 4 layers37.5 × 30 mmDehydration reminder, the printed circuit board in 3D

    Dehydration reminder

    Adityawadpalliwar/smart-hydration-reminder-PCB

    A compact, low-power, wireless-capable PCB designed to live in a water bottle base or sleeve. It detects when you drink using a 6-axis IMU, keeps a running record of intake events, and reminds you with a buzzer when you…

    39 parts
  • 4 layers30 × 65 mmESP32 HAT, the printed circuit board in 3D

    ESP32 HAT

    Rufilla/ESP32_HAT

    A Raspberry Pi HAT for the ESP32 C6

    69 parts1Apache-2.0
  • 4 layers124 × 95 mmEsp32 4 relay, the printed circuit board in 3D

    Esp32 4 relay

    houseofbigseals/esp32_4relay_pcb

    schematic of esp32 4-relay board

    122 parts2

Questions

How big is the GarageOpener PCB?

It measures 94.1 × 63.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the GarageOpener use?

42 parts, built around the ESP32-C3-MINI-1U-N4, AP63205WU, AMS1117-3.3 and LESD5D5.0CT1G. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the GarageOpener KiCad files?

From the AshiqAshref/Garage-Door-Opener repository on GitHub, at the commit this page was made from: the board is Garage Door Opener Circuit/GarageOpener.kicad_pcb and its schematic Garage Door Opener Circuit/3v3Regulator.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the GarageOpener design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).