Skip to content
Beginner's Python Course with TCLab
Jupyter Notebook
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
00. Introduction.ipynb Graphics added Jan 11, 2020
01. Overview.ipynb Icons Update Jan 11, 2020
02. Debugging.ipynb Icons Update Jan 11, 2020
03. Variables.ipynb Icons Update Jan 11, 2020
04. Printing.ipynb Icons Update Jan 11, 2020
05. Classes and Objects.ipynb Icons Update Jan 11, 2020
06. Functions.ipynb Icons Update Jan 11, 2020
07. Loops.ipynb Icons Update Jan 11, 2020
08. Input.ipynb Icons Update Jan 11, 2020
09. If Statements.ipynb Icons Update Jan 11, 2020
10. Lists and Tuples.ipynb Icons Update Jan 11, 2020
11. Dictionaries.ipynb
12. Plotting.ipynb Icons Update Jan 11, 2020
Basic Python Knowledge.ipynb Introduction to Python Dec 31, 2019
README.md Update README.md Jan 4, 2020
TCLab Help.ipynb Introduction to Python Dec 31, 2019
XX. Final Project.ipynb Icons Update Jan 11, 2020

README.md

Begin Python 🐍 with the TCLab

Welcome to this introductory course on Python! This course is intended to help you start programming in Python from little or no prior experience. There are video tutorials for each exercise if you have questions along the way. One of the unique things about this course is that you work on basic elements to help you with a temperature control project. You will see your Python code have a real effect by adjusting heaters to maintain a target temperature, just like a thermostat in a home or office.

Begin Python

One of the best ways to start or review a programming language is to work on a simple project. These exercises are designed to teach basic Python programming skills to help you design a temperature controller. Temperature control is found in many applications such as home or office HVAC, manufacturing processes, transportation, and life sciences. Even our bodies regulate temperature to a specific set point. This project is to regulate the temperature of the TCLab. Each TCLab has thermochromic (changes color with temperature) paint that turns from black to purple when the temperature reaches the target temperature of 37°C (99°F).

Final Project Objective: Program the TCLab to maintain the temperature at 37°C. Display the heater level with an LED indicator as the program is adjusting the temperature. Create a plot of the temperature and heater values over a 10 minute evaluation period.

To make the problem more concrete, suppose that you are designing a chicken egg incubator. Temperature, humidity, and egg rotation are all important to help the chicks develop. For this exercise, you will only focus on temperature control by adjusting the heater.

Topics

There are 12 lessons to help you with the objective of designing the temperature control for the incubator. The first thing that you will need is to install Anaconda to open and run the IPython notebook files in Jupyter. Any Python distribution or Integrated Development Environment (IDE) can be used (IDLE (python.org), Spyder, PyCharm, and others) but Jupyter notebook is required to open and run the IPython notebook (.ipynb) files. All of the IPython notebook (.ipynb) files can be downloaded at this link. Don't forget to unzip the folder (extract the archive) and copy it to a convenient location before starting.

  1. Overview
  2. Debugging
  3. Variables
  4. Printing
  5. Classes and Objects
  6. Functions
  7. Loops
  8. Input
  9. If Statements
  10. Lists and Tuples
  11. Dictionaries
  12. Plotting

Get TCLab

You will need a TCLab kit to complete the exercises and they are available for purchase on Amazon.

Temperature Control Lab

Install Python

Download and install Anaconda to use Jupyter or watch a video on how to install Anaconda.

Install Anaconda

There are additional instructions on how to install Python and manage modules.

Support

We would love to hear any feedback or problems you would like to send us! We are always trying to improve this course and would like to hear about your experience. We can be contacted at eric@apmonitor.com or john@apmonitor.com.

Additional Resources

You can’t perform that action at this time.