Skip to content

Commit

Permalink
add a note to tutorial operating fluopi
Browse files Browse the repository at this point in the history
  • Loading branch information
FernanFederici committed Oct 8, 2017
1 parent 01718eb commit 988523f
Show file tree
Hide file tree
Showing 2 changed files with 274 additions and 21 deletions.
250 changes: 250 additions & 0 deletions Tutorials/.ipynb_checkpoints/FluoPi_control_timelapse-checkpoint.ipynb

Large diffs are not rendered by default.

45 changes: 24 additions & 21 deletions Tutorials/FluoPi_control_timelapse.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,30 @@
"metadata": {},
"source": [
"# Operating FluoPi from python\n",
"\n",
"### This tutorial will only run on your RaspberryPI ###\n",
"First we need to import some modules to control hardware among other useful things."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false,
"scrolled": false
},
"outputs": [],
"outputs": [
{
"ename": "ImportError",
"evalue": "No module named picamera",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-1-03d0032b74ef>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mpicamera\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mPiCamera\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mRPi\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mGPIO\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mGPIO\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mtime\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0msleep\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mtime\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mmatplotlib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpyplot\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mImportError\u001b[0m: No module named picamera"
]
}
],
"source": [
"from picamera import PiCamera\n",
"import RPi.GPIO as GPIO\n",
Expand All @@ -34,9 +47,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stderr",
Expand All @@ -62,9 +73,7 @@
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"camera = PiCamera()"
Expand Down Expand Up @@ -101,9 +110,7 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"#camera settings\n",
Expand Down Expand Up @@ -155,9 +162,7 @@
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -196,9 +201,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"for i in range(steps):\n",
Expand All @@ -225,9 +228,9 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [conda env:flapjack]",
"display_name": "Python [conda root]",
"language": "python",
"name": "conda-env-flapjack-py"
"name": "conda-root-py"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -239,9 +242,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"version": "2.7.13"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}

0 comments on commit 988523f

Please sign in to comment.