Skip to content

Setting up the sensor mote

Daryl Wilding-McBride edited this page Feb 13, 2014 · 10 revisions

About the sensors

Air Quality

MQ-135

[http://www.futurlec.com/Datasheet/Sensor/MQ-135.pdf](http://www.futurlec.com/ Datasheet/Sensor/MQ-135.pdf)

After the "burn-in time" of 24 hours, the heater needs to be on for about 3 minutes before the readings become stable.

The higher the reading, the greater amount of methane, ammonia, smoke, carbon dioxide.

Humidity

HTH-4030

[https://www.sparkfun.com/datasheets/Sensors/Weather/SEN-09569-HIH-4030-datash eet.pdf](https://www.sparkfun.com/datasheets/Sensors/Weather/SEN-09569-HIH-403 0-datasheet.pdf)

Light

TEMT6000

[http://www.vishay.com/docs/81579/temt6000.pdf](http://www.vishay.com/docs/815 79/temt6000.pdf)

Sound Level

[to be completed]

Temperature, Altitude, Barometric Pressure

BMP085

http://learn.adafruit.com/bmp085

Use the Adafruit library https://github.com/adafruit/Adafruit- BMP085-Library

Pressure is in Pa.

Setting up the sensor board on the Arduino

Install the Adafruit BMP085 Barometric Pressure + Temp sensor library from https://github.com/adafruit/Adafruit- BMP085-Library

Add the PString library from http://arduiniana.org/libraries/pstring/

Set up the XBees

  1. Install X-CTU from http://www.digi.com/support/productdetail?pid=3352&osvid=57&type=utilities. This is Windows-only, and I've used it with VMware Fusion. Alternatives include * using the AT commands to configure the XBee, but to update the XBee's firmware you must use X-CTU. Update the firmware list as part of the installation process. * Using WINE - http://wiki.openpilot.org/display/Doc/Configure+Xbee+via+Linux
  2. Install the XBee Arduino library from http://code.google.com/p/xbee-arduino/
  3. Install the FTDI drivers for Windows from http://www.ftdichip.com/Drivers/VCP.htm.
  4. Plug in the XBee USB dongle.
  5. In X-CTU, test the COM port setup by selecting the USB Serial port. The default settings should work with a factory-default XBee.

Read the configuration.

For a Router (i.e. the Arduino):

For an XBee Pro Series 2 (as we're using for the motes), select XBP24-ZB in the MODEM drop-down. Choose ZIGBEE ROUTER API for the function set.

Change the Function Set to ZigBee Router API. Make sure the PAN ID is the same as the coordinator of the gateway (the PAN ID for the gateway in the Melbourne office is 0x1a1a1a), scan channels is 0x7fff, destination address is 0x0 (to reach the coordinator on the gateway), and no encryption. Push the 'Write' button. For reference, there's an XBee profile file here.

For a Coordinator (i.e. the Pi):

Change the Function Set to ZigBee Coordinator API and push the 'Write' button. The address of a coordinator should be zero.

Note that since the Uno only has one hardware serial port, and the XBee module is connected to it, you can't upload a new sketch while the XBee module is in the socket. If you don't remove the XBee module, you'll see the error "avrdude: stk500_getsync(): not in sync".

Clone this wiki locally