Libelium Waspmote Manual

4-20 ma current loop sensor board
Hide thumbs Also See for Waspmote:

Advertisement

Quick Links

4-20 mA Current Loop
Sensor Board

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Waspmote and is the answer not in the manual?

Questions and answers

Summary of Contents for Libelium Waspmote

  • Page 1 4-20 mA Current Loop Sensor Board...
  • Page 2: Table Of Contents

    © Libelium Comunicaciones Distribuidas S.L. INDEX 1. General ..............................4 1.1. General and safety information ..............................4 1.2. Conditions of use ..................................4 2. Waspmote Plug & Sense! ........................5 2.1. Features ......................................5 3. General view ............................6 3.1. Specifications ....................................6 3.2. Parts included ....................................9 3.3.
  • Page 3 Index 11. Applications ............................. 29 12. Libelium library ..........................30 13. Library functions ..........................31 13.1. Library constructor ................................31 13.2. Switching the board on ................................ 31 13.3. Switching the board off ................................ 31 13.4. Reading data .................................... 32 13.5. Current loop state................................... 32 14.
  • Page 4: General

    • Waspmote is a device to be integrated in a casing so that it is protected from environmental conditions such as light, dust, humidity or sudden changes in temperature. The board supplied “as is” is not recommended for a final installation as the electronic components are open to the air and may be damaged.
  • Page 5: Waspmote Plug & Sense

    2. Waspmote Plug & Sense! The Waspmote Plug & Sense! line allows you to easily deploy Internet of Things networks in an easy and scalable way, ensuring minimum maintenance costs. The platform consists of a robust waterproof enclosure with specific external sockets to connect the sensors, the solar panel, the antenna and even the USB cable in order to reprogram the node.
  • Page 6: General View

    General view 3. General view This section shows main parts of Waspmote Plug & Sense! and a brief description of each one. In later sections all parts will be described deeply. 3.1. Specifications • Material: polycarbonate Sealing: polyurethane • Cover screws: stainless steel •...
  • Page 7 General view Figure : Control side of the enclosure Figure : Control side of the enclosure for 4G model Figure : Sensor side of the enclosure v7.1...
  • Page 8 General view Figure : Antenna side of the enclosure Figure : Front view of the enclosure Figure : Back view of the enclosure v7.1...
  • Page 9: Parts Included

    Figure : Waspmote Plug & Sense! accessories: 1 enclosure, 2 sensor probes, 3 external solar panel, 4 USB cable, 5 antenna, 6 cable ties, 7 mounting feet (screwed to the enclosure), 8 extension cord, 9 solar panel cable, 10 wall plugs & screws...
  • Page 10: Identification

    Model identification colour Enclosure model Figure : Front sticker of the enclosure There are many configurations of Waspmote Plug & Sense! line, all of them identified by one unique sticker. Next image shows all possibilities. Figure : Different front stickers -10- v7.1...
  • Page 11 General view Moreover, Waspmote Plug & Sense! includes a back sticker where it is shown identification numbers, radio MAC addresses, etc. It is highly recommended to annotate this information and save it for future maintenance. Next figure shows it in detail.
  • Page 12: Sensor Probes

    The battery can be recharged using the waterproof USB cable but also the internal or external solar panel options. The external solar panel is mounted on a 45º holder which ensures the maximum performance of each outdoor installation. Figure : Waspmote Plug & Sense! powered by an external solar panel -12-...
  • Page 13 For the internal option, the solar panel is embedded on the front of the enclosure, perfect for use where space is a major challenge. Figure : Internal solar panel Figure : Waspmote Plug & Sense! powered by an internal solar panel -13- v7.1...
  • Page 14: Programming The Nodes

    The basic programming is done from the USB port. Just connect the USB to the specific external socket and then to the computer to upload the new firmware. Figure : Programming a node Besides, Libelium is developing a graphical and intuitive programming interface, the Code Generator (coming in 2017). Figure: Code Generator web application -14-...
  • Page 15 Over the Air Programming (OTAP) is also possible once the node has been installed (via WiFi or 4G radios). With this technique you can reprogram, wireless, one or more Waspmote sensor nodes at the same time by using a laptop and Meshlium.
  • Page 16: Radio Interfaces

    Radio interfaces 7. Radio interfaces Certification Radio Protocol Frequency bands Transmission power Sensitivity Range* XBee-PRO 802.15.4 EU 802.15.4 2.4 GHz 10 dBm -100 dBm 750 m FCC, IC, ANATEL, XBee-PRO 802.15.4 802.15.4 2.4 GHz 18 dBm -100 dBm 1600 m XBee 868LP 868 MHz 14 dBm...
  • Page 17: Industrial Protocols

    Industrial Protocols 8. Industrial Protocols Besides the main radio of Waspmote Plug & Sense!, it is possible to have an Industrial Protocol module as a secondary communication option. This is offered as an accessory feature. The available Industrial Protocols are RS-232, RS-485, Modbus (software layer over RS-232 or RS-485) and CAN Bus. This optional feature is accessible through an additional, dedicated socket on the antenna side of the enclosure.
  • Page 18 Industrial Protocols Finally, the user can choose between 2 probes to connect the desired Industrial Protocol: A standard DB9 connector and a waterproof terminal block junction box. These options make the connections on industrial environments or outdoor applications easier. Figure: DB9 probe Figure: Terminal box probe -18- v7.1...
  • Page 19 The applications for this Plug & Sense! model are focused on adding wireless connectivity to 4-20 mA devices and connecting them to the Cloud. Figure: 4-20 mA Current Loop Waspmote Plug & Sense! model Sensor sockets are configured as shown in the figure below.
  • Page 20: Introduction

    This guide explains the 4-20 mA Current Loop Sensor Board features and functions. This product was designed for Waspmote v12 and continues with no changes for Waspmote v15. There are no great variations in this library for our new product line Waspmote v15, released on October 2016.
  • Page 21: Transmitters Categories

    Introduction 9.3. Transmitters categories Depending on the source of current for the loop, devices may be classified as active (supplying power) or passive (relying on loop power). 9.3.1. Type 2 loop current Type 2 transmitters are energized by the current loop, where the supply voltage is included in the receptor. The transmitter is floating and the ground is in the receptor.
  • Page 22: Type 4 Loop Current

    Introduction 9.3.3. Type 4 loop current Type 4 transmitters have 4 wires powered by the source voltage in them. The transmitter powers the current loop and the receptor acts a floating load. Figure : 4-20 mA type 4 connection -22- v7.1...
  • Page 23: Hardware

    Output voltage max: +12 V Output current max: 180 mA • • Converting resistance tolerance: 0.1% Temperature Range: [0 °C, 85 °C] • Dimensions: 73.5 x 51 x 1.3 mm • Figure : 4-20 mA Board connected over Waspmote -23- v7.1...
  • Page 24: Connection Diagram

    Hardware 10.2. Connection diagram The 4-20 mA Board for Waspmote has 4 input channels which allow the user to convert signals that come from 3 party sensors or devices with this industrial standard. The 4-20 mA Board works with type 2, 3 and 4 current transmitters. Each channel can be configured for working with these types of connections.
  • Page 25: Channel Wiring For Plug & Sense

    Hardware 10.3. Channel wiring for Plug & Sense! The 4-20 mA board for Plug & Sense! has the same features as the Waspmote version. The four channels are accessible through the sensor sockets following this correspondence: channel 1 → socket A •...
  • Page 26: Sensor Connection On Plug & Sense

    10.4.1. Terminal box probe To provide access to the board signals in the Waspmote Plug & Sense! encapsulated line, a waterproof terminal block junction box is provided as an accessory probe, making the connections on industrial environments or outdoor applications easier.
  • Page 27: Db9 Probe

    Figure : Terminal box probe Note: Please double check the terminal block connections to avoid wrong wirings or short circuits between poles. The Waspmote Plug & Sense! unit can be seriously damaged. Besides, ensure that the junction box is properly closed to avoid damage in outdoors applications.
  • Page 28: Connectors

    Hardware 10.6. Connectors For connecting the 4-20 mA sensors, the 4-20 mA Board includes PTSM connectors. These connectors (PTSM from Phoenix Contact) allow to assemble the wires of the probe simply by pressing them into it. To remove the wire, press the slot above the input pin and pull off the wire softly.
  • Page 29: Applications

    Figure : 4-20 mA wireless application 2º- Connect to the Cloud 4-20 mA devices Waspmote can be configured to read the information coming from the 4-20 mA sensors and send it wirelessly directly to the Cloud using WiFi, GPRS, GPRS+GPS, 3G and 4G radio interfaces.
  • Page 30: Libelium Library

    Libelium library 12. Libelium library It is mandatory to include the 4-20 mA library when using this board. The following line must be introduced at the beginning of the code: #include <currentLoop.h> Waspmote’s API 4-20 mA files: • currentLoop.cpp • currentLoop.h API’s functions...
  • Page 31: Library Functions

    The 4-20 mA Board includes a 12 V output that can be used to supply sensors, and can be controlled from the library functions, by a digital pin of Waspmote. The electronic measurement circuits use the 5 V power (so it is always mandatory to switch this option on), and is necessary to switch on this power supply before getting data from the sensors.
  • Page 32: Reading Data

    USB.print(current); USB.println(“mA”); See an example of use here: http://www.libelium.com/development/waspmote/examples/4-20ma-01-current-loop-basic-example 13.5. Current loop state One of the most important features of the 4-20 mA standard is the possibility of detecting a broken wire or failed instrument. The 4-20 mA library includes a function to detect the current state of the line.
  • Page 33: Real Application Example

    Real application example 14. Real application example As a real application we are going to connect a generic 4-20 mA sensor to the 4-20 Sensor Board and power the sensor with the Board’s 12 V output. This sensor is a type 2 transmitter. Type 2 transmitters are energized by the current loop, where the supply voltage is included in the receptor.
  • Page 34 Real application example After connecting the sensor, you only have to upload one of the example codes included in the Waspmote IDE, for instance the example number one: http://www.libelium.com/development/waspmote/examples/4-20ma-01-current-loop-basic-example In the serial monitor you should see that the sensor is transmitting 4 mA. The 4 mA “bottom of span” signal allows the receiver to detect a broken wire or failed instrument.
  • Page 35: Code Examples And Extended Information

    ------ [4-20mA_01] Current Loop Basic Example -------- Explanation: This sketch shows how to use the most important features of the 4-20 mA Current Loop Board in Waspmote. This standard is used to transmit information of sensor over long distances. Waspmote uses analog inputs for reading the sensor values.
  • Page 36 Code examples and extended information // Get the sensor value in int format (0-1023) int value = sensor.readChannel(); USB.print(“Int value read from channel 1: “); USB.println(value); // Get the sensor value as a voltage float voltage = sensor.readVoltage(); USB.print(“Voltage value rad from channel 1: “); USB.print(voltage);...
  • Page 37: Api Changelog

    API changelog 16. API changelog Keep track of the software changes on this link: www.libelium.com/development/waspmote/documentation/changelog/#4_20_mA -37- v7.1...
  • Page 38: Documentation Changelog

    Documentation changelog 17. Documentation changelog From v7.0 to v7.1: • Added references to the integration of Industrial Protocols for Plug & Sense! -38- v7.1...
  • Page 39: Certifications

    Libelium offers 2 types of IoT sensor platforms, Waspmote OEM and Plug & Sense!: • Waspmote OEM is intended to be used for research purposes or as part of a major product so it needs final certification on the client side. More info at: www.libelium.com/products/waspmote...

This manual is also suitable for:

Waspmote plug & sense! 4-20 ma current loop

Table of Contents