Skip to content

RetoHB/DreameGarage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dreame robot vacuum automatic garage door

Introduction

A WiFi-connected garage door controller that automatically opens and closes a garage door based on the state of a Dreame Master robot vacuum, using Home Assistant, Adafruit IO as a cloud bridge and an ESP32-class microcontroller for real-time motor control.

General Description

The system uses an ESP-based microcontroller to control a DC motor through an L298N H-bridge. Motor movement is handled using a non-blocking state machine with controlled acceleration and deceleration, ensuring smooth and predictable motion. On startup, the controller performs an automatic calibration cycle using a limit switch to establish a known reference position. This allows the door to recover correctly after resets or power interruptions. The controller periodically reads the Dreame vacuum state from Adafruit IO, which is updated by Home Assistant. Based on this state, the door opens when the vacuum starts cleaning and closes when it returns to its base or enters charging mode.

A lightweight HTTP web interface provides local control and status monitoring. A hardware watchdog is used to automatically reset the controller if the main loop stalls, ensuring continued operation without user intervention.

The Dreame robot’s Master base is positioned lower than the surrounding floor level. To allow the robot to leave the base and return for reliable docking, an additional ramp is required. The ramp geometry ensures that the robot’s front wheel lowers early enough to achieve the correct docking angle. The required 3D-print files for the ramp are included in this repository.

System Overview

Control Flow

Home Assistant → Adafruit IO → ESP Controller → L298N → DC Motor → Garage Door

Hardware components

  • Electric tailgate trunk strut, pulleys and steel cable
  • Xiao ESP32C3
  • Joy-IT MotorDriver2
  • Limit switch e.g. D2F-01L3
  • 12V power supply
  • Two drawer slides, shortened

Wiring

Dreame garage door schematic

Video and photos

Video

Watch the video


Dreame garage door controller      Dreame garage door internal view

About

Dreame robot vacuum automatic garage door

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages