Libelium Comunicaciones Distribuidas S.L. WPS-2400-V1 Benutzerhandbuch

Seite von 22
-5-
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. The user should take into account that the usage of this led will increase power 
consumption due to external LED consumes 4.4 mA.
Figure : Waspmote turned On
3.3. Resetting Waspmote Plug & Sense! with an external magnet
Waspmote Plug & Sense! it can be reset with an external magnet, with no contact. If one node stops working or if a defective 
behavior is detected, it would be costly to uninstall the node to bring it back to laboratory. This feature allows the network 
manager to reset the node in a quick and easy way.
The hardware consists of a reed switch connected to the Waspmote reset line. When the user gets the magnet close to the reed-
switch, the reset is activated. When the user moves the magnet away, the reset line is released (the external LED will blink) and 
Waspmote executes the bootloader first and then, the setup function. After the setup, it will continue with the loop function. 
Next pictures shows the right way to reset the node using an external magnet, first moving it closer, and then moving it away.
Figure : Moving the magnet closer to the node.