summaryrefslogtreecommitdiff
path: root/OpAmps_And_Linear_Integrated_Circuits_by_Gayakwad/Chapter2.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'OpAmps_And_Linear_Integrated_Circuits_by_Gayakwad/Chapter2.ipynb')
-rw-r--r--OpAmps_And_Linear_Integrated_Circuits_by_Gayakwad/Chapter2.ipynb196
1 files changed, 196 insertions, 0 deletions
diff --git a/OpAmps_And_Linear_Integrated_Circuits_by_Gayakwad/Chapter2.ipynb b/OpAmps_And_Linear_Integrated_Circuits_by_Gayakwad/Chapter2.ipynb
new file mode 100644
index 00000000..129cd7d8
--- /dev/null
+++ b/OpAmps_And_Linear_Integrated_Circuits_by_Gayakwad/Chapter2.ipynb
@@ -0,0 +1,196 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# Chapter 2: Interpretation of Data Sheets and Characteristics of an Op-Amp"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "## Example 2.1_a"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Output voltage is vo 2.4 Volts\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "\n",
+ "#Example 2.1_a\n",
+ "#Determine the Output voltage for open-loop differential amplifier for figure 2_9\n",
+ "\n",
+ "#Variable declaration\n",
+ "vin1=5*10**-6 #input voltage in volts\n",
+ "vin2=-7*10**-6 #input voltage in volts\n",
+ "A=200000 #Voltage gain\n",
+ "\n",
+ "#Calculation\n",
+ "vo=A*(vin1-vin2) #Output voltage in volts\n",
+ "\n",
+ "#Result\n",
+ "print \"Output voltage is vo\",vo,\"Volts\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "## Example 2.1_b"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Output voltage is vo -2000.0 Volts\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "\n",
+ "#Example 2.1_b\n",
+ "#Determine the Output voltage for open-loop differential amplifier for figure 2_9\n",
+ "\n",
+ "#Variable declaration\n",
+ "vin1=10*10**-3 #input voltage in volts\n",
+ "vin2=20*10**-3 #input voltage in volts\n",
+ "A=200000 #Voltage gain\n",
+ "\n",
+ "#Calculation\n",
+ "vo=A*(vin1-vin2) #Output voltage in volts\n",
+ "\n",
+ "#Result\n",
+ "print \"Output voltage is vo\",vo,\"Volts\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 2.2_a"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Output voltage is vo -4000.0 Volts\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "#Example 2.2_a\n",
+ "#Determine the Output voltage for an inverting amplifier for figure 2_10\n",
+ "\n",
+ "#Variable declaration\n",
+ "vin1=20*10**-3 #input voltage in volts\n",
+ "A=200000 #Voltage gain\n",
+ "\n",
+ "#Calculation\n",
+ "vo=-A*(vin1) #Output voltage in volts\n",
+ "\n",
+ "#Result\n",
+ "print \"Output voltage is vo\",vo,\"Volts\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "## Example 2.2_b"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Output voltage is vo 10.0 Volts\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "#Example 2.2_b\n",
+ "#Determine the Output voltage for an inverting amplifier for figure 2_10\n",
+ "\n",
+ "#Variable declaration\n",
+ "vin1=-50*10**-6 #input voltage in volts\n",
+ "A=200000 #Voltage gain\n",
+ "\n",
+ "#Calculation\n",
+ "vo=-A*(vin1) #Output voltage in volts\n",
+ "\n",
+ "#Result\n",
+ "print \"Output voltage is vo\",vo,\"Volts\"\n"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}