Received: from PCH.mit.edu (18.7.21.50) by mail.efplus.com (192.168.0.8) with Microsoft SMTP Server (TLS) id 8.3.485.1; Wed, 12 Aug 2020 16:17:28 -0700 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 07CN94ZP006704; Wed, 12 Aug 2020 19:09:15 -0400 Received: from outgoing-exchange-3.mit.edu (OUTGOING-EXCHANGE-3.MIT.EDU [18.9.28.13]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 07CN92a8006700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 12 Aug 2020 19:09:02 -0400 Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 07CNB8mb016693 for ; Wed, 12 Aug 2020 19:11:12 -0400 Received: from oc11expo12.exchange.mit.edu (18.9.4.17) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Wed, 12 Aug 2020 19:09:00 -0400 Received: from oc11exhyb7.exchange.mit.edu (18.9.1.112) by oc11expo12.exchange.mit.edu (18.9.4.17) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Wed, 12 Aug 2020 19:09:00 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by oc11exhyb7.exchange.mit.edu (18.9.1.112) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Wed, 12 Aug 2020 19:09:00 -0400 Received: from MWHPR18CA0047.namprd18.prod.outlook.com (2603:10b6:320:31::33) by BYAPR01MB4888.prod.exchangelabs.com (2603:10b6:a03:7a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.22; Wed, 12 Aug 2020 23:08:59 +0000 Received: from CO1NAM03FT021.eop-NAM03.prod.protection.outlook.com (2603:10b6:320:31:cafe::8f) by MWHPR18CA0047.outlook.office365.com (2603:10b6:320:31::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15 via Frontend Transport; Wed, 12 Aug 2020 23:08:59 +0000 Received: from mail-ej1-f44.google.com (209.85.218.44) by CO1NAM03FT021.mail.protection.outlook.com (10.152.80.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16 via Frontend Transport; Wed, 12 Aug 2020 23:08:59 +0000 Received: by mail-ej1-f44.google.com with SMTP id m22so4072020eje.10 for ; Wed, 12 Aug 2020 16:08:59 -0700 (PDT) From: RussellMc To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Wed, 12 Aug 2020 16:08:20 -0700 Subject: Re: [EE] averaging multiple samples to reject AC interference Thread-Topic: [EE] averaging multiple samples to reject AC interference Thread-Index: AdZw/r9u+J1hU+A2QxqhhVpndjgGQQ== Message-ID: References: <20200810131708.06a56fd6300ec2bfca6379d4e10ab8d2.bc322fe198.wbe@email27.godaddy.com> <42b31c06-4e32-b49b-0c18-3a8332eff7fe@myfairpoint.net> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-AuthSource: TS500.efplus4.local X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-SenderIdResult: Pass X-MS-Exchange-Organization-PRD: mit.edu X-MS-TNEF-Correlator: received-spf: Pass (protection.outlook.com: domain of gmail.com designates 209.85.218.44 as permitted sender) receiver=protection.outlook.com; client-ip=209.85.218.44; helo=mail-ej1-f44.google.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=dvSfxfO5jttcjn8+ob2itELc0sSr8njLKRvkPin72kk=; b=QDl7XrdT2Bb1lHUSUvd5MpUG2B+O6S09neq3Y/rKS+ZXeDu2KNuIWQ+wzS+ZBXopay arb7S6ejdWg0pfd9KqOyKxDbWZp+FT4FuDkt90wOYswL6PLxYnYyLjEUGp+PZqiFBxN9 odNkL+fw/syxDov11scdiFSEoDt9Mq4OFABm7Uh8wLVC5RhLEV52q9m5e/ed0HavrbE5 FjKsGiZER5wDdPv/0zalAQqM98rlnlV7h9XM8Lowm/2IIdMLtA/FHl8RUyCD0PXYcIqb 1ug966sGOlXrpUILxWOyslag9eLNz3unKR54EYM/mfWZqcjm2CBPB958WJYkEx6j/CkC mr7Q== authentication-results: spf=pass (sender IP is 209.85.218.44) smtp.mailfrom=gmail.com; mit.edu; dkim=pass (signature was verified) header.d=gmail.com; mit.edu; dmarc=pass action=none header.from=gmail.com; errors-to: piclist-bounces@mit.edu list-id: "Microcontroller discussion list - Public." list-post: x-beenthere: piclist@mit.edu x-mailman-version: 2.1.6 x-received: by 2002:a17:906:c34e:: with SMTP id ci14mr2210129ejb.335.1597273737235; Wed, 12 Aug 2020 16:08:57 -0700 (PDT) x-topics: [EE] x-content-filtered-by: Mailman/MimeDel 2.1.6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 > > If averaging a not overly large number of samples then retaining a record > of all samples and adding a new one to the total and dropping the oldest > off gives a much more responsive result than eg Latest/N + Sum x N-1/N Russell > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .