Seeeduino-Stalker v3

Seeeduino Stalker v3.0 is a feature rich Arduino compatible Wireless Sensor Network node especially useful for outdoor data-logging applications . It has a X-Bee carrier board for using with X-Bee modules, such as GPS Bee, Bluetooth Bee and Wifi Bee, etc. Its modular structure and onboard peripherals makes it convenient to log time stamped sensor data on a periodic basis. Seeeduino Stalker comes with a RTC with backup power, SD Card Socket, Bee Socket and Solar based Li-Ion Battery Charger. The Seeeduino Stalker is a good candidate for all your tracking, monitoring and control projects.


NOTE: Seeeduino Stalker v3.0 is the latest version of this board. Please Look here for comparison with older versions of this board. Seeeduino Stalker V3 has many features and offers ways to modify the functionalities by soldering or disconnecting PCB jumpers. Please understand this document and refer to the schematic before programming.


Note that we have updated and made some modifications to Seeeduino Stalker. And we will cover it later in section Hardware Overview of this page.

Version Tracker

Product version Release date Support status Notes
Seeeduino Stalker v3(v3.0, older version) Oct 2015 Supported None
Seeeduino Stalker v3(v3.1, older version) July 2016 Supported None




Features



Specification

Parameter Value
MCU ATmega328
Crystal Oscillator 8 MHz
RTC DS1337S
I/O Logic 3.3v
Board for Arduino IDE Arduino Pro or Pro Mini (3.3v , 8 MHz)w/ATmega328
Power Supply 3.7v LiPo Battery, Use 5VDC solar panel for charging the battery.
Power Connector 2 pin JST/ USB
Connectivity I2C, UART, SPI
Open Circuit Current 6 mA max
Charging Current 300mA
Maximum Current on 3.3v port 800mA
Size of PCB 86.74mm x 60.96mm

Application Ideas



Hardware Overview

Note that we have updated and made some modifications to Seeeduino Stalker (from version v3.0 to v3.1).

1. We add a switch to select between hardware serial ports (through D0, D1) and software serial port (that is, virtual serial port; through D5, D6). The switch is marked in blue rectangle like follows.
2. For RTC circuitry, there only one power supply (from lithium battery) now. And the applicable lithium polymer battery model is CR1120.
3. For RTC circuitry, we add two toggle switch to enable two interrupts (INT A and INT B of RTC corresponds INT0 and INT1 of MCU) to MCU. Both interrupts are used to activate MCU from sleep mode. You need to toggle those switch to ON before you want to send interrupt.
4. As MCU is in sleep mode, you can control (enable or disable) the power input on Bee connector and all VCC pins of 3.3 V or 5V, through sending a signal with D9 pin.
5. In sleep mode (for all module), the working current will as low as 100 μA.




PCB Jumper Pads

The bottom side of Seeeduino Stalker V3 has many PCB jumper pads optionally changing the configuration / functionality. The below table provides details about the same.

Jumper Pads Name Application Circuit
P1 Soldering these jumper enables Digital pin D5 to ON or OFF power-supply of Bee Socket
P2 Soldering these jumper pads enables Digital pin D4 to switch ON or OFF power supply of SD.
P3 Soldering these jumper pads connects RTC /INTA pin to Digital Pin D2(INT0).
P4 Soldering these jumper pads connects RTC /INTB to Digital pin D3(INT1).
P5 This jumper by default connects BEE_TXD to Digital pin D0 (H/W UART TXD). By cutting the existing PCB connection and soldering to adjacent pad, BEE_TXD can be connected to Digital pin D7 for S/W Serial.
Note: There is a known hardware bug. Please read here for a work-around.
P6 This jumper by default connects BEE_RXD to Digital pin D0 (H/W UART RXD). By cutting the existing PCB connection and soldering to adjacent pad, BEE_RXD can be connected to Digital pin D6 for S/W Serial.

Apart from these, there are other jumper pads for WIRELESS_PROGRAMMING, RSSI_STATUS and CH_STATUS. These are by default connected and please refer to the schematic if you would like to modify any functionalities.

Getting Started

If you are new to the "Physical Computing" world and if Seeeduino Stalker v3.0 is the first physical computing platform you want to begin with, then we suggest you to start with Seeeduino.

The following steps will help you assemble the hardware and software resources to get you started with Seeeduino Stalker v3.0.

Step 1. Acquiring the hardware



The picture above shows the hardware and components required for Seeeduino Stalker v3 to communicate with PC. The Stalker does not have USB to Serial functionality. Hence, UartSBee is necessary for programming Stalker via PC. Other USB to Serial converter board can be used to replace UartSBee v4.
Note: UartSBee v4 needs to be bought separately.

Step 2: Installing the drivers and plugging in the hardware

  1. UartSBee is like the multi-purpose Swiss Army knife of the Physical Computing world. There is a very detailed procedure to use UartSBee for both Windows and GNU/Linux users here. In our case, it will perform three functions:
    • To program the Seeeduino Stalker.
    • To communicate with Seeeduino Stalker.
    • Provide power (from USB power of PC) to Seeeduino Stalker (including any peripherals connected to it).
  2. UartSBee has an on-board voltage regulator and a switch to select the target board voltage ( either 5.0V or 3.3V). In case of Seeeduino Stalker, set this slide switch to 5.0V.
  3. The wiring connection scheme of the hardware is "Computer→(Mini USB Cable)→UartSBee →(Flat Ribbon Cable)→Seeeduino Stalker". The jumper wires must be connected between UartSBee and Seeeduino Stalker before connecting the UartSBee to the Computer. Note: The TXD and RXD pins must are cross connected as shown in the table.
  4. Connect the Mini USB cable from UartSBee to PC. If you are using a Windows based PC, the "Found New Hardware" balloon will popup and within a few moments the FT232 drivers will be installed.


