Hemera is an indoor wireless sensor node that measures temperature, humidity, light and motion.
The node contains three key sensors:
- Sensirion SHT11 (Temperature and Humidity)
- Rohm BH1721 (Light)
- PIR (Motion)
git clone https://github.com/lab11/tinyos-main.git
cd tinyos-main
git checkout for-rpi
cd tools
./Bootstrap
./configure
make
sudo make install
git clone https://github.com/lab11/hemera.git
export TINYOS_ROOT_DIR=<path to>/tinyos-main
export TINYOS_ROOT_DIR_ADDITIONAL=<path to>/hemera/tinyos:$TINYOS_ROOT_DIR_ADDITIONAL
A modified RaspberryPi can be utilized to receive and forward data to GATD. If you choose to use one, you need the Linux CC2520 Driver for the RPi. Instead of installing this manually, it is suggested to download & install the preinstalled image from this torrent. Go to https://github.com/lab11/raspberrypi-cc2520 for additional details on setup.
Clone the RPi repo:
git clone https://github.com/lab11/raspberrypi-cc2520.git
Add to bash.rc
:
export TINYOS_ROOT_DIR_ADDITIONAL=<path to>/raspberrypi-cc2520/tinyos:$TINYOS_ROOT_DIR_ADDITIONAL
In order to compile the TinyOS code you need the msp430 and the ARM compilers
After you have finsihed the above setup, you should be ready to install apps on the Hemera board.
The basic sense & broadcast app is HemeraAM. To install it, go to <path to>/hemera/tinyos/apps/HemeraAM
and follow the README.
To receive & forward data to GATD on the RPi, go to <path to>/hemera/tinyos/apps/RpiGatdForwarder
and follow the README.