{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# PmodTMP2 Sensor example\n",
    "\n",
    "In this example, the Pmod temperature sensor is initialized and set to log a reading every 1 second. \n",
    "\n",
    "This examples required the PmodTMP2 sensor, and assumed it is attached to PMODB."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 1. Simple TMP2 read() to see current room temperature"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "from pynq import Overlay\n",
    "Overlay(\"base.bit\").download()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "27.9 C\n"
     ]
    }
   ],
   "source": [
    "from pynq.iop import Pmod_TMP2\n",
    "from pynq.iop import PMODB\n",
    "\n",
    "mytmp = Pmod_TMP2(PMODB)\n",
    "temperature = mytmp.read()\n",
    "\n",
    "print(str(temperature) + \" C\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 2. Starting logging temperature once every second"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "mytmp.start_log()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 3. Try to modify temperature reading by touching the sensor\n",
    "\n",
    "The default interval between samples is 1 second. So wait for at least 10 seconds to get enough samples.\n",
    "\n",
    "During this period, try to press finger on the sensor to increase its temperature reading.\n",
    "\n",
    "Stop the logging whenever done trying to change sensor's value."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "mytmp.stop_log()\n",
    "log = mytmp.get_log()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 5. Plot values over time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAEKCAYAAADpfBXhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHGRJREFUeJzt3X+UXWV97/H3J2bhj0QSsNb8kh9O4dbKFVTEYm4XB1lR\nfhXKraVgUk1rXfcubMgSKmgu48yYdRWrrTdqva5GQiDSWkmRcOlViI1HFmggaIJpQhIaQgwTgigo\nTrwqmO/9Yz8zHibnzOyTOTNn5pnPa62zzj57P8/ez54z853nPPs5362IwMzM8jKl3Q0wM7PWc3A3\nM8uQg7uZWYYc3M3MMuTgbmaWIQd3M7MMObibjXOSbpT00Xa3wyYWB3cbNZJ+JunZ9Pi1pJ/XrLtc\nUpekQ5KWDKq3NK3/SHp9Vqr/rKSfSnpY0uK07SRJt0v6oaQfSfqapJOHaNNcSWslPSXpGUnfl/Tu\nUf1BmLWBg7uNmoh4eUQcHRFHA3uBC2rW/VMqthMYHFzfndbX6k31ZgAfAlZK+l1gJrAOOBl4FbAp\nvW5kTWrLq4FXAH8GPHnEJ9likl7U7jZYHhzcbawoPQZ7EHiZpNcCSPo94CUUQbquiFgHPAP8XkRs\niogbI+InEfFr4NPAf5J0TIPqbwZuiohfRMShiHgoIu4aaKT0+5LuS736zZLOqtn2TUkflXRv+hTx\ndUnHpm0vlrQmfXp4RtL9kl6Zts2WtE7SjyXtkvSXNfvsknRrqvsT4D3D/iCl90l6JB3rdkmza7a9\nXdKO1Ia/l1SV9BfD7dPy4+Bu7RYUven+oPYe4Gbq/yNAhUuAGcDWOkXOAp6IiGcaHO87wOcl/amk\nVw/a9xzgTuCjEXEM8NfAv0h6RU2xy1MbXwm8OJXpb/fRwFzgWOC/A/8vbftn4AfALOBPgI9JqtTs\n8yLgKxExE7ilQbv72/g24GPAO4HZab9fTtt+C7gVuJbiU8lO4Myh9mf5cnC38eAW4DJJU4H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Fl8lAdIQxVrgaWpZzv4/cvi/axznlm9p+0O7r3AcTWv56V12YmIJ9LzU8BXKYakcvWkpFfBwPjm\nD9vcnpaLiKfiNxesVgJvHqr8RCFpKkXAWxMR69Lq7N7PeueZ23va7uC+CfgdScdLOgq4DLijzW1q\nOUkvS70EJE0D3g78e3tb1VLihWOVdwCL0/J7gHWDK0xALzjHFOT6/VfyeT9XAdsjYkXNuhzfz8PO\nM7f3tO3fUE3TjVZQ/KO5ISKub2uDRoGkEyl66wFMBW7J5Twl/SNQAV4BPAl0AbcDtwKvBvYCl0bE\nT9rVxpFqcI5nU4zVHgIeA/5b/7j0RCVpPnAPsJXidzWAZcADwFfI5/1sdJ7vIqP3tO3B3czMWq/d\nwzJmZjYKHNzNzDLk4G5mliEHdzOzDDm4m5llyMHdzCxDDu5mZhlycDczy9D/B/5WkbiJAZfNAAAA\nAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x31dc9cb0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "plt.plot(range(len(log)), log, 'ro')\n",
    "plt.title('TMP2 Sensor log')\n",
    "plt.axis([0, len(log), min(log), max(log)])\n",
    "plt.show()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "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.4.3+"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
