Skip to main content

# Getting S2100 started with Counter&GPIO Sensor

Let's get started on learning how to use the S2100 with Counter&GPIO sensor. Once we've got that down, we'll move on to the basics of S2100's application. This will give you a good idea of how to connect your own customized sensor in the future.

Sensor Probeโ€‹

Get these items ready:

  • Data logger
  • Rain Gauge RG-15 Rain sensor(as an example)
  • 8 pin wire
  • Cross screwdriver(Cross recess No.2)
  • SenseCAP Mate APP

Connect the Sensor Probe

Disassemble the Data Loggerโ€‹

  1. Unscrew three screws.
  1. Take down the cover.
  1. Remove the thread cap and pass it through the cable of the sensor, pass it through the bottom cover, and connect it to the wiring terminal.
112VExternal 12V input voltage. The Data Logger can be powered by an external 12V DC power supply. When using 12V power supply, the battery will serve as backup power supply.
25V5V output voltage, providing 5V voltage to the sensor.
33V3V output voltage, providing 3V voltage to the sensor.
4IOAcquisition level or pulse input
5V1The voltage input of 0 to 10V is collected
6V2The voltage input of 0 to 10V is collected
7ARS485 A/+
8BRS485 B/-
9I1Collect the current input from 4 to 20mA
10I2Collect the current input from 4 to 20mA
11GNDGround pin
12GNDGround pin

Power supply options of sensorโ€‹

Data Logger supports two power supply modes, we choose the Built-in Battery mode:

Built-in BatteryThe Data Logger and sensors are powered by batteries. In this case, the Data Logger can be connected to a 5V sensor.

Connect to the Dataloggerโ€‹

Wire sequence of Datalogger:

Wire TypeDescription
Red Wire5V
Black WireGND(Any port would be OK.)
Yellow WireIO
  1. Pass the 8 pin wire through the bottom cover and connect it to the base of the Data Logger according to the wire sequence requirements;
  1. Connect the upper cover, rubber ring and screw cap in sequence
  1. Tighten the screws and screw caps to check the waterproofing. If the wire diameter is too thin, add waterproof tape for winding.

*Note: When assembling the device, it is necessary to install the waterproof pad of the Data Logger and the adapter box, and tighten the screw cap and screw, otherwise the waterproof effect of the device may be affected!

If the wire diameter is too small, it can be wrapped with waterproof tape, as shown below:

Connect to the Rain Gauge Sensorโ€‹

Wire sequence of Rain Gauge sensor:

  1. Unscrew four screws,take down the cover.Pass the 8 pin wire through the bottom cover and connect it to the base of the J1 according to the wire sequence requirements;
Wire TypeDescription
  1. Turn the DIP Switches 1 of the rain sensor S1 base to the ON, turn the switch 2 to the OFF , and turn the 3 and 4 to the OFF;
  1. Install the cover and tighten the screws. Complete the connection.

We've finished the wiring at this point. Now, let's set up the S2100 and configure it on our APP

Setup the S2100

Connect to Sensor to Appโ€‹

  1. Press button and hold for 3 seconds , the LED will flash at 1s frequency. Please use the App to connect the sensor within 1 minute; otherwise, the device will power off or reboot.
  1. Please select "S2100 Data Logger".

Please click the "Setup" button to turn on Bluetooth and click "Scan" to start scanning the sensor's Bluetooth.

  1. Select the Sensor by S/N (S/N is on the front label of the sensor). Then, the basic information of the sensor will be displayed after entering.
  1. Enter configuration mode after Bluetooth connection is successful: LED flashes at 2s frequency.

Configure Basic parameters through Appโ€‹

Select the Platform and Frequencyโ€‹

S210x Sensors are manufactured to support universal frequency plan from 863MHz ~928MHz in one SKU. That is to say, every single device can support 7 frequency plans.

Here we select the "SenseCAP for Helium" or "SenseCAP for TTN". The Frequency Plan based on your actual situation.

