Prepare the Arduino IDE
To program the Sense/Stage MiniBee you have to use the Arduino IDE and prepare it to use the firmware libraries and the hardware definitions that we have created for Sense/Stage.
Download files
- 
    Download the Arduino IDE (version 1.6.5 or higher) 
Install
MiniBee files
- 
    Unpack the ssdn_minibeepackage
- Check what your Arduino sketchbook folder is:
    - Go to [FILE]menu and choosePreferences, the keyboard shortcut is[CTRL]+[,]
- At the top it tells you the folder for the Sketchbook location, e.g.~/Arduino
- Go with your file browser to this folder
- If there is no hardwarefolder there, just copy the folderssdn_minibee/hardwareto the sketchbook folder
- If there is a hardwarefolder there, copy the folderssdn_minibee/minibeeto it
- If there is no librariesfolder there, just copy the folderssdn_minibee/librariesto the sketchbook folder
- If there is a librariesfolder there, copy the folders inssdn_minibee/librariesto it
 
- Go to 
- You should now have the following folders in your sketchbook folder:
hardware/
hardware/minibee
hardware/minibee/avr
libraries/ADXL345
libraries/BMP085
libraries/HMC58X3
libraries/LIS302DL
libraries/MBSerial
libraries/MiniBee
libraries/MiniBee_APIn
libraries/NewSoftSerial
libraries/OneWire
libraries/TMP102
libraries/XBee
NOTE: the minibee files are for version 1.6.5 and up of the Arduino IDE. If you use an older version of the Arduino IDE (though not older than version 1.0), you have to use a different branch of ssdn_minibee
The MiniBee Firmware examples will show up in File -> Examples -> MiniBeeAPIn, and the MiniBee Firmware library will show up in Sketch -> Import Library… -> MiniBeeAPIn
Firmware examples
- Now start the Arduino IDE
- In the [FILE]menu, underExamples, under(Examples from Custom Libraries)you have a set of examples for theMiniBee_APInlibrary.
- The example minibee_Fis the default version for MiniBee revision F
- The example minibeeis the default version for MiniBee revision D
- customReceivingshows how to receive custom data
- customSendingshows how to send custom data
- sendingPrivateDatashows how to send additional (private) messages
- sendingTriggerDatashows how to send trigger data messages
- BeeToBeeshows how to send data from one MiniBee to another
- DS18x20_temperatureshows how to read out the DS18x10 temperature sensor
- ITG3200shows how to read out the ITG3200 sensor
- LSM9DS1shows how to read out the LSM9DS1 sensor
- ledfadesshows how to set up a system with smoothly fading LEDs
- minibeeServoshows how to control a servo motor
- minibeeNSSshows how to use the NewSoftSerial library
Choosing the board
- In the [TOOLS]menu, choose[Sense Stage MiniBee]
- The default processor is ATmega328p revB/D/F (3.3V, 12 MHz)
- Only for particular versions of revision D and revision A do you need to choose a different processor.
TODO
- add screenshots
