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; Mon, 10 Aug 2020 13:24:42 -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 07AKEwpm028456; Mon, 10 Aug 2020 16:15:23 -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 07AKEupb028449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 10 Aug 2020 16:14:56 -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 07AKGt97013376 for ; Mon, 10 Aug 2020 16:17:05 -0400 Received: from w92exhyb5.exchange.mit.edu (18.7.71.110) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 10 Aug 2020 16:13:54 -0400 Received: from oc11exhyb4.exchange.mit.edu (18.9.1.100) by w92exhyb5.exchange.mit.edu (18.7.71.110) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Aug 2020 16:14:18 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.107) by oc11exhyb4.exchange.mit.edu (18.9.1.100) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 10 Aug 2020 16:14:18 -0400 Received: from DM5PR13CA0054.namprd13.prod.outlook.com (2603:10b6:3:117::16) by DM6PR01MB3835.prod.exchangelabs.com (2603:10b6:5:87::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19; Mon, 10 Aug 2020 20:14:17 +0000 Received: from DM3NAM03FT022.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:117:cafe::ae) by DM5PR13CA0054.outlook.office365.com (2603:10b6:3:117::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.10 via Frontend Transport; Mon, 10 Aug 2020 20:14:17 +0000 Received: from cmta16.telus.net (209.171.16.89) by DM3NAM03FT022.mail.protection.outlook.com (10.152.82.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.16 via Frontend Transport; Mon, 10 Aug 2020 20:14:17 +0000 Received: from DAR5.planet.eon.net ([142.59.122.93]) by cmsmtp with SMTP id 5EBSklpRk5b7l5EBUkn5hR; Mon, 10 Aug 2020 14:14:17 -0600 From: Dwayne Reid To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Mon, 10 Aug 2020 13:14:14 -0700 Subject: Re: [EE] averaging multiple samples to reject AC interference Thread-Topic: [EE] averaging multiple samples to reject AC interference Thread-Index: AdZvVEhTEYO3mA7hQsi9/e7UFQHWvA== Message-ID: <87ebbde6f2952158e80cf62518bc8745@mtlp000083> References: 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 planet.eon.net designates 209.171.16.89 as permitted sender) receiver=protection.outlook.com; client-ip=209.171.16.89; helo=cmta16.telus.net; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mitprod.onmicrosoft.com; s=selector2-mitprod-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U06WYhDrq4wOOPI9n95k8NXuWdht4IlHuD+HLSEc55g=; b=kIJfMTpvSuS4EI61520+oTAaoen8fQ6pxgSQmvPFc88OJIxJX/GX4n4yj2/yP9hlp7+nq7qYMYlyb1x8FSeRjUZK24iq7+HA2Gmvd8tjbsjwOGbuil5X3fwLo8WWDITAylY+7K6ktdSIrtSRjZTnVlSptW2MXYWs+4AqesAvA6U= authentication-results: spf=pass (sender IP is 209.171.16.89) smtp.mailfrom=planet.eon.net; mit.edu; dkim=none (message not signed) header.d=none;mit.edu; dmarc=bestguesspass action=none header.from=planet.eon.net; 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-authority-analysis: v=2.3 cv=YPHhNiOx c=1 sm=1 tr=0 a=Dd/bvHhForHuZnb7ytaWSQ==:117 a=Dd/bvHhForHuZnb7ytaWSQ==:17 a=HpEJnUlJZJkA:10 a=kj9zAlcOel0A:10 a=D1QUtfyEAAAA:8 a=WVHiL177AAAA:8 a=c19xF2_QUMNGYnq1CEsA:9 a=CjuIK1q_8ugA:10 a=iZdX4GlK_F8A:10 a=SxPZiMLqSpAA:10 a=n1uYnq2louoA:10 a=_yt5nuqSr3Ff_nZNByN4:22 a=zz8lhgAq7brTZQd0Oeqi:22 x-topics: [EE] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi there, Bob. Old-time Dual-Slope digital meter systems did exactly what you=20 describe, with great effectiveness. dwayne At 01:44 PM 8/10/2020, Bob Blick wrote: >I have sensors that feed an instrumentation amplifier running a=20 >voltage gain of 10 before going into the A/D converter of a microcontrolle= r. > >There is AC line interference. It is small, but if I can reduce the=20 >effect, that would be good. I'm in the 60 Hertz part of the world,=20 >but ultimately this will be used in both 50Hz and 60Hz locations.=20 >Battery operated, this is not conducted interference or power supply=20 >ripple. Shielding is not possible. I only need to process the signal=20 >about 4 or 5 times per second. The signal is changing, so long-term=20 >averaging is bad. Actually any averaging will result in a tradeoff=20 >between response time and accuracy that I will need to evaluate. > >These sensors are multiplexed with others and I can't sample continuously. > >If I average multiple samples taken at 1/300 second intervals over a=20 >1/10 second period, that should give some improvement at 50Hz and=20 >60Hz without getting too involved, correct? This would fit into my=20 >existing multiplexing constraints. > >I seem to recall being in this situation before but forget what I=20 >did at the time. > >Thanks for any suggestions. >Bob --=20 Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA 780-489-3199 voice 780-487-6397 fax 888-489-3199 Toll Free www.trinity-electronics.com Custom Electronics Design and Manufacturing --=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 .