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 12:55:05 -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 07AJih28023985; Mon, 10 Aug 2020 15:45:20 -0400 Received: from outgoing-exchange-7.mit.edu (OUTGOING-EXCHANGE-7.MIT.EDU [18.9.28.58]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 07AJigJ2023982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 10 Aug 2020 15:44:42 -0400 Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-7.mit.edu (8.14.7/8.12.4) with ESMTP id 07AJgbKq027890 for ; Mon, 10 Aug 2020 15:42:41 -0400 Received: from w92expo30.exchange.mit.edu (18.7.74.42) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 10 Aug 2020 15:43:26 -0400 Received: from oc11exhyb3.exchange.mit.edu (18.9.1.99) by w92expo30.exchange.mit.edu (18.7.74.42) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Mon, 10 Aug 2020 15:44:10 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) by oc11exhyb3.exchange.mit.edu (18.9.1.99) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 10 Aug 2020 15:44:10 -0400 Received: from DM5PR04CA0050.namprd04.prod.outlook.com (2603:10b6:3:ef::12) by BL0PR01MB4292.prod.exchangelabs.com (2603:10b6:208:26::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.22; Mon, 10 Aug 2020 19:44:08 +0000 Received: from DM3NAM03FT015.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:ef:cafe::2c) by DM5PR04CA0050.outlook.office365.com (2603:10b6:3:ef::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19 via Frontend Transport; Mon, 10 Aug 2020 19:44:08 +0000 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (40.92.43.15) by DM3NAM03FT015.mail.protection.outlook.com (10.152.82.195) 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 19:44:08 +0000 Received: from BN1NAM02FT051.eop-nam02.prod.protection.outlook.com (2a01:111:e400:fc48::4a) by BN1NAM02HT075.eop-nam02.prod.protection.outlook.com (2a01:111:e400:fc48::229) 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 19:44:08 +0000 Received: from BYAPR02MB4055.namprd02.prod.outlook.com (2a01:111:e400:fc48::52) by BN1NAM02FT051.mail.protection.outlook.com (2a01:111:e400:fc48::159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19 via Frontend Transport; Mon, 10 Aug 2020 19:44:07 +0000 Received: from BYAPR02MB4055.namprd02.prod.outlook.com ([fe80::e04e:e8e2:57be:7927]) by BYAPR02MB4055.namprd02.prod.outlook.com ([fe80::e04e:e8e2:57be:7927%7]) with mapi id 15.20.3261.022; Mon, 10 Aug 2020 19:44:07 +0000 From: Bob Blick To: "piclist@mit.edu" Sender: "piclist-bounces@mit.edu" Date: Mon, 10 Aug 2020 12:44:07 -0700 Subject: [EE] averaging multiple samples to reject AC interference Thread-Topic: [EE] averaging multiple samples to reject AC interference Thread-Index: AQHWb0qAtaM9BhVbvUOM7lgsOkiRlg== Message-ID: List-Help: List-Subscribe: , List-Unsubscribe: , Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US Content-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: acceptlanguage: en-US received-spf: Pass (protection.outlook.com: domain of outlook.com designates 40.92.43.15 as permitted sender) receiver=protection.outlook.com; client-ip=40.92.43.15; helo=NAM02-DM3-obe.outbound.protection.outlook.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jO4FR9UFEDBc0nmYTzQcOe0rxuDloeprfR4ZlZ+OdP0=; b=unZREi31jBEOosAtZjk+BuriXrCcY4GWjpxy3q3BRJtA4TlUvPaYbzVpmxNO0JxgUJLv1sNLQXImDXp4OIfq/W//h+mPrThVo/dnJd8mOyg4KQptmCPOMZJdzA7Ta1rIwzuF1pztBDQtJO0P9LAY84IhX4PPpb37A88ZWvSpFwQ7aiT5REr4UeKaI3eS9um7BQ/smTurpJcxpbYHu9xBG5+/IZqrtjMeRnEG3LZhD8zHVxYGEdb8tka+KQsyQLfWuUJFbioBs9UctYuvt+L+IKKW+ZqIgHk1UizgDsCts7AJS3hMGVMOpyB9HqVcPsImwi0HeBpxAHB1UP9HqhakDA== authentication-results: spf=pass (sender IP is 40.92.43.15) smtp.mailfrom=outlook.com; mit.edu; dkim=pass (signature was verified) header.d=outlook.com; mit.edu; dmarc=pass action=none header.from=outlook.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-topics: [EE] x-mime-autoconverted: from quoted-printable to 8bit by PCH.mit.edu id 07AJigJ2023982 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I have sensors that feed an instrumentation amplifier running a voltage gai= n of 10 before going into the A/D converter of a microcontroller. There is AC line interference. It is small, but if I can reduce the effect,= that would be good. I'm in the 60 Hertz part of the world, but ultimately = this will be used in both 50Hz and 60Hz locations. Battery operated, this i= s not conducted interference or power supply ripple. Shielding is not possi= ble. I only need to process the signal about 4 or 5 times per second. The s= ignal is changing, so long-term averaging is bad. Actually any averaging wi= ll result in a tradeoff 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 1/10 s= econd period, that should give some improvement at 50Hz and 60Hz without ge= tting too involved, correct? This would fit into my existing multiplexing c= onstraints. I seem to recall being in this situation before but forget what I did at th= e time. Thanks for any suggestions. Bob --=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 .