Automatic Window

Overview

A project for ENSC 100W. An automated window actuation system.

The goal of the class was to design a product that solves a problem in the world. We went through many ideas, but settled on a system to manage the temperature of a room. The most effective system we came up with was an actuator to control a window, to let cold or warm air into a room. We chose a sliding window, and a belt drive system.

1 / 4

Automatic window prototype installed on a sliding window

Prototyping

The first major obstacle we encountered was outside weather. If it is raining outside, you might not want your window open. To solve this, our device pulls weather data from a public API (called OpenWeather) via HTTP and WiFi. In addition, this also keeps the microcontroller's internal time accurate, and provides an accurate outside temperature estimate. As a result, the entire device remains within the room.

The second obstacle was holding a stable connection on the school's WiFi network. This required significant reasearch into difference commercial systems and standards, to allow repeated calls to the API. In the end, this prototype functioned most places on campus.

The last major issue we encountered was reliability of the actuator. Occasionally the limit switches on the actuator would take too long to activate, and the window would try to go past its travel limits. As a result the motor would skip steps on its belt. To solve this, small springs were placed, to lengthen the avaliable actuation distance of the switches.

1 / 3

Breadboard sensor circuit with the microcontroller

mpg3@sfu.ca, linkedin · Updated 2026-08-13