-
Notifications
You must be signed in to change notification settings - Fork 7
Sensor configuration
Previous page: Assembly of parts - Next page: Entry in the database
- For those who have a pre-programmed sensor
- For those who are flashing their NodeMCU themselves
- Clear the configuration
- Flowchart of configuration
PC/Notebook(Windows) | PC/Notebook(MacOS) | Cell Phone(Android)
If the particulate matter sensor can not connect to the preconfigured WLAN, the sensor itself becomes a hotspot. The name of this hotspot is "Feinstaubsensor-chipid". The chip ID should be noted down on this occasion, as it is needed for entry into the sensor database. Any Wi-Fi enabled device(tablet, phone, ...) can connect to this hotspot.
For configuration, the sensor should be located near the router so that the WLAN is detected effectively. After configuration, the sensor should then remain active for about half an hour at this location in order to be able to supply itself with possibly existing updates. Please follow these steps on PCs / notebooks with Windows for configuration:
- Open browser(this sometimes blocks if no internet connection works)
- then restart the sensor by briefly removing and reinserting the power supply
- wait about 1 minute(sometimes the sensor takes a little longer to start)
- Connect the PC / notebook to the "Feinstaubsensor-XXXXXX" hotspot, wait a short time until the connection is established
- Then open in the browser
http://192.168.4.1/
and configure the sensor, save configuration - After approx. 4-5 minutes the webserver of the sensor switches off, until then the configuration should be done
As with Windows, the sensor should be near the router for secure detection of the WLAN. Perform the following steps:
- Restart the sensor by briefly removing and reinserting the power supply
- wait about 1 minute(sometimes the sensor takes a little longer to start)
- Connect the PC / notebook to the "Feinstaubsensor-XXXXXX" hotspot, wait a short time until the connection is established
- After the connection is established, a window should open automatically with the configuration page of the sensor. There configure the sensor and save the configuration.
- After approx. 4-5 minutes the web-server of the sensor switches off, until then the configuration should be done
Here too, the following applies: Switch on or restart sensor and wait approx. 1 minute for the sensor to be completely started. Under Android, this looks like like this: About the status bar:
WIP: About Settings -> WLAN [Android via Settings-> Wi-Fi]
NOTE: The following steps should be taken soon after connecting to the sensor. After approx. 5 minutes, the access point for the configuration page switches off to prevent unauthorized access. If the connection is disconnected immediately, you may have to deactivate the Smart Mesh Switch option under Connections-WLAN-Advanced. After connecting to the WLAN, the configuration page can be opened in the browser via the address http://192.168.4.1/. The following page should be displayed on which also the chip ID appears again(note at the latest for the entry in the database):
After clicking on "Config WiFi" it may take a moment(searching for available networks) and the following page opens:
There, the access data for the WLAN can be entered. The remaining fields configure the built-in sensors and should not have to be filled out. Empty fields keep the preconfigured default values. After saving the configuration, the sensor then connects to the registered WLAN.
1 "Send to luftdaten.info(0/1)?"
1 "Send to madavi.de(0/1)?"
0 "Serial as CSV(0/1)?"
1 "DHT sensor(0/1)?"
0 "PPD42NS sensor(0/1)?"
1 "SDS sensor(0/1)?"
0 "BMP sensor(0/1)?"
1 "Auto-Update(0/1)?"
0 "Display(0/1)?"
3 "Debug output(0-5)?"
0 "Send to own API(0/1)?"
In the file ext_def.h the parameters for the WLAN access and the used sensors can be configured. The parameter names should actually be self-explanatory. Default is:
- Freifunk is used as Wi-Fi access, this should be changed to your own Wi-Fi, if free-radio is not available.
- The data are sent to api.luftdaten.info(SEND2DUSTI)
- The particulate matter sensor SDS011(SDS_READ) and the temperature sensor DHT22(DHT_READ) are read
If the configuration needs to be reset, perform the following steps:
I. Installation ESP8266 filesystem uploader
- Download the Plugin
- Extract to
<home_dir>/Arduino/tools/ESP8266FS/tool/esp8266fs.jar
, the directories underArduino/
may need to be created. - Reboot Arduino IDE
- Under the menu item "Tools" there should now be an entry "ESP8266 Sketch Data upload"
II. Delete configuration
- Open the sensor sketch, there should be no data folder in the corresponding directory, or the folder should be empty
- Under "Tools" select "ESP8266 Sketch Data upload", confirm the message that no data was found with Yes / Yes
- The IDE should now write data to the ESP8266. If an error message appears, repeat the process, possibly again with the flash button pressed
A script for Linux is available in the software repository under utils / flash.
- sensors.AFRICA Introduction
- Components supply
- Installing firmware
- Known Errors
- Component assembly(Circuit)
- Assembling parts
- Sensor configuration
- Entry in the database
- Links(Graphics, Sensor Info)
- APIs
- NodeMCU Pinouts v2, v3
- Datasheets, Specifications
- Connection of additional sensors and hardware
- Send Air Quality Data
- Studies
- Similar projects
- Humidity Correction
for more, see logs