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; Sun, 13 Dec 2020 15:27:06 -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 0BDNGt9n014937; Sun, 13 Dec 2020 18:18:03 -0500 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 0BDNGs00014933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 13 Dec 2020 18:16:54 -0500 Received: from w92exedge4.exchange.mit.edu (W92EXEDGE4.EXCHANGE.MIT.EDU [18.7.73.16]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 0BDNGroK007505 for ; Sun, 13 Dec 2020 18:16:54 -0500 Received: from w92expo20.exchange.mit.edu (18.7.74.74) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sun, 13 Dec 2020 18:16:46 -0500 Received: from oc11exhyb3.exchange.mit.edu (18.9.1.99) by w92expo20.exchange.mit.edu (18.7.74.74) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sun, 13 Dec 2020 18:16:53 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.109) by oc11exhyb3.exchange.mit.edu (18.9.1.99) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Sun, 13 Dec 2020 18:16:53 -0500 Received: from MW4PR04CA0394.namprd04.prod.outlook.com (2603:10b6:303:80::9) by MN2PR01MB5584.prod.exchangelabs.com (2603:10b6:208:114::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.20; Sun, 13 Dec 2020 23:16:52 +0000 Received: from CO1NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::39) by MW4PR04CA0394.outlook.office365.com (2603:10b6:303:80::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Sun, 13 Dec 2020 23:16:52 +0000 Received: from premium47-1.web-hosting.com (68.65.123.241) by CO1NAM11FT028.mail.protection.outlook.com (10.13.175.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.20 via Frontend Transport; Sun, 13 Dec 2020 23:16:51 +0000 Received: from [172.58.155.223] (port=47975 helo=[192.168.43.105]) by premium47.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1koabe-000HGB-BK; Sun, 13 Dec 2020 18:16:51 -0500 From: Neil To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Sun, 13 Dec 2020 15:16:44 -0800 Subject: Re: [EE] Eliminating external noise through PS Thread-Topic: [EE] Eliminating external noise through PS Thread-Index: AdbRp3kxkem7W9S8SMWsIf8/Mo0rbg== Message-ID: <5FD6A0DC.4010801@narwani.org> References: <5FCFC00E.8040703@narwani.org> <004f01d6cf54$9da13a80$d8e3af80$@functech.com> <5FD3D1E9.8040605@narwani.org> 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: None (protection.outlook.com: narwani.org does not designate permitted sender hosts) dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=narwani.org ; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:Reply-To:To:References:Subject:Sender:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sEhKxtYCmdavTA18KXDjeCQrnjIKn8OJPvKregeUCT4=; b=tG+I1JF/b1IE/AdHSncdB7l1SP Q7JU4rUXUj1HAgGUsxP5E1yrh5mWI3pp4i3Snjk+xfpIm9lcaxPwTwO9qBRhuQFkr1fDyqq/pU/uS 8s0+t/4KtjpuC0JY8rN1S8HoDyV2hWbptls32IdFNy4EIeDLWVypszaAB3tJOQoa7C/Hog9tioqGG EspyKaIvJonmSUjDiCa4c2jiy0lj9b6/sPIHKIPvhIA9giRklRZaAOEwdFKcM9818yxU6E3bRwt4w NMuaL41AiPp+///NiGv4x7qhSNqyXFMjksV9mEeH7oiBkYHmYf4qMpUg8BP6OyJmMNZawmxGoZNWI OQB9wmHA==; authentication-results: spf=none (sender IP is 68.65.123.241) smtp.mailfrom=narwani.org; mit.edu; dkim=pass (signature was verified) header.d=narwani.org;mit.edu; dmarc=bestguesspass action=none header.from=narwani.org; user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 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-source-args: x-source-dir: x-antiabuse: Sender Address Domain - narwani.org x-source: x-authenticated-sender: premium47.web-hosting.com: ca4@narwani.org x-topics: [EE] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I strongly feel so, because in my early tests, I: (a) disconnected one of the pump wires (so the pump wouldn't run), and=20 it was (expectedly) very clean (on the scope). (b) disconnected both of the pump wires and plugged it into the female=20 side of a PC power cord, so the pump ran, but was connected to 120VAC=20 from a different source. Very clean power again. In both cases, all else stayed the same including where the wires were=20 draped, etc. In other tests, I moved the scope, power lines, etc and no change to the=20 noise on the line. Either way, I haven't done my other tests yet since I took the pump with=20 me, so I'll get to those this week. Cheers, -Neil. On 12/11/2020 7:37 PM, Jason White wrote: > Hi Neil, > > This may be a silly question: are you sure that some of these voltage > spikes that you've captured on the scope are not artifacts of your > measurement setup? The loop formed by the ground wire/clip on a scope pro= be > makes a very effective antenna. Maybe your power rail is cleaner than you > think - in which case the true problem might be elsewhere. > > -Jason White > > On Fri, Dec 11, 2020 at 3:11 PM Neil wrote: > >> Sorry, disappeared for a couple days, but some quick answers to >> everything for now, and my next steps: >> >> - Yes I have flyback diodes. Highlighted with yellow here, just above >> the relays... >> http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-06.jpg >> - James & Russell, in that diagram also, I labeled the paths for power. >> The 5V to the relays is pretty much dedicated and 5V is on the top >> layer, and (dedicated) ground for the relays on the bottom layer. But >> yes, it's right up against the AC section, but as many components have >> been removed now, I will push that far away. >> - The 3.3V regulator has been getting a bit warmer than I like, so I >> have been planning to use a buck converter instead. But maybe I should >> run two 3.3V regulators instead? I would think that the buck converter >> would be pass less of the noise through. >> - I ran over there quickly to pick up stuff and tried a crude >> (uncalculated) common-mode choke I made up from stuff I could find. Did >> not make in dent in the noise coming through. >> See here... >> http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-07.jpg >> - I feel like Brent may be correct, that the noise may be coming from >> the relay side. The processor (ESP32) is resetting. I know it's not a >> firmware issue as it had zero crashes with the previous pump. >> >> >> Adding some info: >> The previous pump was a huge AC pump. This new pump is actually DC, but >> there's a bridge rectifier on the wires. So I'm now convinced that the >> noise is coming from brushes. >> I brought the pump with me, and I have a new blank board. My plan is to >> reproduce just enough of the circuit to see the noise, and I can cut and >> re-route traces (the 5V & ground to the relays) to see if helps. >> I will also add a ceramic capacitor to the pump wires (right at the >> pump), and hope that helps. Plus twist the wires. >> >> I'll be back with some results. >> >> Cheers, >> -Neil. >> >> >> >> On 12/10/2020 7:28 PM, FTL wrote: >>> 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 turne= d >>> off. The lack of diode would cause a serious spike in the 5V supply whe= n >> the >>> relay is turned off. >>> >>> 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 >>>> >>>> Hi, >>>> >>>> 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 linea= r >>>> regulator. >>>> A 3.3V microcontroller switches a relay to power a 120VAC pump. >>>> Overview... >>>> http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-00.jpg >>>> >>>> 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 >> the >>>> 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 >>>> >>>> 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. >>>> Changing the power supply from an IRM-10-5 (industrial spec, 200mV >>>> ripple) to MPM-10-5 (medical spec, 100mV ripple), helped reduce the ra= te >>> of >>>> the crashing... but the ripple itself wasn't causing crashing. >>>> >>>> Adding (non-specific size) ferrites to the pump wires, and 120VAC inpu= t >>> 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 b= e >>>> low ESR), then a Pi filter (added 680 uF capacitor), and those barely >> made >>> a >>>> dent. >>>> Eventually I added another 0.1uf capacitor to the output side of the p= i >>> 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 >>>> >>>> FWIW, this is where it ended up... >>>> http://orlandorobotbuilders.com/stuff/SMNoise/20201207-SMN-04.jpg >>>> >>>> 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 >> will >>> take >>>> out most of the noise. >>>> What is the right type of filter to eliminate this noise? >>>> >>>> Cheers, >>>> -Neil. >>>> >>>> -- >>>> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >>>> View/change your membership options at >>>> http://mailman.mit.edu/mailman/listinfo/piclist >> -- >> 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 .