This page describes the set-up of an automatic stand-alone datalogger to record and save data locally on an SD card using the SODAQ Mbili board. This page is similar to the Seeeduino tutorial, but using a different board.
For this example, we will connect both a water pressure sensor and an air temperature/humidity/pressure sensor.
Links below are examples of hardware providers for Switzerland in 2022.
- IP67 Outdoor Plastic Enclosure
- Cable glands (M12 or M16)
- 3.7V 2500mAh 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 : SODAQ Mbili
- Any USB MINI cable for communication
- The sensor you want to plug in. In our case, a water pressure sensor, (see post here) and an air temperature/humidity/pressure protected by a simple radiation shield (see post here).
Firstly you will need to install the arduino IDE and configure it to work with SODAQ Mbili. The Mbili tutorial is found here, but to get started follow the actual configuration page. The main steps are :
- Open your Arudino IDE, click on File -> Preferences, and copy below url to Additional Boards Manager URLs : http://downloads.sodaq.net/package_sodaq_avr_index.json
- Then in 'Tools -> Board -> Board Manager', look for 'SODAQ' and install SODAQ AVR Boards
- Go back in 'Tools -> Board' make sure to select 'SODAQ Mbili'
- Finally, plug the USB adapter to the Mbili board and in 'Tools -> Port' check that you are using the right COM port.
- One last note : to use external RTC interrupt (to wake up from deep sleep) jumper SJ8 should be soldered !
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.