Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #407614 > unrolled thread
| Started by | Fibo <panfilero@gmail.com> |
|---|---|
| First post | 2016-04-14 20:18 -0700 |
| Last post | 2016-04-24 14:43 -0700 |
| Articles | 20 on this page of 59 — 17 participants |
Back to article view | Back to sci.electronics.design
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
Page 1 of 3 [1] 2 3 Next page →
| From | Fibo <panfilero@gmail.com> |
|---|---|
| Date | 2016-04-14 20:18 -0700 |
| Subject | 1/x function with op amps or multiplier or something else... |
| Message-ID | <fd3b40d7-fc7e-4890-91b7-90fb80be5382@googlegroups.com> |
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 (which should give me an output of (-2.5 to -0.5). All DC values. Can anyone point me in the right direction here, I'm trying to do this with as few parts (no microcontroller) and as painlessly as possible, it doesn't have to be very accurate (2-5% error it ok). Much Thanks!
[toc] | [next] | [standalone]
| From | omnilobe@gmail.com |
|---|---|
| Date | 2016-04-14 20:44 -0700 |
| Message-ID | <6ac08864-15fd-47c5-82e4-9f9a1e2604bf@googlegroups.com> |
| In reply to | #407614 |
Use a diode with exponential current vs voltage. Input a current to the diode and measure the voltage to get a log function. Then a derivative of ln(x) = 1/x
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <tim@seemywebsite.com> |
|---|---|
| Date | 2016-04-14 23:21 -0500 |
| Message-ID | <O_KdnU2CifvA8Y3KnZ2dnUU7-fOdnZ2d@giganews.com> |
| In reply to | #407615 |
On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: > Use a diode with exponential current vs voltage. Input a current to the > diode and measure the voltage to get a log function. Then a derivative > of ln(x) = 1/x But how do you take the derivative of ln(x)? -- www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2016-04-15 10:24 -0400 |
| Message-ID | <eu6dnRxNlJMaZI3KnZ2dnUU7-R2dnZ2d@supernews.com> |
| In reply to | #407618 |
On 04/15/2016 12:21 AM, Tim Wescott wrote: > On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: > >> Use a diode with exponential current vs voltage. Input a current to the >> diode and measure the voltage to get a log function. Then a derivative >> of ln(x) = 1/x > > But how do you take the derivative of ln(x)? > Put a small dither on it, and measure the AC gain. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Date | 2016-04-15 13:01 -0500 |
| Message-ID | <xdGdnTQxP7AYsYzKnZ2dnUU7-X-dnZ2d@giganews.com> |
| In reply to | #407660 |
On Fri, 15 Apr 2016 10:24:07 -0400, Phil Hobbs wrote: > On 04/15/2016 12:21 AM, Tim Wescott wrote: >> On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: >> >>> Use a diode with exponential current vs voltage. Input a current to >>> the diode and measure the voltage to get a log function. Then a >>> derivative of ln(x) = 1/x >> >> But how do you take the derivative of ln(x)? >> >> > Put a small dither on it, and measure the AC gain. I thought of that, but could not figure out a succinct explanation. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | omnilobe@gmail.com |
|---|---|
| Date | 2016-04-15 08:57 -0700 |
| Message-ID | <c59c5ed3-94af-4609-bdaf-bf3dc58a2f55@googlegroups.com> |
| In reply to | #407618 |
On Thursday, April 14, 2016 at 6:21:54 PM UTC-10, Tim Wescott wrote: > On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: > > > Use a diode with exponential current vs voltage. Input a current to the > > diode and measure the voltage to get a log function. Then a derivative > > of ln(x) = 1/x > > But how do you take the derivative of ln(x)? > > -- > www.wescottdesign.com The derivative of ln(volts) is done with an op amp differentiation circuit. Op amps can make intagrators and differentiators to do calculus using capacitor feedback and series circuits. That is a standard op amp functional product.
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Date | 2016-04-15 13:03 -0500 |
| Message-ID | <xdGdnTcxP7B7sYzKnZ2dnUU7-X-dnZ2d@giganews.com> |
| In reply to | #407666 |
On Fri, 15 Apr 2016 08:57:26 -0700, omnilobe wrote: > On Thursday, April 14, 2016 at 6:21:54 PM UTC-10, Tim Wescott wrote: >> On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: >> >> > Use a diode with exponential current vs voltage. Input a current to >> > the diode and measure the voltage to get a log function. Then a >> > derivative of ln(x) = 1/x >> >> But how do you take the derivative of ln(x)? >> >> -- >> www.wescottdesign.com > > The derivative of ln(volts) is done with an op amp differentiation > circuit. Op amps can make intagrators and differentiators to do calculus > using capacitor feedback and series circuits. That is a standard op amp > functional product. My GOD! Why didn't I think of that?!?!?!?!?! Maybe it's because an op-amp differentiation circuit takes the derivative IN TIME, and what you're suggesting something that needs the derivative taken OF THE VOLTAGE RESPONSE. Which is a different thing. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> |
|---|---|
| Date | 2016-04-15 11:08 -0700 |
| Message-ID | <neb2hb583ma3atc3dnti2j2sqp9gsqfmdh@4ax.com> |
| In reply to | #407689 |
On Fri, 15 Apr 2016 13:03:18 -0500, Tim Wescott
<seemywebsite@myfooter.really> wrote:
>On Fri, 15 Apr 2016 08:57:26 -0700, omnilobe wrote:
>
>> On Thursday, April 14, 2016 at 6:21:54 PM UTC-10, Tim Wescott wrote:
>>> On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote:
>>>
>>> > Use a diode with exponential current vs voltage. Input a current to
>>> > the diode and measure the voltage to get a log function. Then a
>>> > derivative of ln(x) = 1/x
>>>
>>> But how do you take the derivative of ln(x)?
>>>
>>> --
>>> www.wescottdesign.com
>>
>> The derivative of ln(volts) is done with an op amp differentiation
>> circuit. Op amps can make intagrators and differentiators to do calculus
>> using capacitor feedback and series circuits. That is a standard op amp
>> functional product.
>
>My GOD! Why didn't I think of that?!?!?!?!?!
>
>Maybe it's because an op-amp differentiation circuit takes the derivative
>IN TIME, and what you're suggesting something that needs the derivative
>taken OF THE VOLTAGE RESPONSE. Which is a different thing.
Sno-o-o-ort ;-)
Back to serious... the OP indicated fairly sloppy tolerance... why not
simply a PWL fit?
...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
The touchstone of liberalism is intolerance
[toc] | [prev] | [next] | [standalone]
| From | Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> |
|---|---|
| Date | 2016-04-15 12:01 -0700 |
| Message-ID | <0ge2hb529r23e2dpvvc42inq7r82kj76rl@4ax.com> |
| In reply to | #407692 |
On Fri, 15 Apr 2016 11:08:12 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>On Fri, 15 Apr 2016 13:03:18 -0500, Tim Wescott
><seemywebsite@myfooter.really> wrote:
>
>>On Fri, 15 Apr 2016 08:57:26 -0700, omnilobe wrote:
>>
>>> On Thursday, April 14, 2016 at 6:21:54 PM UTC-10, Tim Wescott wrote:
>>>> On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote:
>>>>
>>>> > Use a diode with exponential current vs voltage. Input a current to
>>>> > the diode and measure the voltage to get a log function. Then a
>>>> > derivative of ln(x) = 1/x
>>>>
>>>> But how do you take the derivative of ln(x)?
>>>>
>>>> --
>>>> www.wescottdesign.com
>>>
>>> The derivative of ln(volts) is done with an op amp differentiation
>>> circuit. Op amps can make intagrators and differentiators to do calculus
>>> using capacitor feedback and series circuits. That is a standard op amp
>>> functional product.
>>
>>My GOD! Why didn't I think of that?!?!?!?!?!
>>
>>Maybe it's because an op-amp differentiation circuit takes the derivative
>>IN TIME, and what you're suggesting something that needs the derivative
>>taken OF THE VOLTAGE RESPONSE. Which is a different thing.
>
>Sno-o-o-ort ;-)
>
>Back to serious... the OP indicated fairly sloppy tolerance... why not
>simply a PWL fit?
>
> ...Jim Thompson
Like this...
<http://www.analog-innovations.com/SED/PWL_Fit_to_OneOverV_2016-04-15_11-55-53.png>
Bunch of OpAmps and resistors and diodes _but_ it's stable.
...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
The touchstone of liberalism is intolerance
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Date | 2016-04-15 14:03 -0500 |
| Message-ID | <_p6dnYz74PaRpozKnZ2dnUU7-QOdnZ2d@giganews.com> |
| In reply to | #407692 |
On Fri, 15 Apr 2016 11:08:12 -0700, Jim Thompson wrote: > On Fri, 15 Apr 2016 13:03:18 -0500, Tim Wescott > <seemywebsite@myfooter.really> wrote: > >>On Fri, 15 Apr 2016 08:57:26 -0700, omnilobe wrote: >> >>> On Thursday, April 14, 2016 at 6:21:54 PM UTC-10, Tim Wescott wrote: >>>> On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: >>>> >>>> > Use a diode with exponential current vs voltage. Input a current to >>>> > the diode and measure the voltage to get a log function. Then a >>>> > derivative of ln(x) = 1/x >>>> >>>> But how do you take the derivative of ln(x)? >>>> >>>> -- >>>> www.wescottdesign.com >>> >>> The derivative of ln(volts) is done with an op amp differentiation >>> circuit. Op amps can make intagrators and differentiators to do >>> calculus using capacitor feedback and series circuits. That is a >>> standard op amp functional product. >> >>My GOD! Why didn't I think of that?!?!?!?!?! >> >>Maybe it's because an op-amp differentiation circuit takes the >>derivative IN TIME, and what you're suggesting something that needs the >>derivative taken OF THE VOLTAGE RESPONSE. Which is a different thing. > > Sno-o-o-ort ;-) > > Back to serious... the OP indicated fairly sloppy tolerance... why not > simply a PWL fit? > > ...Jim Thompson d'oh. Just when I'm starting to convince myself that I'm clever... -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tiwill@seventransistorlabs.com> |
|---|---|
| Date | 2016-04-16 16:32 -0500 |
| Message-ID | <neuase$c0f$1@dont-email.me> |
| In reply to | #407689 |
"Tim Wescott" <seemywebsite@myfooter.really> wrote in message news:xdGdnTcxP7B7sYzKnZ2dnUU7-X-dnZ2d@giganews.com... > My GOD! Why didn't I think of that?!?!?!?!?! > > Maybe it's because an op-amp differentiation circuit takes the derivative > IN TIME, and what you're suggesting something that needs the derivative > taken OF THE VOLTAGE RESPONSE. Which is a different thing. So? Convert voltage into time: - Create a periodic log ramp. Start with a sawtooth oscillator, make it linear, and feed that ramp to a log amp. Then take the derivative. - Meanwhile, compare the input voltage to the ramp. This generates a delayed rising edge. - Trigger a S&H by the edge. You now have a sampled 1/x function, with variable sampling proportional to the input. Simply run it fast enough that you don't mind the steps from the S&H. All told, this only needs a dual comparator, a quad op-amp, and a handful of transistors (a CCS, something for the log, and maybe a sampling JFET or analog switch), not too terrible. :-) Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com
[toc] | [prev] | [next] | [standalone]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2016-04-15 19:12 -0700 |
| Message-ID | <044705ea-96d2-4cf5-95f8-18046087c14b@googlegroups.com> |
| In reply to | #407666 |
On Friday, April 15, 2016 at 8:57:32 AM UTC-7, omni...@gmail.com wrote: > On Thursday, April 14, 2016 at 6:21:54 PM UTC-10, Tim Wescott wrote: > > On Thu, 14 Apr 2016 20:44:56 -0700, omnilobe wrote: > > > > > Use a diode with exponential current vs voltage. Input a current to the > > > diode and measure the voltage to get a log function. Then a derivative > > > of ln(x) = 1/x > > But how do you take the derivative of ln(x)? > The derivative of ln(volts) is done with an op amp differentiation circuit. Op amps can make intagrators and differentiators to do calculus using capacitor feedback That's not a d/dx, it's a d/dt derivative. It works only on TIME. So, you need a ramp generator with a constant dx/dt... and some sample/hold trickery.
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <tim@seemywebsite.com> |
|---|---|
| Date | 2016-04-14 23:24 -0500 |
| Message-ID | <O_KdnUyCifts8Y3KnZ2dnUU7-fMAAAAA@giganews.com> |
| In reply to | #407614 |
On Thu, 14 Apr 2016 20:18:25 -0700, 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 (which > should give me an output of (-2.5 to -0.5). All DC values. > > Can anyone point me in the right direction here, I'm trying to do this > with as few parts (no microcontroller) and as painlessly as possible, it > doesn't have to be very accurate (2-5% error it ok). > > Much Thanks! For a production system that has to work at all temperatures over all possible part variations, a microprocessor may be the most painless thing of all. Either of your proposed methods should work. Beware of temperature variations. Multiplier circuits are compensated. -- www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <tim@seemywebsite.com> |
|---|---|
| Date | 2016-04-14 23:52 -0500 |
| Message-ID | <O_KdnU-Cifvo7o3KnZ2dnUU7-fOdnZ2d@giganews.com> |
| In reply to | #407619 |
On Thu, 14 Apr 2016 23:24:17 -0500, Tim Wescott wrote: > On Thu, 14 Apr 2016 20:18:25 -0700, 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 (which >> should give me an output of (-2.5 to -0.5). All DC values. >> >> Can anyone point me in the right direction here, I'm trying to do this >> with as few parts (no microcontroller) and as painlessly as possible, >> it doesn't have to be very accurate (2-5% error it ok). >> >> Much Thanks! > > For a production system that has to work at all temperatures over all > possible part variations, a microprocessor may be the most painless > thing of all. > > Either of your proposed methods should work. Beware of temperature > variations. Multiplier circuits are compensated. Oh -- forgot to mention. If you feel compelled to roll your own with diodes or whatnot, a transistor with the base shorted to the emitter works better than a diode -- I dunno why, and I don't have a lot of experience, but it's been mentioned to me here before and my own (limited) experience seems to bear it out. -- www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Date | 2016-04-15 12:45 +0300 |
| Message-ID | <neqd18$r9q$1@dont-email.me> |
| In reply to | #407621 |
On 15.4.16 07:52, Tim Wescott wrote: > On Thu, 14 Apr 2016 23:24:17 -0500, Tim Wescott wrote: > >> On Thu, 14 Apr 2016 20:18:25 -0700, 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 (which >>> should give me an output of (-2.5 to -0.5). All DC values. >>> >>> Can anyone point me in the right direction here, I'm trying to do this >>> with as few parts (no microcontroller) and as painlessly as possible, >>> it doesn't have to be very accurate (2-5% error it ok). >>> >>> Much Thanks! >> >> For a production system that has to work at all temperatures over all >> possible part variations, a microprocessor may be the most painless >> thing of all. >> >> Either of your proposed methods should work. Beware of temperature >> variations. Multiplier circuits are compensated. > > Oh -- forgot to mention. If you feel compelled to roll your own with > diodes or whatnot, a transistor with the base shorted to the emitter > works better than a diode -- I dunno why, and I don't have a lot of > experience, but it's been mentioned to me here before and my own > (limited) experience seems to bear it out. A transdiode is a transistor with base shorted to the collector, not emitter. You'll get a diode even with the emitter connection, but with worse performance. -- -TV
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2016-04-15 10:12 -0400 |
| Message-ID | <5710F6B6.6020406@electrooptical.net> |
| In reply to | #407635 |
On 04/15/2016 05:45 AM, Tauno Voipio wrote: > On 15.4.16 07:52, Tim Wescott wrote: >> On Thu, 14 Apr 2016 23:24:17 -0500, Tim Wescott wrote: >> >>> On Thu, 14 Apr 2016 20:18:25 -0700, 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 (which >>>> should give me an output of (-2.5 to -0.5). All DC values. >>>> >>>> Can anyone point me in the right direction here, I'm trying to do this >>>> with as few parts (no microcontroller) and as painlessly as possible, >>>> it doesn't have to be very accurate (2-5% error it ok). >>>> >>>> Much Thanks! >>> >>> For a production system that has to work at all temperatures over all >>> possible part variations, a microprocessor may be the most painless >>> thing of all. >>> >>> Either of your proposed methods should work. Beware of temperature >>> variations. Multiplier circuits are compensated. >> >> Oh -- forgot to mention. If you feel compelled to roll your own with >> diodes or whatnot, a transistor with the base shorted to the emitter >> works better than a diode -- I dunno why, and I don't have a lot of >> experience, but it's been mentioned to me here before and my own >> (limited) experience seems to bear it out. > > > A transdiode is a transistor with base shorted to the collector, not > emitter. You'll get a diode even with the emitter connection, but with > worse performance. > A diode-connected transistor is actually the world's simplest feedback amplifier. V_CE adjusts itself to be exactly what V_BE has to be in order to draw the exact amount of collector current applied. That's why they're such accurate logging devices. They work great at low frequency and decent current levels, but even a 5 GHz transistor like the BFT25A will run out of bandwidth when you get down to the nanoamps. (I discovered this experimentally.) ;) For the OP's problem, I'd vote for a log-antilog based on a matched quad NPN such as a MAT14 or LM3046 (which is a quint). Of course the input and output are both in volts, so you're really computing Vref**2/Vin. You need two V_BE's derived from Vref (either two diodes in series or one and a 2x amplifier), subtract the Vin one, and then exponentiate the result. It's best to buffer the Vref side with an op amp, because otherwise the variable current on the output side will cause an error. (Same thing on the output of the subtraction..) The tempco goes away to leading order, I think, because the I_S term varies slowly with collector current, and the eV_BE/kT term cancels since the sum of the V_BEs is the same in both branches. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
[toc] | [prev] | [next] | [standalone]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2016-04-15 00:47 -0700 |
| Message-ID | <c16f7679-8e19-4f41-8138-5b77e387deb6@googlegroups.com> |
| In reply to | #407614 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Date | 2016-04-15 13:08 -0500 |
| Message-ID | <xdGdnTYxP7CPs4zKnZ2dnUU7-X-dnZ2d@giganews.com> |
| In reply to | #407630 |
On Fri, 15 Apr 2016 00:47:44 -0700, 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.
Oooh oh! You could make a voltage-to-period converter for input, then a
frequency-to-voltage converter for output.
Could all be done with a 555, or maybe a pair of 'em -- use a PNP
transistor connected as a constant-current source instead of the charging
resistor, with a very fast discharge. Then make a constant-width pulse
(with a second 555) every time the thing pops off. The average voltage
out should be proportional (roughly) to <some constant>/x.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2016-04-16 00:26 -0700 |
| Message-ID | <046b4640-85b7-4d22-ac02-6cc080cdb78f@googlegroups.com> |
| In reply to | #407693 |
On Friday, April 15, 2016 at 11:08:23 AM UTC-7, Tim Wescott wrote: > On Fri, 15 Apr 2016 00:47:44 -0700, whit3rd wrote: > > For a multiplier, one possibility is a variable duty cycle chopper. > Oooh oh! You could make a voltage-to-period converter for input, then a > frequency-to-voltage converter for output. Well, a voltage doubler rectifier (one capacitor, two diodes) into ground is a frequency-current converter, so it only takes that and a transimpedance amp for its load. A ramp-up/reset-at-V oscillator can be made to do the voltage-to-period part. A comparator, one-shot, current source, timing cap will do (can't use the '555 direct, it has the wrong thresholds). Big problem is, with variable frequency, your lowpass filter has to deal with the worst case... which limits the input range. 0,0 V_in wasn't ever gonna work, anyhow.
[toc] | [prev] | [next] | [standalone]
| From | piglet <erichpwagner@hotmail.com> |
|---|---|
| Date | 2016-04-18 08:06 +0100 |
| Message-ID | <nf20r5$jd$1@dont-email.me> |
| In reply to | #407630 |
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
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | sci.electronics.design
csiph-web