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; Tue, 19 Oct 2021 19:33:15 -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 19K2LrZa024671; Tue, 19 Oct 2021 22:23:04 -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 19K2LqZK024645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 19 Oct 2021 22:21:52 -0400 Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 19K2Lc5S029065 for ; Tue, 19 Oct 2021 22:21:52 -0400 Received: from oc11expo25.exchange.mit.edu (18.9.4.96) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1497.24; Tue, 19 Oct 2021 22:21:24 -0400 Received: from w92exhyb3.exchange.mit.edu (18.7.71.73) by oc11expo25.exchange.mit.edu (18.9.4.96) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 19 Oct 2021 22:21:36 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.175) by w92exhyb3.exchange.mit.edu (18.7.71.73) with Microsoft SMTP Server (TLS) id 15.0.1497.24 via Frontend Transport; Tue, 19 Oct 2021 22:21:36 -0400 Received: from DM5PR07CA0138.namprd07.prod.outlook.com (2603:10b6:3:13e::28) by BN8PR01MB5524.prod.exchangelabs.com (2603:10b6:408:b8::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Wed, 20 Oct 2021 02:21:31 +0000 Received: from DM6NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:3:13e:cafe::56) by DM5PR07CA0138.outlook.office365.com (2603:10b6:3:13e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Wed, 20 Oct 2021 02:21:31 +0000 Received: from mail-pl1-f177.google.com (209.85.214.177) by DM6NAM11FT035.mail.protection.outlook.com (10.13.172.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Wed, 20 Oct 2021 02:21:30 +0000 Received: by mail-pl1-f177.google.com with SMTP id v20so15038353plo.7 for ; Tue, 19 Oct 2021 19:21:30 -0700 (PDT) Received: from [192.168.1.5] (118-93-175-89.dsl.dyn.ihug.co.nz. [118.93.175.89]) by smtp.gmail.com with ESMTPSA id u23sm521539pfg.162.2021.10.19.19.21.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Oct 2021 19:21:28 -0700 (PDT) From: Brent Brown To: "piclist@mit.edu" Sender: "piclist-bounces@mit.edu" Date: Tue, 19 Oct 2021 19:21:24 -0700 Subject: Re: [EE] Op amp buffer behaviour Thread-Topic: [EE] Op amp buffer behaviour Thread-Index: AdfFWtYwu4jqcR5QRSuKzDVGGAKcGg== Message-ID: <616F7D24.16301.21D40555@brent.eds.co.nz> References: , <616F5D36.16813.21574A2E@brent.eds.co.nz>, 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: eds.co.nz does not designate permitted sender hosts) dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eds-co-nz.20210112.gappssmtp.com; s=20210112; h=from:organization:to:date:mime-version:subject:message-id:priority :in-reply-to:references:content-transfer-encoding :content-description; bh=qfPuZ03EKy0X5QDpUivmGQNHJesuGSfM5ji2aKt7Z/I=; b=QXThUVmZxXGpYu7Cph/uGZk+iQJyu0gTz2l7+QZqpx8q9mZZY1q5FXRBw4FQIhPFzt U9rjAfrzUz12ML5bMMNKiHUkhEa/xM8HeTjBPEhOpQxqKTsZ7qZY5bgg2vuICet3N6w/ FOfKg5LFrHskftcqVgqb8p7rTGj0QWg04C7aaLCZe77JMIn6RqdMnvk3wJI+Ss8Azj0S MRaEwzCUOlLygt5JDUT4fpOHbZ6YOto7pMdSr0JuRkZUjRVuKY7JL4cECXix/nrBKOTr wX6Qam243omdxcjnLRq4AO53vVWsxJzCy2lHiwlGVER9ahZ4zkyyL7mbpaP5a9vpWthU pXHA== authentication-results: spf=none (sender IP is 209.85.214.177) smtp.mailfrom=eds.co.nz; mit.edu; dkim=pass (signature was verified) header.d=eds-co-nz.20210112.gappssmtp.com; mit.edu; dmarc=none action=none header.from=eds.co.nz; 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-received: by 2002:a17:90a:e2c7:: with SMTP id fr7mr4028721pjb.140.1634696489018; Tue, 19 Oct 2021 19:21:29 -0700 (PDT) x-topics: [EE] x-mime-autoconverted: from Quoted-printable to 8bit by PCH.mit.edu id 19K2LqZK024645 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi Neil, Yes, but you're putting the 980Hz square wave into the input of the Op Amp,= first=20 trace, then observing the output, second trace... desiring that to be a buf= fered=20 version of the input? Sorry if I've got this wrong, feel free to correct. T= he slew rate of=20 this Op Amp is typically around 3V/milli-second (seems very slow, but that'= s what=20 the data sheet says). That could explain why you are seeing a very triangul= ar=20 shaped wave at this frequency? A single gate logic part (74HC1Gxx) might do a good job of buffering the sq= uare=20 wave. Brent On 19 Oct 2021 at 20:36, Neil wrote: > I failed to mention that the PWM frequency is 980Hz (IIRC).=A0 The 1.6Hz= =20 > is the RC filter cutoff frequency. >=20 > On 10/19/2021 8:05 PM, Brent Brown wrote: > > Sadly, the datasheet might agree with your scope, see figure 2-31. Sugg= ests the > > part is just not fast enough to accomdate your 1kHz square wave. But pu= tting the > > buffer on the analog side should be fine though. > > > > On 19 Oct 2021 at 19:41, Neil wrote: > > > >> Working on a proof-of-concept, but scratching my head over this. > >> > >> First, I attached an RC filter (fc =3D 1.6Hz) to the output of an Ardu= ino > >> PWM pin.=A0 Got a decent analog voltage and it tracks the PWM duty cyc= le > >> decently.=A0 That will then go into a comparator later for measuring v= oltage. > >> > >> Second, the circuit will really be used on a Teensy and there will be = an > >> isolator on the teensy output pin, so I decided to add a unity-gain > >> buffer (MCP6042) to the (still arduino for now) PWM output pin before > >> the RC filter.=A0 Circuit here... > >> http://orlandorobotbuilders.com/stuff/IVM_Proto_Circuit.png > >> > >> Top image here is the input to the unity-gain op-amp... > >> http://orlandorobotbuilders.com/stuff/IVM_Proto_Scopes.jpg > >> > >> But the behaviour is odd... I expected a clean strong square wave sign= al > >> at the output of the unity-gain buffer op-amp but getting a triangle > >> wave, that's very low voltage up to about 67% duty-cycle (middle image= ), > >> then at about 67% it flips to a higher voltage (bottom image).=A0 A > >> circuit simulator somewhat follows, but I don't understand why.=A0 I > >> expected the output of the buffer would be just like the output of the > >> arduino, just strong/clean.=A0 Not sure what I'm missing here. > >> > >> I see that a basic active op-amp RC filter has the RC components on th= e > >> input side, but the intention of the buffer was to not add any > >> noticeable load to the teensy or isolator (even though R=3D100k). > >> > >> Can anyone explain this to me.=A0 Thanks! > >> > >> > >> --=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 --=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 .