*Note: Data Logger can upload data when there is a Helium network around the user. It runs on SenseCAP private Helium Console. Users do not need to create a device on the Helium Console;

SenseCAP for TTN platform needs to be used with SenseCAP LoRaWAN outdoor gateway

Set the Intervalโ€‹

The working mode of device: wake up the device every interval and collect measurement values and upload them through LoRa.

For example, the device collects and uploads data every 60 minutes by default.

Set the Packet Policyโ€‹

The sensor uplink packet strategy has three modes, we select 1N here or you can according to your own requirement.

2C+1N (default)2C+1N (2 confirm packets and 1 none-confirm) is the best strategy, the mode can minimize the packet loss rate, however the device will consume the most data packet in TTN, or date credits in Helium network.
1C1C (1 confirm) the device will sleep after get 1 received confirm packet from server.
1N1N (1 none-confirm) the device only send packet and then start to sleep, no matter the server received the data or not.

Restore Factory Settingโ€‹

When selecting the SenseCAP platform, you must use the fixed EUI/App EUI/App Key. Therefore, you need to restore the factory Settings before switching back to the SenseCAP platform from other platforms.

When we make a mistake or want to reset everything, we can click the button. The device will be restored to the factory's default configuration.

*Note: The "Restore Factory" function can only reset the Basic Setting.

Configure GPIO Sensor via Appโ€‹

Select the "Protocol" as "GPIO". Then set the following parameters in turn.

  1. Select the supply voltage to the sensor. It supports 3V/5V/12V. Here we select 5V.
  1. Set the "Sensor Warm-up time", the warm-up time denotes the amount of time it takes for the sensor to attain its highest accuracy or performance level once the voltage supply has been applied. We enter 50(ms) herr.
  2. Select the input type:
Level ModeThe input level signal is collected, the high level is 1, the low level is 0
Counter ModeThe pulse signal is collected, and the number of pulses is recorded

We select Counter Mode here.

Set the Counter Sensorโ€‹

Select the "Counter Mode" as input type. Then set the following parameters in turn.

Digital inputSets the type of input pulse. Pull High: Valid when a rising edge is detected. Pull Low: Valid when a falling edge is detected. We select Pull High here.
Digital FilterWhen the pulse width exceeds 10 ms, which advised to enable it. It is enabled by default. Enable it here.
Reboot to clear the countWhen a Datalogger restart occurs, the count is cleared to 0. It is disabled by default. Disable it here.
Y= Ax + B"Y": It is the value Datalogger will upload. "x": It is the original counter value. Factory A: Custom values that can be scaled up or down by multiples of the "x". Factory B: A custom value that increments or diminishes the value of the "x". By setting the values of A and B, you can calculate the desired value. set A=0.2 and B=0.
Unit time collectionEnabling this function increases upload by a value: cumulative amount per hour. For example, if the value of Y within one hour is 1000, 1000/h will be uploaded. Disable it here.

After the configuration information is completed, click "Back to Home" (at this time, the node and the APP Bluetooth will be automatically disconnected), and the Data Logger will try to connect to the network (the LED indicator flashes red slowly when trying to connect to the network, and flashes green quickly after the network is successfully connected);

Check data on the SenseCAP Portal

Bind Sensor to SenseCAP Portalโ€‹

Please open SenseCAP Mate App.

  1. Scan QR Code

  2. Click "Add device" on the upper-right corner of device page to enter the device binding page.

  1. Scan the QR code on the device to bind the device to your account. If you do not set it to a designated group, the device will be put into the "default" group.
  1. Manually fill in the EUI

If the QR code sticker is damaged, you can manually fill in the EUI of the device to bind the device to your account. Please make sure you put in the EUI in the format suggested by the system and then click "confirm".

Check Data on SenseCAP Portalโ€‹

On the SenseCAP App or the website , you can check the device online status and the latest data. In the list for each Sensor, you can check its online status and the time of its last data upload.

Also, you can check the date on SenseCAP Mate APP.

Loading Comments...