The Greenhouse Tutorials
Overview
In this section we provide a series of self-contained tutorials that put various TQL constructs into real use. Each of the tutorial is self-contained, however together they constitute a real-world, cohesive Smart Greenhouse application, which is described in the last of the series Tutorial 13.
It is highly recommended that you go over the Tutorials/Introduction Section before any of the tutorials here.
Hardware requirement
Please note the hardware required in the following curriculum. If you plan to follow each project with your own set up (recommended), it is better that you procure the hardware ahead of time. In Tutorial 1 and 2, you have the options of choosing the Auduino-Pi or Libelium hardware setup. Based on your hardware choice, the sensors are also different. We recommend the Arduino-Pi option for students (it is lower cost) and the Libelium option for enterprise engineers. The latter is more practical for real deployment in the field.
Regardless of which hardware option and setup you choose, the TQL models you would write are the same (remember this is one of the benefits of using an IoT platform).
Tutorials and and Hardware
TQL101 Class Schedule
Week | Content | Tutorials | Main Concepts Covered | Class Agenda |
---|---|---|---|---|
0 | Introduction | Introduction | Architecture and overview Queries | |
1 | Serial temperature sensor | #1 | ThingModel, ThingFacet, Attribute, Action; Protocol handlers (serial) Instantiation, Subscription | Closer look at SimpleModel. (Model, Export, Deploy Locally flow) - 20 minutes Work on Temperature Sensor Modeling - 20 minutes Deploy and Test Temperature Sensor Model - 15 minutes |
2 | Actuator (USB camera); Cloud services (weather) | #5, #7 | Protocol handlers (UCam, HTTP) Custom types Intro to Macros & Using Pipeline Macros Queries - Save, Update | ThingFacet for Actuator (USBCamera) - 20 minutes Deploy & Test USBCamera - 10 minutes ThingFacet to Connect with Cloud Services - 20 minutes Deploy and Test Cloud Service Model - 10 min Q&A - 10 min |
3 | Combing things with data;
| #9, #10 | Data Model; References User defined types | TQLEngine Anatomy, Model Life Cycle - 25 minutes Things + Data; Storage - 20 minutes |
4 | Multiple sensors | #2 | Macros; FacetScript; Model to model queries; Model to model subscriptions | Quick Recap - 10 minutes Introduction to Pipelines with example to execute TQL Code in Repeated Sequence - 20 minutes Temporary Storage Types, Multi Sensor Design Pattern - 20 minutes Deploy and Test Multiple Sensors Model - 15 minutes Q&A - 10 minutes |
5 | Review of Pipeline Macros (Multiple Sensors) Consume TQL queries to build UI app | #2, #10 | Macros; FacetScript; Model to Model Queries Building UI with queries | Quick Review of Pipelines, Temporary Storage Types, Multi Sensor Design Pattern - 20 minutes Building UIs with TQL Queries - 20 minutes Integrate Multiple Sensors within UI (JS App) - 15 minutes Q&A - 10 minutes |
6 | Simulation | #8 | IoT Applications & importance of Simulation | IoT Simulation - 20 minutes TQL System IoT Simulation Frameworks - 20 minutes Greenhouse Simulation - 20 minutes Q&A - 15 minutes |
7 | "Edge is the inital step of Internet of Things" - Edge computing – gateways, cloud Bulk initialization of things and data | #11, #12 | Distributed application; Clusters Large numbers of devices; Device management | TQL and IoT Applications Topology - 20 minutes Greenhouse Gateway Setup - 20 minutes Bulk Initialization - 20 minutes Q&A - 15 minutes |
8 | The Smart Greenhouse | #13 | Review and look at Greenhouse application at Scale | Review of Greenhouse Application at Scale - 20 minutes Setup and Run Greenhouse Gateway - 20 minutes Q & A - 30 minutes
|