This is an old revision of the document!
This chapter describes the IOT ITT controller module. Controller module is necessary for for any other module to work.
General knowledge of MQTT protocol: topics, brokers, subscribe, publish. General knowledge on microcontrollers and Arduino IDE.
Specifications 11 digital input/output pins Micro USB connector Compatible with ArduinoIDE Compatible with nodemc 4 MB flash-memory Electrical connection Modules are using following I/O ports
RGB LED Shield GPIO4 Relay Shield GPIO5 OLED Display Shield GPIO4, GPIO5 Motor Shield GPIO4, GPIO5 Temperature/Humidity DHT Pro Shield GPIO2 Sensor Shield (ITT ver. 1.1) GPIO4, GPIO5, GPIO6, GPIO7, A0
This laboratory involves a WS2812B RGB LED. RGB LEDs are basically three LEDs (red, green, blue) that are built inside one shell. They include a WS2812 driver that makes it possible to use only one pin to control them.
To program the controller module ITTIoT libary is used. This is a custom libary made specifically for ITT IoT kits. It aims to make the board easier to use with simple but yet effective methods.
Method | Description |
---|---|
iot.setup() | Does the operations necessary for setting up the ITTIoT framework and MQTT communications. |
iot.printConfig() | Prints the module configuration to the serial port. |
iot.handle() | Does the background work necessary for the communications to work. For example checks if the communication with the broker is still working and checks if any new messages have been received. This method has to be called periodically. |
The user can connect to this controller using the Distancelab environment.
At the same time one user can program the controller. But all users connected to the Distancelab MQTT broker can control the RGB LED, assuming they use the topic described in the controller program.
List study scenarios (hands-on labs), linking to the Dokuwiki pages with hands-on labs descriptions (there should be a separate page for each scenario). Classify each scenario and refer to the target group using starting keywords: * Beginners * Undergraduates * Masters * Professionals Note, assume that more professional group automatically contains less professional ones. Note - use language and as appropriate to the target group, i.e.:
* Beginners: Elementary operations on the Arduino 2x16 LCD screen. * Undergraduates: Visualizing temperature and humidity on the remote screen. * Masters: Using power saving states to limit power consumption.
Give some information on how to access help, how to get support in case of the trouble etc.