All code for the 2019 Scout Engineering Day - Programming a Sensor Net class is available online on GitHub.
All materials are licensed under the MIT License.
Operator/Statement | Description |
---|---|
Assignment | Assign a value to a variable/constant |
Conditional | Make decisions based upon variable values |
Loop | Execute a block of code multiple times |
Exception | Catch and handle exceptions (i.e. errors) |
Import/Include | Import modules providing reusable functions and classes |
Function/Method | Organize code into sub-routines (Frequently used code, Abstract concepts) |
Function | Description |
---|---|
Display Text and Data | |
range | Operate on a range of values |
input | Accept input into a variable |
Six labs are included in this class
Lab | Description |
---|---|
Blinky Lights | Control a flashing LED using the Raspberry PI 3 GPIO |
Light Sensor | Measure light levels with a BH1750 Light Sensor Module |
Magnetic Field Sensor | Detect a magnetic field with a Hall Sensor |
Mercury Switch | Detect a tilting motion with a Mercury Switch |
Obstacle Avoidance | Use the Infrared (IR) reflection principle to detect obstacles |
Temperature and Humidity Sensor | Measure Temperature and Humidity with a DHT11 Sensor |