- ESP8266 Node MCU v3
- particle sensor SDS011
- micro USB cable
- connecting wires
- Pin 1 (TX) -> (RX) Pin D1 (GPIO5)
- Pin 2 (RX) -> (TX) Pin D2 (GPIO4)
- Pin 3 (GND) -> GND
- Pin 4 (2.5m) -> unused
- Pin 5 (5V) -> VU
- Pin 6 (1m) -> unused
Sensor is sold with USB adapter and connection wires. You don't need USB adapter, so disconnect wires from it.
You may connect it to ESP via connecting wires "Female-Male":
And connect them to your ESP according to the connection diagram.
Or you can use wires from USB adapter. Disconnect one wire: push on it with some sharp object and carefully pull the wire:
Insert it to last connector:
Then cut connector in the middle:
And connect them to ESP accoding to the connection diagram:
Download airrohr-flasher
from the latest release for your OS. Releases you can find here.
Connect ESP to computer via micro-USB and run flasher.
Firstly you need to get permission to USB port:
sudo usermod -a -G dialout $USER
Then restart computer.
Now you can run flasher (don't forget to give it permission to execute):
chmod +x airrohr-flasher-linux
./airrohr-flasher-linux
Unpack flasher and run it with double click.
Choose firmware (english or russian) and press upload. It will take a few minutes.
Reboot your ESP (just reconnect USB to computer). Then connect to airRohr--xxxxxxx wi-fi network and in your browser write address 192.168.4.1:
Go to Configuration and in Wi-Fi Settings add information about your wi-fi network:
Then press "Save configuration and restart" and ESP will connect to your wi-fi.
Then you need to find ESP in local network (for that your computer and ESP must be in one network). You can do it using airrohr-flasher. Run it and go to Discovery and press Refresh, then you'll be able to see the address.
Write in your browser ESP local address, go to Configuration and tick 'API Robonomics'.
Then enable GPS and all sensors that you use and write your coordinates:
Then press "Save configuration and restart".
Go to sensors.robonomics.network, and you will see your sensor on the map.