Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

Analog Computer: Math Extension Module

This repository provides a math extension module for analog computing applications. The module provides two absolute value functions, two square-root functions, and one logarithmic value function (base $10$ and $e$) of the input. Each output features an indicator LED that provides visual feedback proportional to the output value.

Front view of the Math Module

Module Schematic

Absolute function(x):$x \rightarrow |x|$

The circuit for the absolute value function incorporates two different designs.

The left circuit is based on individual diodes and represents the classical implementation of an absolute value circuit. This circuit follows the design outlined in the document PRECISION ABSOLUTE VALUE CIRCUITS from BURR-BROWN/TI.

The right circuit is similar but with one important difference: the diodes are replaced with P-channel MOSFETs on a single substrate. This should ensure thermal coupling and closely specifications of the two MOSFETs.

Schematic of the Absolute function circuit

Square-Root function(x):$x \rightarrow \sqrt{x}$

The circuit implementation of the square-root function is based on the feedback principle. A multiplier squares the output signal and feeds it back into an open-loop amplifier to yield the inverse function. The diode in the feedback path ensures that only negative values are allowed at the input; otherwise, the output remains close to zero, preventing overload. For ease of use, an inverter is placed before the input, resulting in the overall transfer function of the module:

$$ \begin{align} f(x) = \begin{cases} \sqrt{x} & \text{if } x > 0 \\ 0 & \text{if } x \le 0 \end{cases} \end{align} $$

This circuit design is based on the schematic and principals presented in the book Analog and Hybrid Computer Programming by Prof. Dr. Bernd Ulmann and the book on the THAT Analog Computer by Michael Koch.

Schematic of the Square-Root function circuit

Logarithmic function(x): $x \rightarrow \mathrm{log}{10}(x)$ and $x \rightarrow \mathrm{log}{e}(x)$

The logarithm function circuit is based on the LOG200 chip from Texas Instruments. The input voltage must be scaled down from $\pm 10 , V$ to the chip's maximum accepted range of $\pm 5 , V$. According to the datasheet, $-5V$ falls within the absolute maximum ratings and will not damage the chip.

The transfer function of the LOG200 chip is

$$ V_\mathrm{LOG} = 250 , mV \cdot \mathrm{log}_{10} \left( \frac{I_1}{I_2} \right) $$

which depends on the ratio of the input currents $I_1$ and $I_2$. The input current $I_2$ is wired to the internal $1 , \mu A$ precision current source. Accordingly, the input voltage has to be scaled using a precision (0.05%) $50k\Omega$ resistor to give the appropriate current $I_1$. Since we want to map the output to the full range of our machine unit, $\pm1$ or $\pm 10 ,V$, a "20x" amplifier is placed after the output of the Voltage $V_\mathrm{LOG}$.

With this scaling, the following input-output relationship is achieved:

InputCurrent $I_1$Output of LOG200Circuit Output
$0.001 , V$$0.01 , \mu A$$-0.5,V$$-10 , V$
$0.01 , V$$0.1 , \mu A$$-0.25,V$$-5 , V$
$0.1 , V$$1 , \mu A$$0,V$$0 , V$
$1 , V$$10 , \mu A$$0.25,V$$5 , V$
$10 , V$$100 , \mu A$$0.5,V$$10 , V$

To additionally compute the natural logarithm $\mathrm{log}_e$, we use the relation:

$$ \mathrm{log}_{e}(x) = \frac{\mathrm{log}_{10}(x)}{\mathrm{log}_{10}(e)} = 2.303 \cdot \mathrm{log}_{10}(x) $$

A simple scaling amplifier with a gain of $0.2303x$ is used to provide the output of $\mathrm{log}_e(x) / 10$.

This circuit design and Input/Output scaling are based on the circuit presented in the book Analog and Hybrid Computer Programming by Prof. Dr. Bernd Ulmann. I took the liberty of replacing the LOG112 with the LOG200 chip and adding the natural logarithm functionality.

Schematic of the Logarithm function circuit

BOM

Main Module:

ReferenceValueFootprintQUANTITY
C1,C2,C14,C1710u1206 / 3216Metric4
C3,C50.33u1206 / 3216Metric2
C4,C6,C9,C10,C15,C16,C19,C20,C22-C25,C27,C281u1206 / 3216Metric14
C7,C810p1206 / 3216Metric2
C11,C1233p1206 / 3216Metric2
C13,C181n1206 / 3216Metric2
C21,C2668p1206 / 3216Metric2
D112V_GREEN1206 / 3216Metric1
D2-12V_RED1206 / 3216Metric1
D3-D6BAT43W-V1206 / 3216Metric4
IC1,IC2AD633SOIC-82
J1Conn_01x23_PinPinHeader_1x23_P2.54mm_Vertical1
J2Conn_02x05_Odd_EvenPinHeader_2x05_P2.54mm_Vertical1
Q1PMV250EPEASOT-231
Q2PMV450ENEASOT-231
R111k21206 / 3216Metric1
R25k61206 / 3216Metric1
R3-R8,R14100k1206 / 3216Metric7
R950k (0.05p)1206 / 3216Metric1
R10,R111M (0.05p)1206 / 3216Metric2
R12,R29-R323k91206 / 3216Metric5
R131M51206 / 3216Metric1
R154.26k1206 / 3216Metric1
R16400k1206 / 3216Metric1
R17,R18,R22-R24,R28100k (0.1p)1206 / 3216Metric6
R19,R20,R25,R261M (0.1p)1206 / 3216Metric4
R21,R2725k (0.1p)1206 / 3216Metric2
RV1100kPotentiometer_Bourns_3296W_Vertical1
RV22kPotentiometer_Bourns_3296W_Vertical1
U1MC7805ACTGTO-220-3_Vertical1
U2MC7905BTGTO-220-3_Vertical1
U3,U4VCAN16A2VCAN16A2-03S-E3-082
U5SI3993CDV-T1-GE3TSOT-23-61
U6,U8-U10TLE2074IDWRSOIC-14_3.9x8.7mm_P1.27mm4
U7LOG200VQFN-161

Middleplate:

ReferenceValueFootprintQUANTITY
D1-D5BI color LEDLED_D3.0mm_FlatTop5
J1Conn_01x23_PinPinSocket_1x23_P2.54mm_Vertical1
U1-U6VCAN16A2VCAN16A2-03S-E3-086

List of special Components:

License

This work is published under the CERN Open Hardware Licence Version 2 - Strongly Reciprocal

About

A math extension module providing the absolute and square-root function of the input

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages