This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:remotelab:ume:arancino [2019/10/01 18:39] – salvatdi | en:iot-open:remotelab:ume:arancino [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ==== Introduction ==== | ==== Introduction ==== | ||
| - | Its main goal is to provide a single-node testbed consisting of a next-generation “combo” board, a.k.a. Single-Board Computer (SBC) mainly focusing on smart environment monitoring scenarios. To this purpose, 1 node has been equipped and made available to students for practicing in these contexts. This node is a combo SBC which combines onto the same node a so-called “carrier board”, in this case an Arancino™ by smartme.IO, with an Arduino-like MCU (based on an ARM Cortex M0+ @48MHz) built-in, hosting a Raspberry Pi 3 Compute Module (CM3). In this section, we will focus on this Arancino node and its sensors/ | + | Its main goal is to provide a single-node testbed consisting of a next-generation “combo” board, a.k.a. Single-Board Computer (SBC) mainly focusing on smart environment monitoring scenarios. To this purpose, 1 node has been equipped and made available to students for practicing in these contexts. This node is a combo SBC which combines onto the same node a so-called “carrier board”, in this case, an Arancino(TM) by smartme.IO, with an Arduino-like MCU (based on an ARM Cortex M0+ @48MHz) built-in, hosting a Raspberry Pi 3 Compute Module (CM3). In this section, we will focus on this Arancino node and its sensors/ |
| ==== Prerequisites ==== | ==== Prerequisites ==== | ||
| Line 34: | Line 34: | ||
| The BME680 is a (combined) digital gas, humidity, pressure, and temperature sensor based on proven sensing principles. | The BME680 is a (combined) digital gas, humidity, pressure, and temperature sensor based on proven sensing principles. | ||
| The humidity sensor provides an extremely fast response time for fast context awareness applications and high overall accuracy over a wide temperature range. The pressure sensor is an absolute barometric pressure sensor with extremely high accuracy and resolution. | The humidity sensor provides an extremely fast response time for fast context awareness applications and high overall accuracy over a wide temperature range. The pressure sensor is an absolute barometric pressure sensor with extremely high accuracy and resolution. | ||
| - | The integrated temperature sensor has been optimized for lowest noise and highest resolution. Its output is used for temperature compensation of the pressure and humidity sensors and can also be used for estimation of the ambient temperature. | + | The integrated temperature sensor has been optimized for the lowest noise and highest resolution. Its output is used for temperature compensation of the pressure and humidity sensors and can also be used for estimation of the ambient temperature. |
| The gas sensor within the BME680 can detect a broad range of gases to measure indoor air quality for personal well being. Gases that can be detected by the BME680 include Volatile Organic Compounds (VOC) from paints (such as formaldehyde), | The gas sensor within the BME680 can detect a broad range of gases to measure indoor air quality for personal well being. Gases that can be detected by the BME680 include Volatile Organic Compounds (VOC) from paints (such as formaldehyde), | ||
| Line 58: | Line 58: | ||
| ==== Actuators ==== | ==== Actuators ==== | ||
| - | There are no mechanical actuators or displays in this laboratory. The node is nevertheless equipped with three LEDs, including an MCU-controlled one. By default, i.e., after MCU reset (which may be triggered by quick double-click on the corresponding button) the aforementioned LED starts “breathing”, | + | There are no mechanical actuators or displays in this laboratory. The node is nevertheless equipped with three LEDs, including an MCU-controlled one. By default, i.e., after MCU reset (which may be triggered by quick double-click on the corresponding button) the aforementioned LED starts “breathing”, |
| ==== Power supply ==== | ==== Power supply ==== | ||
| The node is powered by an external DC (5V) power supply over USB. | The node is powered by an external DC (5V) power supply over USB. | ||
| - | Software, libraries and externals | + | Software, libraries, and externals |
| The following libraries are required to run the example proposed below for the hands-on labs: | The following libraries are required to run the example proposed below for the hands-on labs: | ||
| * SPI | * SPI | ||
| Line 225: | Line 225: | ||
| === Step 2 === | === Step 2 === | ||
| - | Functions definitions for: BME680 sensor initialization and settings configuration (bme680_begin()); | + | Functions definitions for: BME680 sensor initialization and settings configuration ('' |
| <code c> | <code c> | ||
| Line 274: | Line 274: | ||
| === Step 3 === | === Step 3 === | ||
| - | Initialize the Redis structures (Arancino.begin()), | + | Initialize the Redis structures (Arancino.begin()), |
| <code c> | <code c> | ||
| Line 290: | Line 290: | ||
| === Step 4 === | === Step 4 === | ||
| - | Implement loop() to do in the order: | + | Implement |
| - perform the readings (see Step 2 for more details); | - perform the readings (see Step 2 for more details); | ||
| - blink the led (see Step 2 for more details). | - blink the led (see Step 2 for more details). | ||