Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #408749
| From | piglet <erichpwagner@hotmail.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: 1/x function with op amps or multiplier or something else... |
| Date | 2016-04-23 11:43 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <nffjev$jhn$1@dont-email.me> (permalink) |
| References | <fd3b40d7-fc7e-4890-91b7-90fb80be5382@googlegroups.com> <c16f7679-8e19-4f41-8138-5b77e387deb6@googlegroups.com> <nf20r5$jd$1@dont-email.me> <nf2cvm$7t8$1@dont-email.me> |
On 18/04/2016 11:33, piglet wrote:
> On 18/04/2016 08:06, piglet wrote:
>> On 15/04/2016 08:47, whit3rd wrote:
>>> On Thursday, April 14, 2016 at 8:18:30 PM UTC-7, Fibo wrote:
>>>> Hello,
>>>>
>>>> I'm trying to figure out the best way to go about making a -1/x
>>>> function in hardware. From googling around I see 2 methods,
>>>>
>>>> 1. Inverting log -> Anti-log
>>>> 2. OpAmp with multiplier in the feedback loop
>>>>
>>>> I have +/-5V rails available, and my input is from 0.4V to 2V
>>>
>>> For a multiplier, one possibility is a variable duty cycle chopper.
>>> Start with a '555 with current source pullup (just a grounded-base PNP
>>> transisor
>>> with emitter resistor to +5) to make a sawtooth ('555 powered from GND
>>> and -5V, this
>>> makes a 1.67 Vpp triangle). Attenuate the input signal, 'X', to the
>>> {0, 1V} range and feed
>>> to a comparator, and use the comparator's open-collector output to
>>> chop (shunt
>>> to ground) your other signal, 'Y'.
>>>
>>> After a bit of low-pass filtering, the chopped signal has a value of X
>>> * Y /1.67...
>>>
>>> I'd level-translate the triangle with a blocking capacitor and
>>> ground-clamp
>>> diode, but there's other options.
>>>
>>> This all assumes that your 'X' input, and your 'Y' output signals can
>>> be much
>>> slower than a manageable sawtooth generator. Under 1 kHz would work
>>> fine; over
>>> 1 MHz, means you'd be better off with something else.
>>>
>>
>> Yes, I think the OP said the signals were dc or slow varying so a PWM
>> based multiplier could be a very practical method and avoids all the
>> tempco and matching problems of Vbe based log/exp.
>>
>> piglet
>>
>>
>
> Here is a sketch of the concept I had in mind:
>
> <https://www.dropbox.com/s/jnu9c2x3redhnv3/ReciprocatorPWM.pdf>
>
> If a 2.5V or similar reference is available then the comparator PWM
> maker levels can be referenced to that and a wider duty cycle range
> obtained and less gain needed in the output servo - should improve the
> accuracy.
>
> piglet
Finally made a simulation showing PWM multiplier inside a servo:
Version 4
SHEET 1 1700 680
WIRE 464 -176 464 -192
WIRE 608 -176 464 -176
WIRE 816 -160 704 -160
WIRE 704 -128 704 -160
WIRE 464 -112 464 -176
WIRE 1008 -112 944 -112
WIRE 1152 -112 1072 -112
WIRE 816 -96 816 -160
WIRE 432 -80 320 -80
WIRE 608 -80 608 -96
WIRE 768 -80 608 -80
WIRE 608 -64 608 -80
WIRE 608 -64 512 -64
WIRE -80 -48 -80 -64
WIRE 96 -48 -80 -48
WIRE 400 -48 176 -48
WIRE 432 -48 400 -48
WIRE 1152 -16 1152 -112
WIRE 1232 -16 1152 -16
WIRE -80 16 -80 -48
WIRE 320 16 320 -80
WIRE 320 16 240 16
WIRE 448 16 448 -16
WIRE 448 16 432 16
WIRE 1024 16 1024 -16
WIRE 432 32 432 16
WIRE 816 32 816 -16
WIRE 832 32 816 32
WIRE 944 32 944 -112
WIRE 944 32 912 32
WIRE 992 32 944 32
WIRE 240 48 240 16
WIRE 1152 48 1152 -16
WIRE 1152 48 1056 48
WIRE 464 64 464 -16
WIRE 992 64 960 64
WIRE -80 128 -80 96
WIRE 320 128 320 16
WIRE 608 128 608 -64
WIRE 608 128 560 128
WIRE 400 144 400 -48
WIRE 1024 144 1024 80
WIRE 176 160 -32 160
WIRE 176 176 176 160
WIRE 128 192 48 192
WIRE 960 208 960 64
WIRE 1232 208 1232 176
WIRE 48 224 48 192
WIRE 128 240 80 240
WIRE 816 240 816 32
WIRE 768 256 720 256
WIRE 176 272 176 256
WIRE 320 272 320 208
WIRE 320 272 176 272
WIRE 400 272 400 224
WIRE 400 272 320 272
WIRE 720 272 720 256
WIRE -32 288 -32 160
WIRE 80 304 80 240
WIRE 608 304 608 128
WIRE 608 304 80 304
WIRE 768 304 608 304
WIRE 1232 336 1232 288
WIRE 1280 336 1232 336
WIRE 176 352 176 272
WIRE 80 368 80 304
WIRE 128 368 80 368
WIRE 816 368 816 320
WIRE 1152 368 1152 48
WIRE 1152 368 816 368
WIRE 1232 384 1232 336
WIRE 128 416 80 416
WIRE 80 448 80 416
WIRE 176 448 176 432
WIRE 176 448 80 448
WIRE 176 464 176 448
WIRE 1232 464 1184 464
FLAG -80 128 0
FLAG 1280 336 0
FLAG 1232 176 5P
FLAG 1184 464 5N
FLAG -80 -64 Vin
FLAG 1024 -16 5P
FLAG 464 -192 5P
FLAG 464 64 5N
FLAG 1024 144 5N
FLAG 240 112 0
FLAG 432 32 0
FLAG 560 128 PWM
FLAG 1232 -16 Vout
FLAG 720 272 0
FLAG 704 -128 0
FLAG 768 -32 0
FLAG 960 288 0
FLAG 176 464 0
FLAG 48 224 0
FLAG -32 368 0
SYMBOL voltage -80 0 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value PULSE(2 0.4 10m 100m)
SYMBOL voltage 1232 192 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL voltage 1232 368 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL Comparators\\LT1011 464 -64 R0
SYMATTR InstName U1
SYMBOL Opamps\\LT1001 1024 -16 R0
SYMATTR InstName U2
SYMBOL res 592 -192 R0
SYMATTR InstName R1
SYMATTR Value 4.7k
SYMBOL res 416 240 R180
WINDOW 0 -45 68 Left 2
WINDOW 3 -65 24 Left 2
SYMATTR InstName R2
SYMATTR Value 1meg
SYMBOL res 336 224 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R3
SYMATTR Value 100k
SYMBOL res 192 -64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 33k
SYMBOL cap 224 48 R0
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL cap 1072 -128 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 1n
SYMBOL res 928 16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 330k
SYMBOL sw 816 224 R0
SYMATTR InstName S1
SYMATTR Value AS1
SYMBOL sw 816 -112 R0
WINDOW 3 38 74 Left 2
SYMATTR InstName S2
SYMATTR Value AS2
SYMBOL voltage 960 192 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VrefNegServo
SYMATTR Value -0.4
SYMBOL sw 176 160 R0
SYMATTR InstName S3
SYMATTR Value AS3
SYMBOL sw 176 336 R0
SYMATTR InstName S4
SYMATTR Value AS4
SYMBOL voltage -32 272 R0
WINDOW 0 -151 5 Left 2
WINDOW 3 -74 83 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VrefPosPWM
SYMATTR Value 2.5
TEXT 1104 584 Left 2 ;EPW APR 2016
TEXT 968 528 Left 2 ;PWM -1/x RECIPROCATOR
TEXT -120 504 Left 2 !.tran 120m
TEXT 576 552 Left 2 !.model AS1 SW(Vt=1)
TEXT 576 584 Left 2 !.model AS2 SW(Vt=-1)
TEXT 280 552 Left 2 !.model AS3 SW(Vt=1)
TEXT 280 584 Left 2 !.model AS4 SW(Vt=-1)
TEXT 280 408 Left 2 ;At Vin=2 PWM is 80%
TEXT 280 448 Left 2 ;At Vin=0.4 PWM is 16%
TEXT 280 504 Left 2 ;AS1-4 = 2/3 of HC4053
TEXT 616 408 Left 2 ;For 80% of Vout = -0.4
TEXT 616 448 Left 2 ;For 16% of Vout = -0.4
TEXT 864 408 Left 2 ;then Vout must be -0.5
TEXT 864 448 Left 2 ;then Vout must be -2.5
I am a spice newbie, and hope one of the spice wizards will give tips on
speeding up simulation. I think the servo action makes LT very slow to
converge on a result?
piglet
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
1/x function with op amps or multiplier or something else... Fibo <panfilero@gmail.com> - 2016-04-14 20:18 -0700
Re: 1/x function with op amps or multiplier or something else... omnilobe@gmail.com - 2016-04-14 20:44 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:21 -0500
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 10:24 -0400
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:01 -0500
Re: 1/x function with op amps or multiplier or something else... omnilobe@gmail.com - 2016-04-15 08:57 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:03 -0500
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-15 11:08 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-15 12:01 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 14:03 -0500
Re: 1/x function with op amps or multiplier or something else... "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-04-16 16:32 -0500
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-15 19:12 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:24 -0500
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:52 -0500
Re: 1/x function with op amps or multiplier or something else... Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2016-04-15 12:45 +0300
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 10:12 -0400
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-15 00:47 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:08 -0500
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-16 00:26 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-18 08:06 +0100
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-18 11:33 +0100
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-23 11:43 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 07:05 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-23 16:42 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 08:57 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-23 17:04 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 09:21 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 13:56 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-24 09:09 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-24 06:31 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-24 16:46 +0100
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-24 10:09 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-24 12:02 -0700
Re: 1/x function with op amps or multiplier or something else... George Herold <gherold@teachspin.com> - 2016-04-15 07:12 -0700
Re: 1/x function with op amps or multiplier or something else... bill.sloman@ieee.org - 2016-04-15 18:55 -0700
Re: 1/x function with op amps or multiplier or something else... bill.sloman@ieee.org - 2016-04-15 19:54 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:18 -0700
Re: 1/x function with op amps or multiplier or something else... bitrex <bitrex@de.lete.earthlink.net> - 2016-04-16 14:35 -0400
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:43 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:49 -0700
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-16 11:54 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:54 -0700
Re: 1/x function with op amps or multiplier or something else... Winfield Hill <hill@rowland.harvard.edu> - 2016-04-16 14:45 -0700
Re: 1/x function with op amps or multiplier or something else... bitrex <bitrex@de.lete.earthlink.net> - 2016-04-16 18:32 -0400
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 16:00 -0700
Re: 1/x function with op amps or multiplier or something else... sroberts6328@gmail.com - 2016-04-16 18:07 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 09:06 -0700
Re: 1/x function with op amps or multiplier or something else... Clifford Heath <no.spam@please.net> - 2016-04-23 18:07 +1000
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 08:03 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 09:25 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 10:17 -0700
Re: 1/x function with op amps or multiplier or something else... Fibo <panfilero@gmail.com> - 2016-04-17 12:02 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 12:16 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-18 08:49 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-19 09:07 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 08:30 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-24 12:01 -0700
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-24 14:37 -0700
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-24 14:43 -0700
csiph-web