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 14:37:01 -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 07ALS2oC007749; Mon, 10 Aug 2020 17:28:26 -0400 Received: from outgoing-exchange-1.mit.edu (OUTGOING-EXCHANGE-1.MIT.EDU [18.9.28.15]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 07ALS1ee007742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 10 Aug 2020 17:28:02 -0400 Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 07ALQ6Ur013311 for ; Mon, 10 Aug 2020 17:26:29 -0400 Received: from oc11expo14.exchange.mit.edu (18.9.4.19) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 10 Aug 2020 17:27:16 -0400 Received: from oc11exhyb7.exchange.mit.edu (18.9.1.112) by oc11expo14.exchange.mit.edu (18.9.4.19) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Mon, 10 Aug 2020 17:27:41 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) by oc11exhyb7.exchange.mit.edu (18.9.1.112) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 10 Aug 2020 17:27:41 -0400 Received: from DM5PR17CA0050.namprd17.prod.outlook.com (2603:10b6:3:13f::12) by DM6PR01MB5482.prod.exchangelabs.com (2603:10b6:5:150::33) 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 21:27:40 +0000 Received: from DM3NAM03FT055.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:13f:cafe::84) by DM5PR17CA0050.outlook.office365.com (2603:10b6:3:13f::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 21:27:40 +0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (40.92.23.44) by DM3NAM03FT055.mail.protection.outlook.com (10.152.83.209) 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 21:27:39 +0000 Received: from MW2NAM12FT041.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::53) by MW2NAM12HT196.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.11; Mon, 10 Aug 2020 21:27:38 +0000 Received: from BYAPR02MB4055.namprd02.prod.outlook.com (2a01:111:e400:fc65::4d) by MW2NAM12FT041.mail.protection.outlook.com (2a01:111:e400:fc65::257) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.11 via Frontend Transport; Mon, 10 Aug 2020 21:27:38 +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 21:27:33 +0000 From: Bob Blick To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Mon, 10 Aug 2020 14:27:33 -0700 Subject: Re: [EE] averaging multiple samples to reject AC interference Thread-Topic: [EE] averaging multiple samples to reject AC interference Thread-Index: AQHWb0qAtaM9BhVbvUOM7lgsOkiRlqkxyeN7gAARaEE= Message-ID: References: , <87ebbde6f2952158e80cf62518bc8745@mtlp000083> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <87ebbde6f2952158e80cf62518bc8745@mtlp000083> 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.23.44 as permitted sender) receiver=protection.outlook.com; client-ip=40.92.23.44; helo=NAM12-MW2-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=a6I2qx5EFxR769Un6c1mRnlo8yd2wshZVtGmVkiQ1fo=; b=eMr7BjHnz98I79/NjWoX/rJF+nRVeJwFO3JCQlZRS8fi0rQpBUy4uj/Syenn7bqk/BBH/7q/hoCh0JA0mnWfzNjeOZ9y+Fnn1m+q4Vnc/9wlIdhqZzj8cqHsvIYrTptOBhnWCkaVt9QySFG0FIRIj7VdVZvy5nyLbBw8bvNGCYcb6P3ezY2Aupxnq89/KQeaB8/9rWvE8V5XfMPE12NoA2eXIv+CuXPKBcJjo1J3u1t683hiRI08fgx8q8slEKImuyrw82U+APfBhQZrzslpxdqQ1SXsufha6U0QuT9D5iUox0+5Nf9CwQ5yfX/83nwPXihcqhvOKXOAQg26ihl3Fg== authentication-results: spf=pass (sender IP is 40.92.23.44) 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 07ALS1ee007742 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi Dwayne, That's exactly what I wanted to hear. Thanks! Bob ________________________________________ From: piclist-bounces@mit.edu on behalf of Dwayne= Reid Sent: Monday, August 10, 2020 1:14 PM To: Microcontroller discussion list - Public. Subject: Re: [EE] averaging multiple samples to reject AC interference Hi there, Bob. Old-time Dual-Slope digital meter systems did exactly what you 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 >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 >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 is not conducted interference or power supply >ripple. Shielding is not possible. I only need to process the signal >about 4 or 5 times per second. The signal is changing, so long-term >averaging is bad. Actually any averaging will 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 second period, that should give some improvement at 50Hz and >60Hz without getting too involved, correct? This would fit into my >existing multiplexing constraints. > >I seem to recall being in this situation before but forget what I >did at the 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 .