summaryrefslogtreecommitdiff
path: root/Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb
diff options
context:
space:
mode:
authorPrashant S2020-04-14 10:25:32 +0530
committerGitHub2020-04-14 10:25:32 +0530
commit06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch)
tree2b1df110e24ff0174830d7f825f43ff1c134d1af /Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb
parentabb52650288b08a680335531742a7126ad0fb846 (diff)
parent476705d693c7122d34f9b049fa79b935405c9b49 (diff)
downloadall-scilab-tbc-books-ipynb-master.tar.gz
all-scilab-tbc-books-ipynb-master.tar.bz2
all-scilab-tbc-books-ipynb-master.zip
Merge pull request #1 from prashantsinalkar/masterHEADmaster
Initial commit
Diffstat (limited to 'Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb')
-rw-r--r--Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb101
1 files changed, 101 insertions, 0 deletions
diff --git a/Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb b/Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb
new file mode 100644
index 0000000..c9c30a7
--- /dev/null
+++ b/Integrated_Circuits_by_S_Sharma/6-Sinusoidal_Oscillators.ipynb
@@ -0,0 +1,101 @@
+{
+"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 6: Sinusoidal Oscillators"
+ ]
+ },
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 6.3: Frequency_of_oscillaitor.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"// Exa 6.3\n",
+"clc;\n",
+"clear;\n",
+"close;\n",
+"// Given data\n",
+"R3 = 6;// in k ohm\n",
+"R4 = 2;// in k ohm\n",
+"A = 1+(R3/R4);\n",
+"if A>3 then\n",
+" disp('The circuit will work as the oscillator')\n",
+"end\n",
+"R = 5.1;// in k ohm\n",
+"R = R * 10^3;// in ohm\n",
+"C = 0.001;// in µF\n",
+"C = C * 10^-6;// in F\n",
+"f = 1/(2*%pi*R*C);// in Hz\n",
+"f = f * 10^-3;// in kHz\n",
+"disp(f,'The frequency of oscillations in kHz is');"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 6.4: Wien_Bridge_Oscillator.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"// Exa 6.4\n",
+"clc;\n",
+"clear;\n",
+"close;\n",
+"// Given data\n",
+"C = 0.05;// in µF\n",
+"C = C * 10^-6;// in F\n",
+"f = 1;// in kHz\n",
+"f = f * 10^3;// in Hz\n",
+"R = 1/(2*%pi*f*C);// in ohm\n",
+"R = R * 10^-3;// in k ohm\n",
+"disp(R,'The value of R1 and R2 in kΩ is');\n",
+"R4 = 10;// in k ohm\n",
+"disp(R4,'The value of R3 in kΩ is');\n",
+"R3 = 2*R4;// in k ohm\n",
+"disp(R3,'The value of R4 in kΩ is');"
+ ]
+ }
+],
+"metadata": {
+ "kernelspec": {
+ "display_name": "Scilab",
+ "language": "scilab",
+ "name": "scilab"
+ },
+ "language_info": {
+ "file_extension": ".sce",
+ "help_links": [
+ {
+ "text": "MetaKernel Magics",
+ "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
+ }
+ ],
+ "mimetype": "text/x-octave",
+ "name": "scilab",
+ "version": "0.7.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}