This page describes the set-up of an automatic stand-alone datalogger to record and save data from a waterproof pressure sensors locally on an SD card. You can also check the similar set-up, but using SODAQ mbili board.
Links below are examples of hardware providers for Switzerland in 2022.
- IP67 Outdoor Plastic Enclosure
- Cable glands (M12 or M16)
- 3.7V 2000mAh LiPo battery (with 2 mm JST connector)
- 0.5W Solar Panel 55x70mm (with 2 mm JST connector)
- A cheap 4 GB SD card (or even smaller, you'll only need a few MB...)
- The arduino-based board : Seeeduino Stalker V3.1 (currently out of order in May 2022)
- USB-UART converter to communicate with the board, and some female-female jumpers.
- The sensor you want to plug in. In our case a water pressure sensor, see other post here
The equipped seeeduino board enclosed in a simple watertight lunch box for testing. The solar pannel can be left inside the box if the plastic is transparent. |
Firstly you will need to install the arduino IDE and configure it to work with Seeeduino stalker. All steps are described in this tutorial. Don't miss the actual configuration (step 4). The main steps are :
- Open your Arudino IDE, click on File -> Preferences, and copy below url to Additional Boards Manager URLs : https://raw.githubusercontent.com/Seeed-Studio/Seeed_Platform/master/package_legacy_seeeduino_boards_index.json
- Then in "Tools -> Board -> Board Manager", look for "Seeeduino Stalker" and install Seeeduino Stalker V3
- Go back in "Tools -> Board" make sure to select "Seeeduino Stalker V3
- Finally, plug the USB Serial adapter to the Seeeduino board and in "Tools -> Port" check that you are using the right COM port.
Then download the arduino code. You may need to download a few arduino libraries in the library manager (in Arduino IDE : Sketch -> Include Library -> Manage Library or Add .ZIP library), depending on the sensors you are connecting. In our example, we only need to search and download the "SparkFun_MS5803_I2C.h" library.