The following table shows the connection between Seeeduino Stalker v3 and UartSBee v4.

Pins connection
Seeeduino Stalker v3       UartSBee v4
5V   ↔   VCC
RXD   ↔   TXD
TXD   ↔   RXD
GND   ↔   GND
DTR   ↔   DTR



Demos

Download and install the DS1337 library and sketches available in the resources section. DS1337 library includes modified version DateTime class by Jean-Claude Wippler at JeeLabs

1.RTC

Please pay attention: You need to solder some pads while using the "Interrupts" demo

How to solder
Pins on RTC Pads on Seeeduino Stalker v3 Pins on ATmega328
INTA P3 digital 2
INTB P4 digital 3


Adjust Date/Time


adjust.ino output

Get Current Date/Time


now.ino output

DS1337 Interrupts Example


This example is a demonstration of interrupt detection from DS1337 INT output. This feature is useful for data-logger functionality where the MCU is put to sleep mode when not in use and DS1337 INT wakes up the CPU periodically. This extends battery power. The complete operation is documented in the code.

interrupts.ino output

Data Logger Example


The principal application of Seeeduino Stalker v3.0 is data-logging of sensor signal like battery voltage, etc along with the time-stamp. This sketch puts the MCU in sleep mode when not performing data sampling / logging operation. The complete implementation is documented very well in the code. The following section gives an overview :

  1. StalkerV30_DataLogger_10Sec.ino
    • This sketch logs battery voltage data to SD card configured by RTC.enableInterrupts(h, m, s) function.
    • The periodicity is provided using h, m and s. Once an interrupt is detected, the next interrupt time is updated by advancing the h,m and s value. The DateTime Class comes handy for this.
    • ex:- interruptTime = DateTime(interruptTime.get() + interruptInterval); //decide the time for next interrupt
    • This sketch also produces verbose output i.e the various events happening inside MCU are displayed in serial terminal.
Overview of Data-logger implementation

Read the charging status


The battery charging status can be read using the below sketch. The battery can be charged by plugging solar panel onto the board or via the UartSBee.

void setup()
{
  Serial.begin(57600);
  analogReference(INTERNAL);
  //analogRead(6);
}
 
void loop() 
{
  char CH_status_print[][4]=
  {
    "off","on ","ok ","err"
  };
  unsigned char CHstatus = read_charge_status();//read the charge status
  Serial.print("charge status -->");
  Serial.println(CH_status_print[CHstatus]);
  delay(500);
}
 
 
unsigned char read_charge_status(void)
{
  unsigned char CH_Status=0;
  unsigned int ADC6=analogRead(6);
  if(ADC6>900)
  {
    CH_Status = 0;//sleeping
  }
  else if(ADC6>550)
  {
    CH_Status = 1;//charging
  }
  else if(ADC6>350)
  {
    CH_Status = 2;//done
  }
  else
  {
    CH_Status = 3;//error
  }
  return CH_Status;
}


Reading the voltage of Li-Po BAT


The voltage of the Li-Po battery connected to Seeeduino Stalker V3 can be read by Analog pin A7. The below sketch demonstrates this.

void setup(){
    Serial.begin(57600);
    analogReference(INTERNAL); 
}
 
void loop() {
 
float voltage;
int BatteryValue;
 
    BatteryValue = analogRead(A7);
    voltage = BatteryValue * (1.1 / 1024)* (10+2)/2;  //Voltage devider
 
    Serial.print("Battery Voltage -> ");
    Serial.print(voltage);
    Serial.print("V   ");
    Serial.println();
 
    delay(500);
}

Reference: analogReference

Additional information for using the Bee module

The following tables show the default UART connection between Bee Socket and ATMega328 MCU.

How to use
Pins on Bee socket Pins on ATmega328
BEE_TXD digital 0
BEE_RXD digital 1

Also, you can turn the power supply of Bee module on or off by the optional pad.
Operation: On the back of Seeeduino Stalker v3, you can find a solder pad "P1". Solder the P1 and use the following code to cut off the power supply.

digitalWrite(5,HIGH);

Known Issue

Affected users: This issue affects those who would like to use the optional feature of connecting Bee Socket to software serial port instead of H/W serial port(default).

Issue: Jumper P5 can not be configured to use software serial port by cutting the default connection and resoldering (i.e) BEE_RXD can not be connected to PD7 instead of default PD1 by simply cutting/soldering the jumper as per P5 description. There is a hardware bug.

Workaround:

1. On the top layer cut the routing from PD1/TXD signal to R16 resistor as shown in the following pictures. Please use a sharp knife and gentle cut the connection:

Before modification
After modification

2.Now apply the procedure mentioned in P5 jumper description (i.e) cut the jumper and solder the middle pad of Jumper P5 to PD7.

Board Layout

The Images are taken from the EAGLE Files



Resources

Copyright (c) 2008-2016 Seeed Development Limited (www.seeedstudio.com / www.seeed.cc)
This static html page was created from http://www.seeedstudio.com/wiki