Gravity: WiFi IoT Module For SCI

Gravity: WiFi IoT Module

Introduction

The Gravity: WiFi IoT Module is an essential accessory designed for the Gravity: Science Data Acquisition (SCI DAQ) Module, enabling efficient sensor data transmission to IoT platforms without requiring programming. With a compact design and versatile power options (Type-C or battery), it facilitates easy deployment of IoT sensor nodes. This module operates on the 2.4GHz WiFi frequency, ensuring stable connectivity and supporting features like automatic reconnection during network fluctuations. By integrating seamlessly with the Gravity: Science Data Acquisition (SCI DAQ) Module and its wide range of compatible sensors, users can rapidly deploy various IoT systems, such as environmental monitoring, smart homes, and weather stations, achieving intelligent management and monitoring.

Specification

Board Overview

Name Function
1 D I2C data line SDA
2 C I2C data line SCL
3 - Used to power SCI DAQ
4 + Used to power SCI DAQ
5 RST WiFi IoT module reset
6 L status light
7 POWER IN Battery power input
8 Type-C Type-C power input (no charging function)

WiFi module configuration

Note: The POWER IN battery interface, Type-C interface, and Gravity interface on the WiFi IOT module must not supply power simultaneously. Doing so may damage the WiFi module.

When using the WiFi module for the first time, you need to configure the WiFi and MQTT settings. This process can also be followed whenever you need to modify these settings.

Familiarity with the SCI DAQ module is not required to follow this tutorial. It is recommended to complete the entire setup process of the WiFi module first and then explore the details of the SCI DAQ module usage. If you wish to learn more about the SCI DAQ module, please refer to the SCI DAQ module Tutorial.

Before configuring the WiFi module, ensure that your IoT platform is properly set up. If you are already familiar with configuring the IoT platform, proceed to the next section of the tutorial. If you are unsure how to configure the IoT platform, please refer to the specific guides for your platform: EasyIoT, Siot v2, or Siot v1.

WiFi module usage

Note: The POWER IN battery interface, Type-C interface, and Gravity interface on the WiFi IOT module must not supply power simultaneously. Doing so may damage the WiFi module.

If this is your first time using the module, please complete the WiFi module configuration steps outlined in the previous section. If configuration is already complete, proceed to the next steps.

Indicator Light Status Description

White Light Steady On: Initialization in progress

Blue Light Steady On: Waiting for web configuration

Green Light Steady On: Configuration successful

Red Light Steady On: Connecting to WiFi

Yellow Light Steady On: Connecting to MQTT

Purple Light Quick Flashes (3 times): MQTT connection successful

Purple Light Short Flash: Reporting data (the length of time it lights up is related to the amount of data reported. The more data reported, the longer the time it lights up)

Purple Light Steady On: SCI module disconnected during scheduled reporting

EasyIoT platform configuration

1.Open the EasyIoT Workspace: https://iot.dfrobot.com/workshop.html . If you don’t have an account, you will need to register first.

2.Create the required number of devices. For example, if you plan to report two data, such as temperature and humidity, you only need to create two devices. You can also create up to ten devices, leaving unused devices unconfigured for future use.

3.Record the following parameters from the EasyIoT platform to input into the WiFi module configuration:

  1. At this point, the EasyIoT platform configuration is complete, continue to configure the WiFi module

Siot v1 Platform Configuration

  1. Download

  2. After completion, open the exe file

  1. On your computer, press "Win + R" to open the cmd command line terminal.

  2. Type the command ipconfig and press Enter. Locate and record the IPv4 Address of the wireless LAN adapter.

The wifi module and the device running siot must be connected to the same network

  1. Record the following parameters from the Siot v1 platform to configure the WiFi module:
  1. In your browser, enter the IP address obtained in Step 4 followed by :8080. For example: 192.168.9.187:8080.

  2. Siot v1 Platform Configuration Complete, Proceed to configure the WiFi module as outlined in the previous steps.

Expected Outcome: Once the sensor, SCI module, and WiFi module are properly connected and functioning:

  1. Open the Siot v1 page from Step 6.
  2. Click "View Device List""View Messages" to see the uploaded sensor data.

Siot v2 Platform Configuration

Explanation: It is recommended to use the Unihiker M10 to run the Siot v2 service. This tutorial is based on running the Siot v2 service on the M10.
If you prefer to run the Siot v2 service on a computer, Please download and install: SIoT V2 Download,run the .bat file when you're done, other operations are the same as siotv1.

The wifi module and the device running siot must be connected to the same network

  1. Connect the Unihiker M10 to your computer using a Type-C cable.
  2. Power on the Unihiker, then open a browser and enter 10.1.2.3 to access the webpage.
  3. In the "Network Settings" section, connect the M10 to WiFi and record the IP address displayed.
  4. Enable the SIOT service in the “Application Switch”, and then “Open Page”.
  5. Click New Topic, enter the topic name, here in order to better correspond to the number of lines displayed on the SCI screen, named Line x
  6. Create the required number of devices. For example, if you plan to report two data, such as temperature and humidity, you only need to create two devices. You can also create up to ten devices, leaving unused devices unconfigured for future use.

  1. Record the following parameters from the Siot v2 platform to configure the WiFi module:
  1. Siot v2 Platform Configuration Complete, Proceed to configure the WiFi module as described earlier.

Expected Outcome: After the sensor, SCI module, and WiFi module are properly connected and working:

  1. Open the Siot v2 webpage from Step 6.
  2. Click "View Details" to see the uploaded sensor data.

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum.