Check the product specifications section for the maximum allowed power voltage and amperage range and consequently always use a current transformer and a battery which works within that range. Libelium is only responsible for the correct operation of the device with the batteries, power supplies and chargers which it supplies.
USB cable in order to reprogram the node. It has been specially designed to be scalable, easy to deploy and maintain. Note: For a complete reference guide download the “Waspmote Plug & Sense! Technical Guide” in the Development section of the Libelium website. 2.1. Features •...
Waspmote Plug & Sense! 2.3. Solar Powered Battery can be recharged using 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 2: Waspmote Plug & Sense! powered by an external solar panel For the internal option, the solar panel is embedded on the front of the enclosure, perfect for use where space is a major challenge.
Waspmote Plug & Sense! Figure 4: Waspmote Plug & Sense! powered by an internal solar panel 2.4. Programming the Nodes Waspmote Plug & Sense! can be reprogrammed in two ways: 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.
Waspmote Plug & Sense! Over the Air Programming is also possible once the node has been installed. With this technique you can reprogram wirelessly one or more Waspmote sensor nodes at the same time by using a laptop and the Waspmote Gateway. Figure 6: Typical OTAP process 2.5.
This means the complete program for an specific application can be generated just in minutes. Check the Code Generator to see how easy it is at: http://www.libelium.com/development/plug_&_sense/sdk_and_applications/code_generator Figure 7: Code Generator 2.7.
Waspmote Plug & Sense! 2.10. Models There are some defined configurations of Waspmote Plug & Sense! depending on which sensors are going to be used. Waspmote Plug & Sense! configurations allow to connect up to six sensor probes at the same time. Each model takes a different conditioning circuit to enable the sensor integration.
Go to the application section in the Libelium website for a complete list of services. Figure 12: Smart Metering Waspmote Plug & Sense! model -12- v4.2...
Page 13
The sensor can be focused directly to the point we want to measure. Figure 14: Configurations of the ultrasound sensor probe Note: For more technical information about each sensor probe go to the Development section in Libelium website. -13- v4.2...
Hardware 3. Hardware 3.1. General Description The Smart Metering 2.0 Board for Waspmote has been conceived to monitor those parameters that may require to be controlled in a domestic environment. It includes sensors for power and water consumption control, displacement, luminosity and environmental humidity.
Sensors 4. Sensors 4.1. Current Sensor 4.1.1. Specifications Maximum primary current: 100A Turns ratio: 1:2000 approximately Minimum resolution: 130mA approximately Measurement range: 500mA ~ 40A Figure 16: Current clamp 4.1.2. Measurement Process The current clamp is a low cost sensor that outputs a current proportional to the current in the primary circuit. That current (related with the primary current through a 1:2000 ratio) is converted into voltage through a load resistor obtaining a signal readable by the mote’s analog-to-digital converter.
Page 16
Figure 17: Example of application with the current clamp sensor Figure 18: Example of application with the current clamp sensor You can find a complete example code for reading the current sensor in the following link: www.libelium.com/development/waspmote/examples/sm-4-current-sensor-reading -16- v4.2 Arrow.com.
Sensors 4.1.3. Socket The clamp should be connected to the board through the power jack connector in socket 1. We can see an image of socket 1 in figure 18. Figure 19: Picture of the Smart Metering 2.0 Board with socket 1 highlighted -17- v4.2 Arrow.com.
Sensors 4.2. Load Cell (AME, AMT and AMS from Hanyu) 4.2.1. Specifications AMT: Rate load: 300, 600, 1500, 3000g Sensitivity: 2.0±0.1mv/V Accuracy grade: 0.02%F.S Figure 20: Image of the load cell AMT Nonlinearity: ±0.02%F.S Recommended excitation voltage: +5V Maximum excitation voltage: +15V Operation temperature: -20ºC ~ +60ºC AME: Rate load: 3, 5, 6, 8, 10, 15, 20, 30, 35, 40, 50kg...
Page 19
Sensors You can find a complete example code for reading the load cells in the following links: www.libelium.com/development/waspmote/examples/sm-11-5v-load-cell-reading www.libelium.com/development/waspmote/examples/sm-12-10v-load-cell-reading Figure 23: Example of application with the load cell Output vs Load AMS-600kg AMT-3000g AME-50kg 10 11 12 13 14 15 16 17 18 19 20...
Sensors 4.2.3. Socket Any of the load cell models can be connected to socket 9 on the Smart Metering 2.0 Board. We can see in image 24 the pin correspondence between the input and output wires of the cell and the socket, in function of the supply voltage required. Figure 25: Image of socket 9 for load cells Note: The load cells can only be integrated in the Smart Metering PRO sensor board.
Below, a small sample of a code for reading the flow sensors is shown: SensorSmartv20.ON(); SensorSmartv20.setSensorMode(SENS_ON, SENS_SMART_FLOW); delay(50); float value_flow; value_flow = SensorSmartv20.readValue(SENS_SMART_FLOW, SENS_FLOW_FS100); You can find a complete example code for reading the flow sensors in the following links: www.libelium.com/development/waspmote/examples/sm-5-flow-sensor-on-3v3-socket-reading www.libelium.com/development/waspmote/examples/sm-6-flow-sensor-on-5v-socket-reading -21- v4.2 Arrow.com. Arrow.com. Arrow.com.
Sensors 4.3.3. Socket Flow sensors can be connected to sockets 5, for a 3.3V power supply, and 4, for a 5V power supply, as shown in figure 28. Figure 29: Picture of the sockets for the flow sensors 4.4. Ultrasonic Sensor (MaxSonar® from MaxBotix™) 4.4.1.
Page 23
Sensors LV-MaxSonar®-EZ0™ Operation frequency: 42kHz Maximum detection distance: 645cm Sensitivity (analog output): 2.5mV/cm (powered at 3.3V) – 3.8mV/cm (powered at 5V) Power supply: 3.3 ~ 5V Consumption (average): 2mA (powered at 3.3V) – 3mA (powered at 5V) Usage: Indoors Figure 32: Ultrasonic LV-MaxSonar®- EZ0 from MaxBotix™...
You can find a complete example code for reading the ultrasound sensors in the following links: www.libelium.com/development/waspmote/examples/sm-7-ultrasound-sensor-on-3v3-socket-reading www.libelium.com/development/waspmote/examples/sm-8-ultrasound-sensor-on-5v-socket-reading In figure 33 we can see a drawing of two example applications for the ultrasonic sensors, such as liquid level monitoring or presence detection.
Page 25
Sensors Figure 35: Diagram of the sensor beam extracted from the data sheet of the XL-MaxSonar®-WRA1™ sensor from MaxBotix Figure 36: Diagram of the sensor beam extracted from the data sheet of the LV-MaxSonar®-EZ0™ sensor from MaxBotix -25- v4.2 Arrow.com. Arrow.com.
Sensors 4.4.3. Socket Since this sensor may be powered at 3.3V or 5V, it can be placed on any of the sockets 2 and 8 (5V) or 3 and 6 (3,3V). In figure 36 sockets 2 and 3 are shown. Figure 37: Picture of sockets for ultrasonic sensors 4.5.
SensorSmartv20.setSensorMode(SENS_ON, SENS_SMART_HUMIDITY); delay(15000); float value_humidity; value_humidity= SensorSmartv20.readValue(SENS_SMART_HUMIDITY); You can find a complete example code for reading the humidity sensor in the following link: www.libelium.com/development/waspmote/examples/sm-2-humidity-sensor-reading Figure 39: 808H5V5 humidity sensor output taken from the Sencera Co. Ltd sensor data sheet -27- v4.2 Arrow.com.
Sensors 4.5.3. Socket This sensor may be connected to any of the sockets prepared for analog sensors powered at 5V, i.e. sockets2 and 8, shown in figure 39, where the function of each pin has been indicated. Figure 40: Picture of the sockets for the humidity sensor 4.6.
You can find a complete example code for reading the temperature sensor in the following link: www.libelium.com/development/waspmote/examples/sm-1-temperature-sensor-reading Figure 42: Graph of the MCP9700A sensor output voltage with respect to temperature, taken from the Microchip sensor’s data sheet -29- v4.2...
Sensors 4.6.3. Socket Placing the MCP9700A sensor on socket 6 is recommended. Even though, since the sensor may be powered with 3.3V or 5V, it can be placed on any of the sockets for analog sensors. We have an image of socket 6 in figure 42, where the function of each pin has been indicated.
Sensors You can find a complete example code for reading the LDR sensor in the following link: www.libelium.com/development/waspmote/examples/sm-3-ldr-sensor-reading 4.7.3. Socket This sensor has been thought to be placed on socket 7, specifically configured for it. We have an image of the sockets in figure 44, where the function of each pin has been indicated.
A sample code for reading this sensors on socket 3 is shown below: SensorSmartv20.ON(); SensorSmartv20.setSensorMode(SENS_ON, SENS_SMART_LD_3V3); delay(50); float value_ld; value_ld = SensorSmartv20.readValue(SENS_SMART_LD_3V3); You can find a complete example code for reading the displacement foil sensors in the following link: www.libelium.com/development/waspmote/examples/sm-9-linear-displacement-sensor-on-3v3-socket-reading www.libelium.com/development/waspmote/examples/sm-10-linear-displacement-sensor-on-5v-socket-reading Figure 47: Example of application for the displacement foil sensors -32- v4.2 Arrow.com. Arrow.com.
Sensors Output of the Foil Sensor Vcc = 3V3 Vcc = 5V 8 9 10 11 12 13 14 15 16 17 18 19 20 Wiper position (cm) Figure 48: Graph of the output of the sensor for the 3.3V sockets (3 and 6) and the 5V sockets (2 and 8) 4.8.3.
Sensors 4.9. Sockets for casing In case the Smart Metering 2.0 board is going to be used in an application that requires the use of a casing, such as an outdoors application, a series of sockets to facilitate the connection of the sensors through a probe has been disposed. These sockets (PTSM from Phoenix Contact) allow to assemble the wires of the probe simply by pressing them into it.
Page 35
Sensors In the figure below an image of the board with the sockets in it and the correspondence between its inputs and the sensor’s pins is shown. Figure 51: Image of the sockets for casing applications Figure 52: Image of the pin correspondence between the sockets and the sensors -35- v4.2 Arrow.com.
Board configuration and programming 5. Board configuration and programming 5.1. Hardware configuration The only hardware configuration needed by the user is that related to the correct sensor connection. The right way to connect the sensors to their respective socket is shown in sections “Socket”, dedicated to described each of the sockets of the board. 5.2.
Page 38
Board configuration and programming SensorSmartv20.readValue(SENSOR, TYPE) The function may be used to execute the configuration, conversion and reading process of any of the sensors on readValue the board through the analog-to-digital converter. In the variable the sensor to be read is introduced. The values that SENSOR can be assigned to this variable are: •...
Page 39
Board configuration and programming In the code below a complete example to read the temperature, current and liquid flow and transmit the data through the XBee 802.15.4 module is given: /* ------------Smart Metering v20 board example--------------- www.Libelium.com // Inclusion of the Smart Metering v20 Board library #include <WaspSensorSmart_v20.h> // Inclusion of the Frame library #include <WaspFrame.h> // Inclusion of the XBee 802.15.4 library #include <WaspXBee802.h> float current_value = 0; float temperature_value = 0;...
Page 40
Board configuration and programming // Create new frame (ASCII) frame.createFrame(ASCII,”Waspmote_Pro”); // Add the values read to the frame composition frame.addSensor(SENSOR_TCA, temperature_value); frame.addSensor(SENSOR_CU, current_value); frame.addSensor(SENSOR_WF, flow_value); // Init XBee xbee802.ON(); // Set parameters to packet: packet=(packetXBee*) calloc(1,sizeof(packetXBee)); packet->mode=BROADCAST; // Set destination XBee parameters to packet xbee802.setDestinationParams( packet, “000000000000FFFF”, frame.buffer, frame.length); // Send XBee packet xbee802.sendXBee(packet); // Turn off the XBee Module xbee802.OFF(); delay(100); //Put the mote to sleep PWR.deepSleep(“00:00:05:00”, RTC_OFFSET, RTC_ALM1_MODE1, ALL_OFF); -40- v4.2 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
Consumption 6. Consumption 6.1. Power control The Smart Metering 2.0 Board for Waspmote requires both the 3.3V and 5V power supplies output from the mote. In the PRO version of the board a DC-DC converter is used to get the 15V voltage needed by the 5V and 10V voltage references for load cells.
Consumption 6.3. Low consumption mode The Smart Metering 2.0 Board has been designed to minimize the consumption of the mote in operation conditions as long as in low consumption modes. Avoid activating all the sensors at the same time • Owing to the high consumption of some of the sensors of the Smart Metering 2.0 Board, it is highly advisable, with the purpose of avoiding current peaks that exceed the maximum supported by the switches, to avoid turning on many sensors at the same time, specially the load cells, that require the 15V DC-DC converter.
Page 43
Consumption 7. API Changelog Function / File Changelog Version Remember to include the WaspSensorSmart_v20 library in the top v.31 → v1.0 #include of your pde v.31 → v1.0 SensorSmartv20.ON() New function to turn on the board v.31 → v1.0 SensorSmartv20.OFF() New function to turn off the board Variable SENS_SMART_LCELLS disappears and is replace by SENS_ SMART_LCELLS_5V and SENS_SMART_LCELLS_10V, now it will not...
Maintenance 9. Maintenance • In this section, the term “Waspmote” encompasses both the Waspmote device itself as well as its modules and sensor boards. • Take care with the handling of Waspmote, do not drop it, bang it or move it sharply. •...
Disposal and recycling 10. Disposal and recycling • In this section, the term “Waspmote” encompasses both the Waspmote device itself as well as its modules and sensor boards. • When Waspmote reaches the end of its useful life, it must be taken to a recycling point for electronic equipment. •...
Need help?
Do you have a question about the waspmote Smart Metering 2.0 and is the answer not in the manual?
Questions and answers