-
Notifications
You must be signed in to change notification settings - Fork 1
How to: Deploy an Arduino Node
This How-to will guide you through the process of deploying a SmartCampus sensor platform running the SmartCampusOS.
- Having the Arduino IDE installed (v. 1.0.6 and above)
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.
git clone https://github.com/SmartCampus/ArduinoSensorServer.git
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
Go where you have previously cloned (step 1) the SmartCampusOS and open the sensorRepository/sensorRepository.ino file.
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
SmartCampusOS provides support for wired (USB) and wireless (Xbee) communications.
You have to specify, on the top of the sensorRespository.ino file, a USE_SERIAL definition
#define USE_SERIAL
- You have to specify, on the top of the sensorRespository.ino file, a USE_XBEE definition
#define USE_XBEE - Configure the XBEE chip (upcoming how-to)