Cooking Fumes Switch On a Fan | Arduino Nano, MQ-2 and Relay
An Arduino Nano uses an MQ-2 reading to switch a fan through a relay. Separate switching thresholds keep small fluctuations from repeatedly cycling the fan.
Watch & exploreExplore one engineering idea at a time. Watch a short lesson, read the key concepts and test your understanding before your next interview, project or class.
Video · Key ideas · Check your understanding
An Arduino Nano uses an MQ-2 reading to switch a fan through a relay. Separate switching thresholds keep small fluctuations from repeatedly cycling the fan.
Watch & exploreA humidity controller starts a windshield fan at 80% relative humidity and stops it at 65%. Between those levels, the previous fan state matters.
Watch & exploreA sump pump starts at a high water level and runs until the level falls to a lower stop point. The water volume between those levels reduces rapid switching.
Watch & exploreAn ESP32 can use relative humidity from an SHT31 to decide when to run a fan. A higher start threshold and lower stop threshold prevent repeated toggling near the setpoint.
Watch & exploreAn Arduino thermostat can read a DS18B20 temperature sensor and control a fan with separate switch-on and switch-off temperatures.
Watch & explore