Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix headline formatting in README #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
#ble-sdk-arduino
# ble-sdk-arduino

Bluetooth low energy SDK for Arduino (uses the nRF8001 from [Nordic Semiconductor](https://www.nordicsemi.com/ "Go to Nordic semiconductors homepage")).
This has been tested using the Arduino UNO, Mega and Leaonardo boards with the nRF2740/nRF2741 module or the Bluetooth low energy shield from Redbearlab.
The shield is available from seeedstudio and makershed.

##Contents
## Contents
The BLE folder in \libraries\ contains the ported bluetooth library (ACI library) and an example project folder.
This folder (BLE) should be extracted into the Arduino "libraries" folder.

####Start using the SDK
#### Start using the SDK
1. Download the SDK by clicking "Download ZIP" at the bottom of the right side menu.
2. Unzip the file.
3. In the arduino IDE, click 'Sketch' and choose 'Import library' and 'Add Library...'
4. From the ble-sdk-arduino folder, choose to import the \libraries\BLE folder.

####When using the Bluetooth low energy shield v.1.1 or v.2012.07:
#### When using the Bluetooth low energy shield v.1.1 or v.2012.07:
Plug the Bluetooth low energy shield onto the Arduino. Set the "Default Handshaking" switch to ON.
The nRF8001 REQN is on Digital 9 of the Arduino. The nRF8001 RDYN is on Digital 8 of the Arduino.
The SPI lines are routed through the central ICSP connector of the Arduino.
To change the REQN and RDYN line to a different Arduino pin, set the "Default Handshaking" switch to OFF, wire the nRF8001 pins on the shield at J5 to the required Arduino pin.

####When using the Bluetooth low energy shield v.2.0:
#### When using the Bluetooth low energy shield v.2.0:
Plug the Bluetooth low energy shield to the Arduino.
The REQN and RDYN pins are selectable from pin 2 to 12.
Select the Arduino pins to use for REQN and RDYN and put the jumpers to those pins.
Reset of the Arduino is connected to the Reset of the nRF8001, so every time a sketch is downloaded from the Arduino IDE the nRF8001 is also reset.
The SPI lines are routed through the central ICSP connector of the Arduino.

####When using the nRF2740/nRF2741 modules directly wired to the Arduino:
#### When using the nRF2740/nRF2741 modules directly wired to the Arduino:
When the Arduino uses a 5v microcontroller,you may have to use level converters or a resistive divider to get the voltage to 3.3v for the lines that are output from Arduino to the nRF8001.
The Arduino(3.3v-1.9v) or the Arduino DUE can be wired directly to the nRF8001 without any level converters or resistive dividers.

####When using the nRF2740/nRF2741 modules with the nRF8001/nRF24L01+ shield adapter for Arduino:
#### When using the nRF2740/nRF2741 modules with the nRF8001/nRF24L01+ shield adapter for Arduino:
Plug the nRF8001/nRF24L01+ shield adapter for Arduino to the Arduino.
The nRF8001 RDYN is on Digital 3. The nRF8001 REQN is on Digital 10.
The SPI lines are available on Digital 11, 12, 13 and the central ICSP connector.
To change the REQN and RDYN line to a different Arduino pin, cut the track on the PCB connecting the lines and wire the nRF8001 pins on the shield adapter at P10 to the required Arduino pin.

####Configure the MCU to nRF8001 PIN connection
#### Configure the MCU to nRF8001 PIN connection
aci_state.aci_pins.board_name =
//See board.h for details, Use REDBEARLAB_SHIELD_V1_1 or BOARD_DEFAULT

Expand All @@ -62,19 +62,19 @@ To change the REQN and RDYN line to a different Arduino pin, cut the track on th
aci_state.aci_pins.interface_is_interrupt = false;
aci_state.aci_pins.interrupt_number = 1;

####Modifying existing nRF8001 configuration:
#### Modifying existing nRF8001 configuration:
Make sure you always run the run_me_compile_xml_to_nRF8001_setup.bat with the nRFgo studio installed on a Windows PC to generate the setup required for the nRF8001 (services.h).
You need to run this again whenever you change the configuration in nRFgo studio.

The nRFgo studio is a Windows program that can be run on the OS X using playonmac (tested) and could also be run on Linux using playonlinux (not tested).

####Porting ACI Library
#### Porting ACI Library
A brief explanation of how to port the ACI library code is available in [/documentation/libraries/BLE](./documentation/libraries/BLE/nRF8001-Porting-ACI-Library.md "Go to document")

##Forum
## Forum
[Nordic Developer Zone](http://devzone.nordicsemi.com/ "Go to nordic developer zone")

##Resources
## Resources
[Arduino](http://arduino.cc/ "Go to Arduino.cc")
[nRF8001](https://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF8001 "Go to product")
[RedBearLab BLE Shield from MakerShed](http://www.makershed.com/Bluetooth_Low_Energy_BLE_Shield_for_Arduino_p/mkrbl1.htm "Go to product")
Expand Down