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:26:07 -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 18OMGXBL021438; Fri, 24 Sep 2021 18:17:11 -0400 Received: from outgoing-exchange-5.mit.edu (OUTGOING-EXCHANGE-5.MIT.EDU [18.9.28.59]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 18OMGVbv021435 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 24 Sep 2021 18:16:32 -0400 Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-5.mit.edu (8.14.7/8.12.4) with ESMTP id 18OMGIJG010984 for ; Fri, 24 Sep 2021 18:16:31 -0400 Received: from w92expo10.exchange.mit.edu (18.7.74.64) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Sep 2021 18:16:13 -0400 Received: from oc11exhyb1.exchange.mit.edu (18.9.1.60) by w92expo10.exchange.mit.edu (18.7.74.64) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 24 Sep 2021 18:16:22 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) by oc11exhyb1.exchange.mit.edu (18.9.1.60) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Fri, 24 Sep 2021 18:16:22 -0400 Received: from BN9PR03CA0080.namprd03.prod.outlook.com (2603:10b6:408:fc::25) by BL0PR01MB4436.prod.exchangelabs.com (2603:10b6:208:36::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.18; Fri, 24 Sep 2021 22:16:16 +0000 Received: from BN8NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fc:cafe::bf) by BN9PR03CA0080.outlook.office365.com (2603:10b6:408:fc::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15 via Frontend Transport; Fri, 24 Sep 2021 22:16:16 +0000 Received: from mail-1.ca.inter.net (208.85.220.69) by BN8NAM11FT019.mail.protection.outlook.com (10.13.176.158) with Microsoft SMTP Server id 15.20.4544.13 via Frontend Transport; Fri, 24 Sep 2021 22:16:15 +0000 Received: from mp-mx11.ca.inter.net (mp-mx11.ca.inter.net [208.85.217.19]) by mail-1.ca.inter.net (Postfix) with ESMTP id D2EB42EAA8E for ; Fri, 24 Sep 2021 18:16:14 -0400 (EDT) Received: from mail-1.ca.inter.net ([208.85.220.69]) by mp-mx11.ca.inter.net (mp-mx11.ca.inter.net [208.85.217.19]) (amavisd-new, port 10024) with ESMTP id Nlx4E9P_oJvH for ; Fri, 24 Sep 2021 18:16:14 -0400 (EDT) Received: from KA-2016.interlog.com (cpe688f2e2f19d3-cm688f2e2f19d0.cpe.net.cable.rogers.com [99.245.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: speff@interlog.com) by mail-1.ca.inter.net (Postfix) with ESMTPSA id 6CB2A2EA1AC for ; Fri, 24 Sep 2021 18:16:14 -0400 (EDT) From: Spehro Pefhany To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Fri, 24 Sep 2021 15:16:12 -0700 Subject: Re: [EE] Generating a +/-10V signal Thread-Topic: [EE] Generating a +/-10V signal Thread-Index: AdexkytoASbYIJnwS52iMVOFCKU9dw== Message-ID: <7.0.0.16.2.20210924181148.115d0680@interlog.com> References: <25c1a7f7-0883-c217-c581-73472e436ac2@narwani.org> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <25c1a7f7-0883-c217-c581-73472e436ac2@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 interlog.com designates 208.85.220.69 as permitted sender) receiver=protection.outlook.com; client-ip=208.85.220.69; helo=mail-1.ca.inter.net; 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=ITGpa+lcTZ36MxZl1HwbtBNnIRdKtgB3QDtgVjeNKtE=; b=euHq43Bb+7cmo83rcM+7qcqrYeMUr6plGslDD6SRssWwoLm++LPRbUeV0zR9p4IXYRz5rh8NkNyUr/7NR0fAXMEI/Mp7kQM1S/JlpFUt08XW9GutG/0nGoowzTvmc/HpreMOnnYi7ncHgRYMEjmnFoUtTerMrJiwjxNWwcX//iI= authentication-results: spf=pass (sender IP is 208.85.220.69) smtp.mailfrom=interlog.com; mit.edu; dkim=none (message not signed) header.d=none;mit.edu; dmarc=bestguesspass action=none header.from=interlog.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 18OMGVbv021435 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 At 04:17 PM 24-09-2021, you wrote: >What's a simple way to get +/-10V from a=20 >microcontroller?=C2 This +/-10V signal will go=20 >into a motor driver, so it does not need to be=20 >precise. And it may even be a +/-5V signal, but=20 >the concept will stay the same. Cheers, -Neil.=20 >-- http://www.piclist.com/techref/piclist PIC/SX=20 >FAQ & list archive View/change your membership=20 >options at http://mailman.mit.edu/mailman/listinfo/piclist Here is probably the simplest method if you you have +/- supplies available= .. Ideally you'd have more than +/-10 to get +/-10=20 out (also allowing the use of a cheaper op-amp), but if you use a RR output op-amp you can get close. https://i.imgur.com/2MekTq7.jpg This uses the +5V supply to offset the output,=20 which makes sense if you're using PWM from the 5V supply. If you have precision=20 DAC with an independent reference you'd want to use something better than the supply to offset. Resistors are standard E96 1% values. Best regards, Spehro Pefhany =20 --=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 .