{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "793b4985", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "from scipy.optimize import curve_fit" ] }, { "cell_type": "markdown", "id": "144062d7", "metadata": {}, "source": [ "This is a test circuit to try and calibrate the arudino analog input with a smoother emitter follower voltage buffer. The circuit has two 10K resistors and a 4.7 microFarad capacitors." ] }, { "cell_type": "code", "execution_count": 2, "id": "74b9371f", "metadata": {}, "outputs": [], "source": [ "dp1 = pd.read_csv('datasets/calibrate_IN4001.csv', names=['p3', 'a0', 'a1'])\n" ] }, { "cell_type": "code", "execution_count": 3, "id": "4ac192ec", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
p3a0a1
0000
1100
2278
3377
4400
\n", "
" ], "text/plain": [ " p3 a0 a1\n", "0 0 0 0\n", "1 1 0 0\n", "2 2 7 8\n", "3 3 7 7\n", "4 4 0 0" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dp1.head()" ] }, { "cell_type": "code", "execution_count": 4, "id": "a79657c0", "metadata": {}, "outputs": [], "source": [ "dp1['Vin'] = dp1.p3 * 5 / 255\n", "dp1['Va0'] = dp1.a0 * 5 / 1023\n", "dp1['Va1'] = dp1.a1 * 5 / 1023" ] }, { "cell_type": "code", "execution_count": 5, "id": "30b89a7c", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
VinVa0Va1
2514.9215694.2326490.537634
2524.9411764.2473120.537634
2534.9607844.2717500.537634
2544.9803924.2864130.537634
2555.0000004.3059630.537634
\n", "
" ], "text/plain": [ " Vin Va0 Va1\n", "251 4.921569 4.232649 0.537634\n", "252 4.941176 4.247312 0.537634\n", "253 4.960784 4.271750 0.537634\n", "254 4.980392 4.286413 0.537634\n", "255 5.000000 4.305963 0.537634" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dp2 = dp1.loc[:,'Vin':'Va1']\n", "dp2.tail()" ] }, { "cell_type": "code", "execution_count": 6, "id": "fc3e71e5", "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAEICAYAAAB25L6yAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAutUlEQVR4nO3deXhU5dnH8e+dyb5DAgmEJQnIjmwRBBWDgrig1q11R7FSfa362lp929pqF2utdWu1Cy5F64JL1WJFqSgRAWUJi+wQ9kBC9mWyZ+Z5/zgTCBhICJmcmcz9ua65mJmz3c+E+c0zzzlzjhhjUEop5buC7C5AKaXUiWlQK6WUj9OgVkopH6dBrZRSPk6DWimlfJwGtVJK+TgNanVSRCRTRHLtrsPficgeEZnquf8zEXmxneuZKyK/7djqlK/RoA5AIvKJiPy6hecvF5F8EQk+iXUdDhzVPsaY3xljvm93Hcp3aVAHpleAG0VEjnn+JuB1Y0yjDTXZQiz6PlA+Tf+DBqYPgATgnKYnRKQbMAN4VUTCROQZETnouT0jImHHrkRE/gn0Az4UEaeIPOB5/h1Pz7xcRJaIyPBmyySIyIciUiEiq0TktyKytNn0ISLyqYiUiMg2Efnu8RohIreKyBYRqRSRXSLyg2OmXy4i6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UoLzPG/NQY08cYk4r1Xv7cGHOjzWV5lYhEeXaQIyJRwAVAhx3N5RNBbYxpBJouoLsFeDsQLqArIm8CXwGDRSRXRG6zuyYvOwu4CauHtc5zu9juorysF7BYRL7B6pB8aowJiMPVAkwSsFRE1gMrgY+MMZ901Mp94vA8pZRSx+cTPWqllFLHp0GtlFI+ToNaKaV8nAa1Ukr5OA1qpZTycRrUSinl4zSolVLKx/0/P868NumFxo0AAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "fig, ax = plt.subplots()\n", "ax.plot(dp2.Vin, dp2.Va0, label='$V_R + V_D$')\n", "ax.plot(dp2.Vin, dp2.Va1, label='$V_D$')\n", "\n", "ax.grid()\n", "plt.legend()\n", "plt.title(\"Voltage across diode\")\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": 8, "id": "8337323a", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
VinVa0Va1Id
2514.9215694.2326490.5376340.000370
2524.9411764.2473120.5376340.000371
2534.9607844.2717500.5376340.000373
2544.9803924.2864130.5376340.000375
2555.0000004.3059630.5376340.000377
\n", "
" ], "text/plain": [ " Vin Va0 Va1 Id\n", "251 4.921569 4.232649 0.537634 0.000370\n", "252 4.941176 4.247312 0.537634 0.000371\n", "253 4.960784 4.271750 0.537634 0.000373\n", "254 4.980392 4.286413 0.537634 0.000375\n", "255 5.000000 4.305963 0.537634 0.000377" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dp2['Id'] = (dp2.Va0 - dp2.Va1)/10000\n", "dp2.tail()" ] }, { "cell_type": "code", "execution_count": 9, "id": "4510faf7", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0 0.000000e+00\n", "1 0.000000e+00\n", "2 -4.887586e-07\n", "3 0.000000e+00\n", "4 0.000000e+00\n", " ... \n", "251 3.695015e-04\n", "252 3.709677e-04\n", "253 3.734115e-04\n", "254 3.748778e-04\n", "255 3.768328e-04\n", "Name: Id, Length: 256, dtype: float64" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dp2.Id" ] }, { "cell_type": "code", "execution_count": 11, "id": "b484fb1b", "metadata": { "scrolled": true }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAtC0lEQVR4nO3deXydZZn/8c91zsnWLN2brjQtpNCWpUgoIEoLFK3oUEZW/SmgOB1URh3UEQZkHBQH0cHRn8xofzMIjGBlGZk6lp0GGNa20ALd09ItXdM0bfbkJNfvj3MaTsNpm6Z5cs5Jvu/X67zyLPf9PNdNyrly3/ezmLsjIiLSWSjVAYiISHpSghARkaSUIEREJCklCBERSUoJQkREklKCEBGRpJQgRHqQmf3IzKrMbEcXy7uZnRBf/rWZfb+b5y03s690p67IoShBSJ9mZk+Z2R1Jts8xsx1mFkmyr+NL+yjPdRzwbWCKu4882vrufoO7//Bo64kERQlC+roHgC+YmXXa/kXgIXeP9uC5jgP2uPuuHjymSMooQUhf9wQwFPj4gQ1mNhj4DPDg0R7MzAaa2YNmttvMNpnZbWYWMrNZwLPAaDOrM7P7D1H/u2a23cy2mdmXO+2738x+lLD+V2ZWYWbVZrbAzEYn7LvIzFab2T4z+xVgnY71ZTNbZWZ7zexpMxt/tG0VUYKQPs3dG4FHgGsSNl8Jr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ZdaV9pwuqngXW9GN+xOmz73H2fuw9z9xJ3LyE2h3SJuy9JTbhHrSu/v1EJq5cAq3oxvqOX6lny3vwAFwNriV1pcGt82x3E/hEC5AKPAhXAm8DEVMfcw+07k9i4aD2xntGKVMccQBufA3YCy+KfBamOuYfb9wtgRbxti4CpqY65J9vXqWw5GXQVUxd/f/8U//0tj//+Tkp1zIf76FEbIiKSVH8aYhIRkaOgBCEiIkkpQYiISFJKECIikpQShIiIJKUEIRIwMysxs/fiy9PM7OJUxyTSFUoQIr1rGrFr5UXSXiTVAYhkIjO7C9ji7vfG139A7AbEEcCniD1l9Ufu/oeEOtnEbprKM7OPEbtpagexm9+I1znP3Wt7qx0ih6MehEj3/AG4MmH9SmAXsR7CacAs4KeJj1bw2COgbyf2jopp8eTxHeDr7j4N+DjQ2CvRi3SBEoRIN7j728AIMxttZqcBe4klh9+7e5u77wReJPZ4k8N5BbjHzL4BDPLYY+ZF0oIShEj3PUrsoY5XEetRHDV3vwv4CpAHvGJmJ/VceCLHRglCpPv+QOyJnZcTSxYvA1eZWdjMhgPnEXvoY6JaYo+1BsDMjnf3d939J8SeBqoEIWlDCUKkm9x9BbEv+0p33w78EXiH2JM6XwD+zt13dKq2CJgSf2H9VcC3zOw9M3sHaCWz3oAnfZye5ioiIkmpByEiIkkpQYiISFJKECIikpQShIiIJKUEISIiSSlBiIhIUkoQIiKS1P8H7fLnEGsBoEQAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "fig, ax = plt.subplots()\n", "ax.plot(dp2.Va1, dp2.Id*1000)\n", "ax.grid()\n", "plt.title(\"V-I of diode\")\n", "plt.xlabel ('volts')\n", "plt.ylabel('mA')\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": 12, "id": "eaddb369", "metadata": {}, "outputs": [], "source": [ "def f(x, a,b):\n", " y = a*(np.exp(b*x)-1)\n", " return y" ] }, { "cell_type": "code", "execution_count": 13, "id": "bf4db354", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array([6.16074402e-07, 1.61169647e-06])" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "f(np.array([0.2, 0.4]), 1e-6, 2.4)" ] }, { "cell_type": "code", "execution_count": 14, "id": "debe61d5", "metadata": {}, "outputs": [], "source": [ "popt, pcov = curve_fit(f, dp2.Va1, dp2.Id)" ] }, { "cell_type": "code", "execution_count": 15, "id": "339ac841", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array([2.10076765e-09, 2.24282822e+01])" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "popt" ] }, { "cell_type": "code", "execution_count": 16, "id": "20a9afd4", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.04458656224148477" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "1/popt[1]" ] }, { "cell_type": "code", "execution_count": 17, "id": "e531f999", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array([[ 6.90340285e-20, -6.26250318e-11],\n", " [-6.26250318e-11, 5.68605673e-02]])" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pcov" ] }, { "cell_type": "code", "execution_count": 18, "id": "818c62f5", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.00015581589671406038" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "f(0.5, *popt)" ] }, { "cell_type": "code", "execution_count": 19, "id": "367b15f3", "metadata": { "scrolled": true }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAxo0lEQVR4nO3dd5xU5bnA8d8zs72zS28uKFUpLouCWLBjw0aCLUUTjdwYk5tqEmO85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ll13GqFGjKC4uZvjw4S630hgTdXtWO9/5x0dsFXHxrKGuIDU1lVdffbXFeRdddNEh40OHDmXFihWHTFu0aFHT8H333QdA9+7def/991uss6qq6ljCNcbEio3zne/jz47YKuLmERPGGBOXNjUmgnMitgpLBMYY05VtnOd8F54RsVVYIjDGmK5MnSsKScuJ2CosERhjTBf18fbyqKzHEoExxnRR33vh46isxxKBMcZ0UbnBCmcgJbJPG7ZE0AWVlJRw6aWXAs4NZvfee+8Ry5aXl/PYY4+1ex133303v/nNbzocozEm8ooCy52BwZMjuh5LBFEUCATavczUqVO5444jvtOnw4nAGNP1jWtY7gxE8B4CsETQabZs2cLw4cO5/vrrGTFiBNOmTaOmpobCwkJ+9KMfUVRUxAsvvMDcuXOZOHEiRUVFfOELX2i6Mey1115j+PDhFBUV8Y9//KOp3qeffprbbrsNgN27d3PllVcyZswYxowZw8KFC7njjjvYuHEjY8eO5c477wTg/vvvZ/z48YwePZqf//znTXX98pe/ZOjQoZx++umsW7cuilvHGNMRRQ2hcwQRvIcA4vHO4lfvgF2ftDgrPdAA3g40ufcouOjI3TON1q1bx1NPPcWkSZO46aabmn6pFxQUsGzZMvbt28dVV13Fm2++SWZmJvfddx8PPPAAP/zhD7n55puZN28eJ5xwAtOnT2+x/ttvv52zzjqLF198kUAgQFVVFffeey8rV65k+fLlVFZWMnfuXNavX8+HH36IqjJ16lQWLFhAZmYms2fPZvny5TQ0NFBUVMS4cePavy2MMVHTU/c5A/mDI7qe+EsELhowYACTJk0C4IYbbuChhx4CaNqxL1q0iNWrVzeV8fl8TJw4kbVr1zJo0CCGDBnStOzMmTMPq3/evHnMmjULAK/XS25uLgcOHDikzNy5c5k7d27TOwWqqqpYv349lZWVXHnllWRkZABOl5MxputpCARZtq2c8hofF0RpnfGXCI7yy702go+hBppeGNN8vPEhcqrK+eefz7PPPntIueXLl3daDKrKj3/8Y77xjW8cMv23v/1tp63DGBM5v3tnM/e95jy+fktadNZp5wg60bZt25oeEvfMM89w+umnHzJ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Cf7+PQ3+/4W7H3NrHHjFhjDEJLh67howxxrSDJQJjjElwlgiMMSbBWSIwxpgEZ4nAGGMSnCUCYzqJiBSKyMrQ8FgRudjtmIxpC0sExkTGWJzrzY3p8pLcDsCYrkxE7gW2q+qjofG7cW7U6wlchPNk0P9W1efClknBucEoXUROx7nBaBfOjWKEljlTVSuj1Q5jjsaOCIw5uueAL4aNfxHYg/OLfwxwHnB/+GMF1Hk88V0470kYG0oS3we+qapjgTOA2qhEb0wbWCIw5ihU9SOgp4j0FZExwAGcJPCsqgZUdTfwNs5jPY7mPeABEbkdyFPn8efGdAmWCIxp3Qs4DyecjnOE0G6qei/wdSAdeE9EhndeeMYcG0sExrTuOZynTE7DSQrvANNFxCsiPYAzcR5eGK4S55HLAIjI8ar6iareh/MES0sEpsuwRGBMK1R1Fc5OfYeq7gReBFbgPF1yHvBDVd3VbLH5wMjQy8unA98RkZUisgLwE1tvVTNxzp4+aowxCc6OCIwxJsFZIjDGmARnicAYYxKcJQJjjElwlgiMMSbBWSIwxpgEZ4nAGGMS3P8D6js+yCHfTP8AAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "fig, ax = plt.subplots()\n", "ax.plot(dp2.Va1, dp2.Id*1000, label='actual')\n", "ax.plot(dp2.Va1, f(dp2.Va1, *popt)*1000, label='predicted')\n", "ax.grid()\n", "plt.title(\"V-I of IN4148 diode\")\n", "plt.xlabel ('volts')\n", "plt.ylabel('mA')\n", "ax.legend()\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": null, "id": "67188974", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 5 }