Page 3
Index 5. Board configuration and programming ..................18 5.1. Focusing the lens with microSD card ..........................18 5.2. Focusing the lens via videocall ............................19 5.3. Focusing the lens with calibration program (only for Windows) ................20 5.4. Battery ......................................22 5.5.
• 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.
2.1. Introduction The new Video Camera Sensor board in conjunction with the 3G module for Waspmote allows to take photos (VGA - 640x480) and record videos (QVGA - 320x240) and send them to the Cloud by using high speed WCDMA and HSPA cellular networks in the same way as Smartphones do.
Hardware 2.3. Specifications Weight (with sensors): 43gr Dimensions: 73 x 53 x 1.3 mm Dimensions Waspmote + 3G module + Videocamera: 73 x 62 x 48 mm Temperature Range: [-25ºC, 70ºC] Figure : Video Camera Sensor Board 2.4. Electrical Characteristics IR LED power voltages: 3,6V –...
The board needs to be assembled along with the 3G/GPRS board as the photos and video are handled and stored by it. Once they are stored in the internal SD of the 3G module, they can be sent using the 3G radio or passed to the Waspmote MCU and then sent by other radios such as the WiFi.
Page 8
Figure : Mounting 3G/GPRS board in Waspmote • Insert the Video Camera Sensor board on Waspmote. Beware, the last two pins of the 2x12 connector (the nearest of the corner) must be empty. Figure : Mounting Video Camera Sensor Board in Waspmote •...
Consumption (active): 48 mA Angle of view: 70º 3.1.2. Measurement Process The image sensor is fully managed by Waspmote 3G/GPRS board. Please, refer to API chapter for more information. 3.2. Luminosity sensor 3.2.1. Specifications Resistance in darkness: 20MΩ...
Sensors 3.2.4. Socket Figure : Socket for luminosity sensor 3.3. IR sensor 3.3.1. Specifications Peak sensitivity wavelength: 860nm Collector dark current (Ee=1mW/cm2): 100nA Operating Temperature: -25ºC ~ +85ºC Figure : IR sensor Figure : Photo Current vs. Irradiance taken from the Premier Farnell Group sensor data sheet -10- v4.3...
Sensors 3.3.2. Usage With this sensor we can know the level of IR light and we can decide if enable the IR cut filter filtering the IR light or disable the IR cut filter allowing the pass to all light. 3.3.3.
Sensors 3.4.2. Usage This sensor allows to the Video Camera Sensor Board generate an interrupt in Waspmote when the presence sensor detects, for example, a person or an animal. 3.4.3. Measurement process The PIR sensor (Passive Infra-Red) is a pyroelectric sensor mainly consisting of an infra-red receiver and a focusing lens that bases its operation on the monitoring of the variations in the levels of reception of detected infra-reds, reflecting this movement by setting its output signal high.
The connection between Waspmote and the PIR sensor has been designed to generate an interruption. When the PIR detects a change of state, it changes his output from ‘0’ to ‘1’ . This change generates an interruption in Waspmote by UART1. Before to use the UART1, the monitoring pin ( ) must be forced to ‘0’...
4. Night Vision The Video Camera Sensor Board has been developed to allow Waspmote to take pictures and record video with few light or in total darkness. To use this feature the Video Camera Sensor Board has integrated 22 IR LEDs to illuminate the focused zone.
Night Vision 4.1. IR lighting 4.1.1. Description The Video Camera Sensor Board have 22 IR LEDs divided in two blocks controlled each one by transistors, to give extra ilumination and record with few light or in the night. Block 1 can be controlled by pin ) and the block 2 DIGITAL6 POWER_LED...
Page 16
Night Vision Figure : Relative Intensity vs. Forward Current taken from the Everlight Electronics Co., Ltd. Figure : Relative Radiant Intensity vs. Angular Displacement taken from the Everlight Electronics Co., Ltd. data sheet -16- v4.3...
625nm. The other one allows to pass the light spectrum between 400nm and 1100nm. This IR cut filter can work with Waspmote in all positions. The filter are activated when the Waspmote uses the camera. The user can select the filter with the function selectFilter() Please, refer to API chapter for more information.
5. Board configuration and programming 5.1. Focusing the lens with microSD card 1º Load the code “Focusing the lens with microSD” in Waspmote. The code is in the examples section. 2º Open the serial monitor and wait for the picture 3º...
5.2. Focusing the lens via videocall A fast method to calibrate the lens is to make a videocall with Waspmote assembled and in the installation place. 1º Open the code “Focusing the lens via videocall”, put your phone number in ‘phone_number’ variable and load the code in Waspmote.
5.3. Focusing the lens with calibration program (only for Windows) 1º Load the code “Focusing the lens with calibration program” in Waspmote from 3G examples of Waspmote IDE 2º Connect the Waspmote 3G/GPRS board to your computer with the miniUSB connector. Then power on Waspmote.
Page 21
5º Tighten the fixing screw of the lens and press disconnect button in CameraDemo. Close CameraDemo and unplug the USB from Waspmote 3G/GPRS board. Figure : Tighten the fixing screw Figure : Disconnect the module and close CameraDemo Now, the Video Camera Sensor Board has the lens calibrated. You can load your code on Waspmote. -21- v4.3...
Waspmote + Video Camera Sensor Board has to be long time running. 5.5. API The Video Camera Sensor Board is fully managed by Waspmote 3G/GPRS board. In consequence, Waspmote 3G/GPRS API must be used. For more information, please refer to the chapter “Camera related functions” in the Waspmote 3G/GPRS Networking Guide.
Board configuration and programming 5.5.3. Configuring the resolution The camera can be configured with 6 different resolutions. The next table shows the resolution, the number of horizontal and vertical pixels and the library parameter to use with the function. Resolution HxV(pixels) library parameter STAMP...
Board configuration and programming 5.5.5. Configurig the rotation The image of the camera can be rotated in steps of 90 degrees: 0, 90, 180 and 270. Example of use: // Rotates the camera 90 degrees _3G.cameraRotation(“90”); This function returns: • ‘1’...
Board configuration and programming 5.5.7. Configuring the picture name The name of the pictures can be customized by the user. The name can have up to 20 characters. The name is only a part of the whole name; the whole name is namexxxx.jpg where xxxx is an index of the picture after user defined name. Example of use: // Sets the name of the pictures // The final name is → Test_name_xxxx.jpg...
Board configuration and programming 5.5.10. Recording videos There are 4 functions related with recording a video: • . Starts the recording of the video startVideo() • . Pauses the recording of the video pauseVideo() • . Resumes the recording of the video resumeVideo() •...
Board configuration and programming This function returns: • ‘1’ if success • ‘0’ if error • ‘-1’ if error connecting to the other party, • ‘-2’ if error with setup or the other party hangs the call • ‘-3’ if error connecting the videocall •...
// Power on IR LED block 1 _3G.powerIRLED(1); This function returns nothing. 5.5.16. Managing interrupts Presence sensor allows to generate interrupts in Waspmote. The function sets the 3G/GPRS Board in enablePIRInterrupt() sleep mode, it activates the presence sensor and it waits until the sensor be ready.
* This example shows how use the presence sensor interrupt taking a * picture and uploading it when the interrupt occurs. To use this example, a Video Camera Sensor Board with presence sensor is required. Copyright (C) 2013 Libelium Comunicaciones Distribuidas S.L. http://www.libelium.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Page 30
Board configuration and programming void loop(){ USB.print(F(“Enabling PIR interrupt...”)); _3G.enablePIRInterrupt(); USB.println(F(“ready”)); // waits the interrupt PWR.sleep(0); }while ( intFlag & PIR_3G_INT == 0); USB.println(F(“PIR interrupt detected”)); // disables the interrupt and start communications with the 3G module _3G.disablePIRInterrupt(1); USB.println(F(“Changes power mode to full”)); _3G.setMode(_3G_FULL);...
Page 31
Board configuration and programming if (answer == 1) USB.print(F(“Uploading the picture...”)); USB.println(picture_name); // uploads file from SD card to the FTP server: answer = _3G.uploadFile(4, picture_name, 60); if (answer == 1) USB.println(F(“Upload done”)); else if(answer == -2) USB.print(F(“Upload failed. Error code: “)); USB.println(answer, DEC); USB.print(F(“CME error code: “)); USB.println(_3G.CME_CMS_code, DEC); else USB.print(F(“Upload failed.
6. Sending the photos and videos Waspmote can take pictures from two states. When Waspmote and the 3G/GPRS are in sleep mode it can wake up and take a photo or start recording a video in 1,3 or 1,7 seconds according to the configuration of the camera. If the module 3G/GPRS starts from the OFF state, the time required increases to 11-15 seconds due to the initialization time required.
Page 33
115200 bps). The second one is the transmission speed of the 3G connection (HSUPA up to 5.76Mbps). This allows a fast upload of the file (20 seconds to configure the access to the FTP server and upload 100KB) and a reduction of the time Waspmote in powered ON.
3G/GPRS radio is the fast way to upload the multimedia content obtained from the Video Camera Sensor Board. With this method, Waspmote only manages the commands to work with the 3G/GPRS and the Video Camera Sensor Board (steps 1 and 3).
Step 2: 3G/GPRS Board takes photo or video data from the sensor and stores in its own microSD card. • Step 3: Waspmote manages the commands to extract the file and store it in the microSD card. • Step 4: 3G/GPRS Board sends the file to Waspmote.
Wi-Fi libraries before the 3G libraries. The function, , needs the next input parameters: sendFiletoWiFiFTP • Name of the file to send in Waspmote 3G/GPRS Board. The file must be in the current directory • Name of the file to save in the FTP server •...
Page 37
Sending the photos and videos Example of use: // Sends PIC_0003.jpg from C:/Picture to an FTP server _3G.sendFileto3GFTP(1, “PIC_0003.jpg”, “ftp.server.com”, “FTP_port”, 1, “FTP_username”, “FTP_password”); The function returns: • ‘1’ on success • ‘-2’ if error setting the connection parameters (APN) • ‘-3’ if error setting the FTP server (‘-13’ if CME error available) •...
Sending the photos and videos 6.4.3. Sending a picture as attachment of an email with 3G/GPRS Board The function sends an email with a picture or a video attached. The parameters needed in order are the sendFileto3Gemail next: • SMTP server •...
This board uses four power supplies. The image sensor, luminosity sensor, IR sensor and logic of IR cut filter driver are powered through 3’3V sensor power. The image sensor also uses 2’8V power supply from Waspmote 3G/GPRS board (control isn’t necessary).
API changelog 8. API changelog Keep track of the software changes on this link: www.libelium.com/development/waspmote/documentation/changelog/#Videocamera -40- v4.3...
Documentation changelog 9. Documentation changelog From v4.2 to v4.3 • References to the new Sigfox module From v4.1 to v4.2 • Added notes about transmission times when the module sends a picture. • Feature for transmission of files (photo/video) to Meshlium via XBee was discontinued •...
10. 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.
11. 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 and is the answer not in the manual?
Questions and answers