![]() The values of two ADC lines, 0 and 1 will be published every 5 second to the MQTT-SN broker. My RIOT firmware is based on the original example of emcute_mqttsn available in GitHub.Each RIOT application has two files namely main.c and Makefile.Ībove all the code of the emcute_mqttsn, which is mandatory, it contains the ADC lines initialization and reading the sensors values for both temperature and light sensors. ![]() RIOT is a real-time multi-threading operating system, which supports a range of devices, which are typically found in the IoT. This is used to notify user for three different light density status. Finally connect the second pin (GND) with the GND pin of the board. This is used to notify user when the temperature is high.Ĭonnect first connector (Red) of the RGB LED with the D7 pin of the STM32 Nucleo board and the third connector (Green) with the D9 and the forth one (Blue) with D10 pin of the board. Finally connect the bottom connector of the 1KOhm resistor with the GND pin of the board.Ĭonnect top connector of the RED LED with the D8 pin and the bottom connector with the GND pin of the STM32 Nucleo board. Use a jumper wire to connect the top connector of the photocell with the 5V pin of the STM32 Nucleo board and the bottom connector of the photocell - the one which is connected with the 1KOhm resistor - with the A1 pin of the board. Locate the photocell and the 1KOhm resistor in series on the breadboard. Finally connect the bottom connector of the 10KOhm resistor with the GND pin of the board. Use a jumper wire to connect the top connector of the Thermistor with the 5V pin of the STM32 Nucleo board and the bottom connector of the Thermistor - the one which is connected with the 10KOhm resistor - with the A0 pin of the board. Locate the Thermistor and the 10KOhm resistor in series on the breadboard. STM32 F401RE board with light and temperature sensors and LED’s (actuators) are used to develop an IoT device prototype using RIOT-OS. The IoT device will be developed using RIOT-OS with STM32 Nucleo-64 F401RE while the cloud-based services will be based on the AWS cloud-based service ecosystem. The goal of this assignment is to create a cloud-based IoT system that collects information from temperature and light sensors. IoT-First Assignment Develop an IoT device using RIOT-OS and connect it to AWS using MQTT-SN
0 Comments
Leave a Reply. |