implemented low pass filter outside interrupt