Skip to content

How to: Deploy an Arduino Node

ulrich06 edited this page Oct 7, 2014 · 4 revisions

How-to: Deploy an Arduino Node

This How-to will guide you through the process of deploying a SmartCampus sensor platform running the SmartCampusOS.

Prerequisites:

  • Having the Arduino IDE installed (v. 1.0.6 and above)

Step 1: Plug a sensor shield

The Arduino platforms use shields to extends their capacity. Without powering the Arduino, plug a sensor shield. The picture bellow shows a Grove base shield plugged on the top of an Arduino Uno.

Step 2: Clone the SmartCampusOS code into a local folder

git clone https://github.com/SmartCampus/ArduinoSensorServer.git

Step 3: Copy the libraries in your local Arduino libraries folder

If you don't know where is your local Arduino libraries:

  • Open the Arduino IDE
  • Go in Preferences
  • The libraries folder is located in /libraries

Step 4: Open the sensorRepository.ino file

Go where you have previously cloned (step 1) the SmartCampusOS and open the sensorRepository/sensorRepository.ino file.

Step 5: Name your Arduino board

All boards in a same sensor network must have an unique name. Choose an unique name (e.g. ARD_1_443) and type it in the BOARD_ID definition

Step 6: Choose the communication type

SmartCampusOS provides support for wired (USB) and wireless (Xbee) communications.

Wired communication

You have to specify, on the top of the sensorRespository.ino file, a USE_SERIAL definition #define USE_SERIAL

Wireless communication

  1. You have to specify, on the top of the sensorRespository.ino file, a USE_XBEE definition #define USE_XBEE
  2. Configure the XBEE chip (upcoming how-to)

Clone this wiki locally