Connect Sensor To Robonomics Network

Hardware

Universal board for air quality sensor, based on ESP8266 allows to use the following modules: NODEMCU v3, NODEMCU v2, WEMOS D1 MINI. The device is designed for 6 - 24 volt power supply, using DC-DC converter DC MINI560.

plata

This board allows you to connect PM sensors:

I2C connectivity:

  • BMP180 - temperature and humidity
  • BME/P280 - temperature, humidity, atmospheric pressure
  • HTU21D - temperature and humidity
  • SHT3x(I2C) - temperature and humidity
  • CCS811 VOC SENSOR - volatile Organic Compounds, CO2 equivalent
  • LCD1602/ 2004 / OLED SSD1306 / SH1106 - supported displays

Possibility of connection via 1 Wire interface:

  • DTH22(AM2302) - temperature and humidity
  • DS18B20 - temperature.

There is also a smaller MINI model with a trimmed down list of connectable devices. The source circuits for both models can be found at full model and MINI model.

To obtain a ready-made board, contact the developers at vm@multi-agent.io.

After receiving/assembling the sensor, all that remains is to flash and configure it.

Firmware

Our firmware is based on the firmware from Sensor.Community, with some sensors added and the data sending scheme changed. The source code can be found at the link.

To flash the sensor you can use airrohr-flasher. Download the executable for your operating system from latest release.

For Linux

First you need to add a user to the dialout group (for Ubuntu) to gain access to the USB port:

sudo usermod -a -G dialout $USER

After that, reboot the computer. Next, change the permissions of the file and run it:

chmod +x airrohr-flasher-linux
./airrohr-flasher-linux

For Windows:

Unzip the flasher and double-click to run it. You will also need to install drivers for USB2serial (Windows 10 should start automatically):

For MacOS.

Download the flasher and run it. You will also need to install the drivers for USB2serial:


Select the firmware (in English or Russian) and click Upload. Uploading the firmware will take some time.

flasher

Setup

After downloading the firmware, reboot the ESP (just disconnect and reconnect the USB).

After a while after the reboot, ESP will create a Wi-Fi network called RobonomicsSensor-xxxxxxxxx. Connect to it from your phone or computer, then an authorization window will open (if it doesn't open in any browser go to 192.168.4.1). Select your Wi-Fi network from the list (or write it yourself if it's not on the list) and fill in the password field. Also write the coordinates of the place where the sensor will be installed in the field below:

guest

Click Save and restart.

The board will connect to the specified Wi-Fi network and in a couple of minutes you will be able to see the data on map:

map

Advanced Setup

For a more detailed setup (you may need it to connect additional sensors or send data to your own server) you need to find the address of the sensor in your Wi-Fi network. To do this, you can use airrohr-flasher (your computer must be on the same network as the sensor is connected to). Start it and go to the Discovery tab, then press Refresh, wait a moment and your sensor address will appear.

addr

Double-click on this address (or type it into your browser), you will get to the sensor menu:

home

Under the Configuration tab you can configure the sensors used:

sensors

And also set up sending to your own server. To do this, in the tab APIs uncheck Robonomics and check Send to own API and specify the server address and port (65 for sensors connectivity):

apis

Click Save and restart to save the settings.

← Introduction Sensors Connectivity →