Design of a smart safety device for dangerous traffic situations