S600 Dust Sensor
The S600 Dust Sensor is a compact board equipped with one dust sensor port and one I2C port, which customer can use dust sensor on of the ports. This board use to detect the presence of particulate matter (PM) suspended in the air, ranging from dust, smoke, pollen, and other pollutants. This compact board also can be controlled and monitored from anywhere and anytime, as long as you connected with the internet.
S600 Pins
The pins at S600 are for connecting the device with the Serial Programmer or USB TTL.
Serial Programmer
The Serial Programmer is also known as USB-to-TTL Converter.
A USB-to-TTL Converter is a device designed to convert USB bus signals into TTL serial signals. It serves multiple purposes, including debugging microcontroller programs via a PC and transferring programs from a PC to a microcontroller.
Here are some of the recommendations:
– CH340G: Cheapest and the most reliable.
– Voltlink: A USB to serial adapter board that utilizes the widely used CP2102N chip. It comes with a built-in ESP auto-reset circuitry feature and incorporates a 500mA voltage regulator.
– CP2102 or PL2303: Works with some devices, but it might be required to use an external 3.3V supply.
In this tutorial, the CH340G is used. The pinout configuration for the USB-to-TTL CH340G is like this:
Schematic
After you understand the pins on both devices, connect the wires according to the table:
USB-to-TTL | S600 Dust Sensor |
3V3 | 3V3 |
TXD | RX |
RXD | TX |
GND | GND |
5V and VCC pin on USB-to-TTL will not be used.
Flashing the Firmware
After the devices have been assembled, the next step is flashing the new firmware on the S600 Dust Sensor.
1. Connect the USB-to-TTL to your PC.
2. To understand on which COM port your USB is connected you can open Device Manager.
3. Then go to Ports. You will see the type of your USB-to-TTL and on which COM port the device is connected.
4. Download the program from this link.
S600-dust-sensor.v.1.0
5. Extract the program.
6. Go to Run.
8. Type 1 to install the firmware.
9. Select your Frequency.
10. Make sure you slide to slide the switch to PROG after this line.
11. And don’t forget to push on the PROG button.
12. Press any key to continue the installation progress.
13. After it, you need to add the device to LoRa server. To do so, slides the switch to OP. Then you need to push the PROG button once more.
14. The device will be registered to our LoRa server.
Note: You can copy the device_id and save it on your notepad. The device_id will be used as the Hardware ID to register your device on IoT Stadium platform.
Add S600 to The Platform
This step is used to register or add your new device to the IoT Stadium platform.
1. To register on IoT Stadium platform, go to app.iotstadium.com.
2. Input your Email Address and Password then click Login.
3. Go to Device Tab, then click New Device.
4. Fill the Device Name.
5. Make sure to select the Connectivity Type as LoRa.
6. Copy the device_id to the Hardware ID.
7. If your device is successfully registered, you will get the green notification.
*note: if your device isn’t registered yet, you will get the red one.
8. Click Add Device when done, then your device will be added to the platform.