Waspmote Plug & Sense! User Manual
Index © Libelium Comunicaciones Distribuidas S.L. INDEX 1. Introduction.......................................................................................................................................... 3 2. General and safety information.......................................................................................................... 3 3. Waspmote Plug & Sense!’s Hardware Setup....................................................................................... 4 3.1. ON/OFF Button ......
1. Introduction The aim of this manual is to introduce the user to Waspmote Plug & Sense! in a practical way. This document applies to the following Waspmote Plug & Sense! models, approved for FCC and IC: Model FCC ID IC Waspmote Plug & Sense! 802.15.
3. Waspmote Plug & Sense!’s Hardware Setup Here we show the most basic points about the hardware configuration: 3.1. ON/OFF Button This button is used to turn ON or OFF Waspmote. It is a latch type button with two static positions as shown below. In ON position, the button remains a bit lower than LED ring.
3.2. External LED ON / OFF button includes a red ring led, which can be managed by software. This led can be used for instance to know that Waspmote is ON, or for debugging purposes at developing phase. By default, Waspmote Plug & Sense! comes with a code that blinks briefly (3 times in less than one second) this led when it is turned ON. The LED can be managed specifying ON time or just setting this state with specific API functions.
Figure : Moving the magnet away from the node. The magnet is made of neodymium. It is a special, high-power magnet. We only advise to use the magnet Libelium provides. It is not mandatory, but highly recommended to consider this feature when designing the project. The user should design the software in a way the node can be reset if things go wrong. Remember that laboratory tests are always needed to validate the feature before your final deployment.
3.4. USB This connector is used to upload code into Waspmote with a male to male USB cable provided by Libelium. Just connect one side of the cable to this connector, removing protection cap and connect the other side to a PC to upload a code. Next picture shows an example. Figure : USB connector and protective cap Figure : Connecting the USB cable to Waspmote When uploading processes are finished, do not forget to screw firmly the protection cap to avoid connector damage.
3.4.1. External SIM socket The External SIM socket replaces the USB socket in two devices: •• •• Waspmote Plug & Sense! 4G Meshlium The External SIM socket is composed of 2 connectors: •• •• micro-SIM card micro-USB (type B) Figure : External SIM socket in a Plug & Sense! 4G The operation with the micro-USB socket is just the same than with the normal USB socket. Just remember to use a micro-USB cable.
The micro-SIM card connector allows the user to connect the SIM card he likes from the outside. You can ask your telecommunication provider for a micro-SIM card. Alternatively you can take a normal SIM card and transform it into a microSIM card with a SIM card cutter. Besides, the micro-SIM card connector has a push-pull mechanism, so it is really easy to remove the card with the aid of one nail.
3.5. Antenna By default Waspmote Plug & Sense! has one external antenna with a standard reverse polarized SMA connector. This connector allows to connect the RF antenna. Figure : Antenna connector of the enclosure To ensure good RF coverage, be sure antenna points to the sky and also be sure antenna is screwed completely to the connector. To connect the antenna, just align it with the connector and screw it carefully. Antenna must be connected in order to ensure RF communication.
Figure : Recommended tape Figure : Ensure antenna remains in the right position Do not try to connect other kind of antennas which do not match with SMA RP standard connector and also other antennas not provided by Libelium. Waspmote Plug & Sense! 4G is a special case because it has 3 connectors for 3 antennas: •• •• •• Cellular communications (main) Cellular communications (receiver diversity, secondary antenna) GPS signal receiver The 3 antennas are just the same model.
4. Waspmote IDE: Download and Installation The first step is to install the Waspmote IDE (Integrated Development Environment). This IDE can be found on: http://www.libelium.com/development/plug_&_sense/sdk_and_applications The Waspmote IDE is based on the open source Arduino platform compiler, following the same style of libraries and operation. It is important to use the version found on Libelium website and no other version of Arduino IDE.
5. Compiling a New Program To use the Waspmote IDE compiler we must run the executable script called ‘Waspmote’, which is in the folder where the compiler has been installed. Waspmote IDE is divided into 4 main parts which can be seen in the following figure. IDE options Buttons: opening and uploading codes Main Code Output messages Figure : IDE – Waspmote parts •• •• •• The first part is the menu which allows configuration of general parameters such as the selected serial port.
Figure : IDE – Waspmote panel of buttons The next step is to configure the folder where the created programs are going to be saved. In the Waspmote IDE, this folder is called ‘sketchbook’ and can be configured by accessing the ‘File/Preferences’ tab. Clicking on this tab will open a new window where the location of the sketchbook can be indicated. Once the sketchbook folder path is indicated, the downloaded test program must be saved in this folder.
6. Uploading a New Program to Waspmote Plug & Sense! Using the USB connector, a new code can be uploaded to Waspmote without opening Waspmote Plug & Sense!. Just connect one side of the USB cable to this connector, removing protection cap if necessary and connect the other side to a PC. Remember that Waspmote must be ON to allow uploading a new code. Next steps describe this process in detail. Step 1: Open the USB connector Remove the protection cap of the USB connector.
Step 2: Connect the USB cable to Waspmote Plug & Sense! Connect one side of the male-to-male USB cable to the USB connector. For models with 4G, use a micro-USB cable.
Step 3: Connect the USB cable to the PC Connect the other side of the USB cable to your PC. Figure : Connecting the node to a PC Step 4: Turn On Waspmote Plug & Sense! Be sure you have turned ON the node by pressing ON/OFF button. Figure : Turning ON Waspmote Step 5: Open Waspmote IDE Now open Waspmote IDE. If you do not have Waspmote IDE already installed in your PC, then go to the Development section of Libelium website to download it.
Step 6: Select the corresponding code Build your own code for your model using the online Code Generator (http://www.libelium.com/development/waspmote/ code_generator) provided by Libelium at the Development section of Libelium website (see corresponding section for details about how to use the code generator). Download and open it in Waspmote IDE Plug & Sense!.
Step 8: Select the USB port Select the corresponding serial port by going to tools/serial port. If you are unable to see the proper USB port maybe you should install the latest FTDI drivers on your PC. Figure : Selecting the USB port for Waspmote Plug & Sense! Note: the name of the USB ports depends on the OS and the particular PC you have. The best way to find the USB where Waspmote is connected is trial & error.
Step 10: Upload the code Now, press the upload button and see messages coming out from IDE. During a while you will see message “uploading to I/O board”. Figure : Uploading a code for Waspmote Plug & Sense! Wait a few seconds until the process ends and check there are no error messages, just “Done uploading” message. Step 11: Open the Serial Monitor If uploading processes are successfully completed, open Serial Monitor to see the output of the uploaded code.
7. Certifications information This document applies to the following Waspmote Plug & Sense! models, approved for FCC and IC: Model FCC ID IC Waspmote Plug & Sense! 802.15.
Wireless notice Le présent appareil est conforme à l’exposition aux radiations FCC / ISED définies pour un environnement non contrôlé et répond aux directives d’exposition de la fréquence de la FCC radiofréquence (RF) et RSS‐102 de la fréquence radio (RF) ISED règles d’exposition. L’émetteur ne doit pas être colocalisé ni fonctionner conjointement avec à autre antenne ou autre émetteur. Cet appareil doit être installé et utilisé à une distance supérieure à 20 cm du corps humain.