In this device kit, we’ll be attaching an XTP25N-030-0300F Temperature Sensor to an Avimesa 1000 for temperature monitoring via Avimesa.Live. The XTP25N-030-0300F Temperature Sensor is a type of sensor known as a 4-20 mA current loop sensor (420 sensor for short). 420 sensors are used heavily in industry today and can measure a myriad of metrics. The Avimesa 1000 is Avimesa’s flagship hardware product that offers up to seven 420 sensor connections and IoT communication via BLE. In order for an Avimesa 1000 to communicate with the Avimesa cloud, you’ll also need an Avimesa IoT Gateway. Avimesa currently offers a Raspberry Pi IoT Gateway implementation that we’ll use for this tutorial. The last piece we’ll need before we get started is an Avimesa.Live account to visualize our temperature readings.
- an XTP25N-030-0300F Temperature Sensor w/ cabling (CD12M)
- an (1) Avimesa 1000 w/ power supply
- a Raspberry Pi IoT Gateway w/ power supply (5V DC via micro-USB)
- an Avimesa.Live account
- You’ll also need a computer with WiFi connectivity
Avimesa 1000 Setup
- Make sure the Avimesa 1000‘s power switch (SW2) is in the off position.
- Connect your XTP25N-030-0300F Temperature Sensor to CHANNEL_0 of the Avimesa 1000 (labels are on the back)
- (1) Plug the male connector of the XTP25N-030-0300F Temperature Sensor into the female connector of the CD12M cabling:
- (2) Connect the exposed wiring of the CD12M to CHANNEL_0 of the Avimesa 1000. The connections made here are shield (or ground), power, and return; there is a key on the Avimesa 1000 with this information as well. Connections are made as follows:
- (3) Connect the 24V DC Avimesa 1000 power supply to a 120V AC power outlet and then attach it to the Avimesa 1000:
- (4) The first blue LED should begin to blink (it’s waiting for an Avimesa IoT Gateway)
Avimesa Raspberry Pi IoT Gateway Setup
- Connect the 5V DC power supply to a 120V AC power outlet and then connect the micro-USB end to the RPi
- Connect the RPi to internet using one of the following methods (internet connectivity verified by visible LED being solid green):
- Connect an ethernet cable to the RPi and to a router with internet
- Connect the RPi to Wifi doing the following:
- Hold down the singular button on the RPi until the LED turns solid red
- On a computer with WiFI connectivity, connect to the Avimesa-Gateway network
- You may have to refresh the list of available networks a few times
- Browse to http://192.168.0.1
- (Under Network) Scan for the available networks
- Select your WiFi network from the Router SSID dropdown
- Enter the Router Password if applicable
- Save (The device will then reboot and you should have internet)
Hardware Setup Verification
All you should have to do here is verify that the Avimesa 1000’s LEDs are doing the following sequence: first LED is solid blue for 1 – 3 seconds, first LED turns off and second LED is solid blue for 1 – 3 seconds, and, finally, second LED turns off and third LED is solid blue for 3 – 5 seconds. This sequence should repeat; if the first LED is continuously blinking (< 1 second blinks), visit here to figure out what’s going on.
- Login to Avimesa.Live
- Find the Avimesa 1000 you’re using in the Devices section (First four characters of the Device ID are pasted on the Avimesa 1000 with the QR Code – QR Code contains the entire Device ID)
- Click into the Device that represents (or is) your Avimesa 1000 (This is not clicking the gear icon)
- Once in your Avimesa 1000’s Device page, scroll down to the Sensors section.
- Now let’s add a sensor:
- Click the + for adding a new sensor
- Enter something like the following (channel is important here as well as the minimum and maximum values – they should match the channel you connected the sensor to and the minimum and maximum values for the sensor you’re using):
- Finally, Add sensor
Now, under the Avimesa 1000 Device, there will be a Sensor Graphs section where you can select your sensor and view your live data!