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; Fri, 24 Sep 2021 15:20:25 -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 18OMAtKn020551; Fri, 24 Sep 2021 18:11:33 -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 18OMAtJH020548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 24 Sep 2021 18:10:55 -0400 Received: from oc11exedge1.exchange.mit.edu (OC11EXEDGE1.EXCHANGE.MIT.EDU [18.9.3.17]) by outgoing-exchange-7.mit.edu (8.14.7/8.12.4) with ESMTP id 18OMAsEX026298 for ; Fri, 24 Sep 2021 18:10:55 -0400 Received: from oc11expo33.exchange.mit.edu (18.9.4.114) by oc11exedge1.exchange.mit.edu (18.9.3.17) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Sep 2021 18:10:58 -0400 Received: from oc11exhyb7.exchange.mit.edu (18.9.1.112) by oc11expo33.exchange.mit.edu (18.9.4.114) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Sep 2021 18:10:53 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by oc11exhyb7.exchange.mit.edu (18.9.1.112) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Fri, 24 Sep 2021 18:10:53 -0400 Received: from MWHPR15CA0071.namprd15.prod.outlook.com (2603:10b6:301:4c::33) by PH0PR01MB6668.prod.exchangelabs.com (2603:10b6:510:79::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.18; Fri, 24 Sep 2021 22:10:47 +0000 Received: from CO1NAM11FT030.eop-nam11.prod.protection.outlook.com (2603:10b6:301:4c:cafe::c6) by MWHPR15CA0071.outlook.office365.com (2603:10b6:301:4c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Fri, 24 Sep 2021 22:10:46 +0000 Received: from mail-qk1-f170.google.com (209.85.222.170) by CO1NAM11FT030.mail.protection.outlook.com (10.13.174.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Fri, 24 Sep 2021 22:10:46 +0000 Received: by mail-qk1-f170.google.com with SMTP id b65so29397984qkc.13 for ; Fri, 24 Sep 2021 15:10:46 -0700 (PDT) From: Denny Esterline To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Fri, 24 Sep 2021 15:10:34 -0700 Subject: Re: [EE] Generating a +/-10V signal Thread-Topic: [EE] Generating a +/-10V signal Thread-Index: Adexkl/Qe5ZclfpBTVGA9IzQnbjRlw== Message-ID: References: <25c1a7f7-0883-c217-c581-73472e436ac2@narwani.org> <20210924215036.67afd762@raspberry> <1bbe2521-910e-ec84-8a39-606a16f0e379@narwani.org> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <1bbe2521-910e-ec84-8a39-606a16f0e379@narwani.org> 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: Pass (protection.outlook.com: domain of gmail.com designates 209.85.222.170 as permitted sender) receiver=protection.outlook.com; client-ip=209.85.222.170; helo=mail-qk1-f170.google.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=SZzmDuu4YNVokFGlvDHFCvJ7/RKWXtOfCYWYkOhEblU=; b=iGjhaYckUnOwz6kPQrhhghu5a3UrnX2upHftmiYRl/lNf64r98mRoRsOt2jiQo7EYS r5naSsb+A9W1rV+YvmqSb+gEX9F79BnviCPbxwZQHk5RpC4XP8sXRufX4L65/NLFe+nX eMoRIPP+QoNSITA6ek1HuKsb+Y8YJ1VRXSVSq+k6q/Y3Wi/s+6LhaRHhQmZ3f6eyFuwQ /XUl2avPf8GzNYnRtVtKKkgecB0OaLfy+ht1yOKJSbP8TNffLVubQFE5idFQAKdaEN8r /ggxJgBCLeW6duIlAT/R0dAtD+1Jc/9OoYTB92RCJvUU28KyelbD2PTWT8kHKpBv5XVy nStA== authentication-results: spf=pass (sender IP is 209.85.222.170) smtp.mailfrom=gmail.com; mit.edu; dkim=pass (signature was verified) header.d=gmail.com; mit.edu; dmarc=pass action=none header.from=gmail.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-received: by 2002:a37:8747:: with SMTP id j68mr12594301qkd.165.1632521445574; Fri, 24 Sep 2021 15:10:45 -0700 (PDT) x-topics: [EE] x-content-filtered-by: Mailman/MimeDel 2.1.6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Suggest you use the magic incantation "offset and scale schematic" while summoning the great and powerful google. Lots of good results, but one of the first was a TI app note titled: Designing Gain and Offset in Thirty Seconds https://www.ti.com/lit/an/sloa097/sloa097.pdf Lots of ways to do this, but essentially, you'll need two opamps. Set the software controlled output to call 50% a "zero", the first opamp scales that down by 1/2 VCC and the second is a gain stage to get you to +/-10v. -Denny On Fri, Sep 24, 2021 at 2:15 PM Neil wrote: > It's just for the input control signal. > So yes, I can take the output from the microcontroller (I can do a DAC > or PWM w/RC filter to get an analog output from 0V - 5-ishV). > But then if I amplify this with an op-amp, can I offset with an same > op-amp? I'm a bit unclear on what op-amp configuration I need for > offsetting by -10V. > > FWIW, It seems that the driver has a +10V and -10 output, so I can use > that to power the op-amp. > > > > > On 9/24/2021 4:50 PM, Alan Pearce wrote: > > On Fri, 24 Sep 2021 16:17:42 -0400 > > Neil wrote: > > > >> What's a simple way to get +/-10V from a microcontroller? This > >> +/-10V signal will go into a motor driver, so it does not need to be > >> precise. And it may even be a +/-5V signal, but the concept will stay > >> the same. > >> > >> Cheers, > >> -Neil. > >> > > Is this just for biasing or to supply power? > > > > If just to bias something then a voltage multiplier off a PWM output > > would work. > > > > If it needs to generate a voltage that will supply enough power to run > > a motor then you may be able to use a PWM output to supply boost > > convertor circuitry, but frankly I would go searching the various > > manufacturers for boost converter chips. LT/AD certainly have suitable > > devices, and I think TI do as well from the NS line of devices. > > > > > > -- > 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 .