Ultrasonic Fan Control

Skill LevelArea of FocusOperating System
Smart Home

This project is designed to use the DragonBoard™ 410c from Arrow Electronics with a HS-100 ultrasonic module to detect the distance a person is from a fan to help prevent injury. The system is designed to transmit the distance value detected to the DragonBoard 410c and switch off the fan by triggering a relay connected to the DragonBoard 410c. The system is also designed to turn on the fan when the proximity near the fan is clear.

Traditional fans with rotating blades can be hazardous to little children. News about children’s fingers being injured by fan blades is too frequent. This project uses the available resources to try to reduce such accidents.

Materials Required / Parts List / Tools

Source Code / Source Example / Application Executable

Build / Assembly

  1. Install the Debian system on DragonBoard 410c board
  2. Update source
  3. Install ultrasonic driver
  4. Run distance detection program

Usage Instructions

Power on to enter the system, install insmod sonar.ko, when lsmod indicates the driver is OK, run the script on the desktop to test its effects.

Ultrasonic Fan Control setup with the DragonBoard™ 410c