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; Thu, 10 Dec 2020 17:29:50 -0800 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 0BB1JRvh030806; Thu, 10 Dec 2020 20:20:42 -0500 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 0BB0T4HY024583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 10 Dec 2020 19:29:04 -0500 Received: from w92exedge4.exchange.mit.edu (W92EXEDGE4.EXCHANGE.MIT.EDU [18.7.73.16]) by outgoing-exchange-7.mit.edu (8.14.7/8.12.4) with ESMTP id 0BB0T1Da010138 for ; Thu, 10 Dec 2020 19:29:04 -0500 Received: from w92expo22.exchange.mit.edu (18.7.74.76) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Thu, 10 Dec 2020 19:29:00 -0500 Received: from oc11exhyb6.exchange.mit.edu (18.9.1.111) by w92expo22.exchange.mit.edu (18.7.74.76) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Thu, 10 Dec 2020 19:29:01 -0500 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) by oc11exhyb6.exchange.mit.edu (18.9.1.111) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Thu, 10 Dec 2020 19:29:01 -0500 Received: from MW4PR04CA0417.namprd04.prod.outlook.com (2603:10b6:303:80::32) by MWHPR01MB2830.prod.exchangelabs.com (2603:10b6:300:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Fri, 11 Dec 2020 00:29:00 +0000 Received: from CO1NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::7) by MW4PR04CA0417.outlook.office365.com (2603:10b6:303:80::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 11 Dec 2020 00:29:00 +0000 Received: from sohsw6.dns77.com (192.99.161.21) by CO1NAM11FT019.mail.protection.outlook.com (10.13.175.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3632.17 via Frontend Transport; Fri, 11 Dec 2020 00:28:59 +0000 Received: from PLATYPUS ([207.228.78.119]) by sohsw6.dns77.com with MailEnable ESMTPA; Thu, 10 Dec 2020 17:29:02 -0700 From: FTL To: 'Microcontroller discussion list - Public.' Sender: "piclist-bounces@mit.edu" Date: Thu, 10 Dec 2020 16:28:56 -0800 Subject: RE: [EE] Eliminating external noise through PS Thread-Topic: [EE] Eliminating external noise through PS Thread-Index: AQH7mRMEoUQuGZgqWvuYKWogKSPv3qmndaIg Message-ID: <004f01d6cf54$9da13a80$d8e3af80$@functech.com> References: <5FCFC00E.8040703@narwani.org> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <5FCFC00E.8040703@narwani.org> Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US Content-Language: en-CA 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: None (protection.outlook.com: functech.com does not designate permitted sender hosts) 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=aE9o/ZIr2800ksWT0/NMLIpmSUaDOEKbJtFssvi62lY=; b=MgMfT1DwOF+KwVMxUREqFrqIrSqYy41OZptAZIIBqXZnYiLKhCbRGNr5QHRhb43Nfl1aIj4zh4yLKzdtTXDfwx2+ouISCzZHzy4Xfnqj4gtNP2T7o8RklU4as69AQbrK2k9UdSLPpdrxHvurNa9ZkplgY1xXojU0WTqB6F2umoc= authentication-results: spf=none (sender IP is 192.99.161.21) smtp.mailfrom=functech.com; mit.edu; dkim=none (message not signed) header.d=none; mit.edu; dmarc=none action=none header.from=functech.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-mailman-approved-at: Thu, 10 Dec 2020 20:19:27 -0500 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 This is almost too obvious, but in the schematic I do not see a flyback diode across the relay to suppress the back EMF when the relay is turned off. The lack of diode would cause a serious spike in the 5V supply when th= e relay is turned off.=20 Is the transistor being turned on hard enough to keep the relay on properly= .. If it is not fully on with no flyback diode, maybe it is occasionally releasing and causing big noise on the 5V bus. > -----Original Message----- > From: piclist-bounces@mit.edu On Behalf Of Neil > Sent: December 8, 2020 11:04 AM > To: Microcontroller discussion list - Public. > Subject: [EE] Eliminating external noise through PS >=20 > Hi, >=20 > I'm working on a device that takes 120VAC, converts to 5VDC with a PCB- > mounted power supply, then further reduces that to 3.3VDC with a linear > regulator. > A 3.3V microcontroller switches a relay to power a 120VAC pump. > Overview... > http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-00.jpg >=20 > All has been great until we switched to a specific pump, which happens to > generate a LOT of conducted noise, which passes through the 5V PS, and th= e > 3.3V regulator, and causing the microcontroller to crash. > I did a bunch of tested and found that the noise is being conducted through > the wires back to the board through the PS, through the linear regulator, and > this is the 3.3V line... > http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-01.jpg >=20 > I was over at someone else's place so did not have a lot of parts with me= , > but... > Adding a bunch more 0.1uf bypass capacitors all over the board did not help. >=20 > Changing the power supply from an IRM-10-5 (industrial spec, 200mV > ripple) to MPM-10-5 (medical spec, 100mV ripple), helped reduce the rate of > the crashing... but the ripple itself wasn't causing crashing. >=20 > Adding (non-specific size) ferrites to the pump wires, and 120VAC input wires > did not help. > I then tried to create a crude/uncalculated LC filter (which whatever > components I had on hand (33uh inductor and 1000uf capacitor, should be > low ESR), then a Pi filter (added 680 uF capacitor), and those barely mad= e a > dent. > Eventually I added another 0.1uf capacitor to the output side of the pi filter > and that helped enough to prevent the microcontroller crashing. > But there is still a lot of noise on the 3.3V line... > http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-02.jpg > http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-03.jpg >=20 > FWIW, this is where it ended up... > http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-04.jpg >=20 > The noise is in the 7Mhz to 30Mhz range (prob even higher). > I feel like smaller, low-ESR ceramic caps should help, but I doubt it wil= l take > out most of the noise. > What is the right type of filter to eliminate this noise? >=20 > Cheers, > -Neil. >=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 --=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 .