Adaptive Power Quality for Power Management Units using Smart Technologies