A warning device that combines a
radar module with electronic control technology can accurately detect the velocity and the distance of an object around the warning device and provide dynamic warning (e.g., flashing or buzzing). The
radar module, installed in an
electronic component box, maintains a given distance from the ground to avoid echo interference from the ground, thereby reducing the
noise of the collected point-
cloud data. A controller extracts the
relative velocity and the location of the object from the point-
cloud data, selects dynamically approaching points to determine the relative distance and the direction of the object, and dynamically adjusts the flashing frequency of a warning lamp or turns on a
buzzer based on the distance of the object relative to the
radar module.