Before you start, please make sure you have the following components:
- Cricket Wi-Fi module (https://www.thingsonedge.com/)
- Soil Moisture Sensor
- 6-Way Terminal Block
- 2xAAA batteries (either AAA or AA)
- AAA batteries pack (either AAA or AA)
- 3x Female/Female Jumper Wires
If you are ready let's get started!
Solder the 6-way terminal block to the Cricket module. The terminal block makes it easier to play around with cables.
Now you need to connect batteries and the moisture sensor to the Cricket module with the following steps:
- Connect battery VCC / + (red cable) to Cricket's BATT portNOTE: The Cricket module can be powered either onAA or AAA batteries
- Connect the sensor VCC / + (green cable) to Cricket's 3V3 portNOTE: 3.3V port supplies stable 3.3V regardless of a battery voltage level
- Connect the sensor AOUT analog signal (yellow cable) to Cricket's IO2 portNOTE: This port can be configured as an analogue signal. The data will be reported to yoursmartphone
- Connect the sensor GND / - (blue cable) to Cricket's GND port
- Connect the battery GND / - (black cable) to the same Cricket GND port
A complete assembled device
Well done you have successfully assembled the device!
Before you start using the device it needs to be configured in Developer Portal. Please go to the next section.
You configure the device entirely OTA (Over The Air) through Things On Edge - Developer Portal (https://dev.thingsonedge.com). The configuration will be retrieved by Cricket via the internet when it is connected to your Wi-Fi (which is described in the next section). Now let's configure it first.
For the moisture sensor it is recommended to set the following configuration:
- Set IO2 as an analog input
- Report moisture level every 2 hours
It will make your device running on 2xAAA alkaline batteries for more than 2 years.
Open TOE Developer Portal from any browser either from PC or mobile. You must register/login to Developer Portal to activate and configure the device in your account. Otherwise the device won't work.
After successful login / registration you need to click "Add new" device to activate your device in the system. You need to use the unique serial number printed on a label stick on the back of Cricket.
WARNING: You must keep the serial number for yourself only. Do not share it with anyone else. The serial number is a private MQTT communication account between your device and a smartphone or any other internet service. In other words keep it as secret as a PIN to a credit card.
Now you can configure your device.
Set the following configuration:
- RTC: ON
- RTC Units: Seconds(to be changed later)
- RTC Units Value: 30(to be changed later)
- IO2: Analog In
- IO3: Off
- Battery monitor: On
- Battery divider: 0
- Temperature sensor: Off
- Force updates on - IO1 Wake Up: On(to be changed later)
- Force updates on - RTC Wake Up: On(to be changed later)
- Post Events: leave all empty
Once you set your configuration hit the Save button.
Well done! You are almost there! Now you just need to connect your device to the internet over your Wi-Fi network. Please follow the next section how to do it.
In a few steps you will connect your device to the internet over your Wi-Fi network. All you need to do is to activate Cricket's private Wi-Fi hotspot and then open a private web page to pass your Wi-Fi network credentials. Please follow the steps below:
- Press and hold a button on the module for 5 seconds until the LED is constantly lit.
- Once the LED is constantly lit Cricket opened a private Wi-Fi hot spot. Connect from either a laptop or smartphone to the hot spot with the following credentials:SSID: toe_deviceNo password is required
- Once connected, open a private web page: http://192.168.4.1/index.html
NOTICE:make sure LED is still...