|noerw 54b9f91628 read SDS011 & HDC1008 instead||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|TelnetPrint.h||1 year ago|
|api.h||1 year ago|
|box.jpg||1 year ago|
|config.h||1 year ago|
|esp8266-gps.ino||1 year ago|
|gps.h||1 year ago|
|storage.h||1 year ago|
|streampipe.h||1 year ago|
|ublox-neo7m-config_10hz-europe.txt||1 year ago|
|wifi.h||1 year ago|
This is a modular (but probably overcomplicated) sketch for a mobile sensebox, written as a part of my bachelors thesis. It measures arbitrary phenomena (currently only implemented: WiFi network count), which are geocoded and uploaded to the openSenseMap upon wifi connection.
Supports debug logging via telnet on it’s own access point + the connected network.
The GPS module must provide NMEA sentences & be connected via the hardware serial (Wemos Pins
SoftSerial did not work for me but created many issues (random crashes, due to buffer overflows?).
mobile-sensebox.inoin Arduino IDE
Wemos D1 (retired)(or whatever you have)
Once started, the device will idle until a first GPS fix was established. From then on the following procedure runs repeatedly:
Two hardware switches are implemented, which enable/disable the measurement- and/or upload-procedure:
By default, connecting pin
GND disables the upload,
GND disables the measurements.
This can be useful for quickly uploading accumulated stored measurements!
A telnet logger is enabled by default, and provides basic debug output.
You can connect to it both from the created accesspoint (which is there only for this purpose), as well as on the connected wifi network. So you either..
Connections are not polled all the time, so you may have to wait a moment until you receive first data.
Note that, due to the limited single-channel hardware of the ESP8266, a reconnection to the configured WiFi network fails, when a client is connected to the telnet logger on the open access point.
Developed using ESP8266 Arduino core v2.3.0 in Arduino IDE v1.6.8.
Depends on the following libraries, of which copies are stored in the
Time.hfor easy extraction of current timestamps
TinyGPS++.hfor NMEA parsing & distance calculation
ESP8266TrueRandomfor UUID generation