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_minibee
package - 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
hardware
folder there, just copy the folderssdn_minibee/hardware
to the sketchbook folder - If there is a
hardware
folder there, copy the folderssdn_minibee/minibee
to it - If there is no
libraries
folder there, just copy the folderssdn_minibee/libraries
to the sketchbook folder - If there is a
libraries
folder there, copy the folders inssdn_minibee/libraries
to 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_APIn
library. - The example
minibee_F
is the default version for MiniBee revision F - The example
minibee
is the default version for MiniBee revision D customReceiving
shows how to receive custom datacustomSending
shows how to send custom datasendingPrivateData
shows how to send additional (private) messagessendingTriggerData
shows how to send trigger data messagesBeeToBee
shows how to send data from one MiniBee to anotherDS18x20_temperature
shows how to read out the DS18x10 temperature sensorITG3200
shows how to read out the ITG3200 sensorLSM9DS1
shows how to read out the LSM9DS1 sensorledfades
shows how to set up a system with smoothly fading LEDsminibeeServo
shows how to control a servo motorminibeeNSS
shows 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