Hardware Reference
In-Depth Information
•
USB development shield
: This will allow you to develop on the RFduino plat-
form using a standard computer
•
Battery shield
: This will supply the power when you are flying your airplane
•
Servo Control shield
: This will interface with the RC plane servos and speed
controller
So, let's start building.
First, plug the RFduino into the USB shield, and then plug the servo control shield into
the RFduino. Now, plug the USB into the USB port of your computer. Then, follow the
instructions at
www.rfduino.com/wp-content/uploads/2014/04/RFdu-
ino.Quick_.Start_.Guide_.pdf
to get the entire system up and connected. You'll need to
download a beta version of the Arduino IDE, Version 1.5; however, you may want to keep
the current released version as well. Just make sure you remember which version is in
which location.
For your application, let's start by opening a simple example program that allows the RF-
duino to control the servos. To do this, navigate to
Examples
|
RFduinoBLE
|
Servo
as
shown in the following screenshot:
The code is very simple, and it is as follows: