Git Product home page Git Product logo

adafruit_nrf8001's Introduction

Adafruit_nRF8001

Driver and example code for Adafruit's nRF8001 Bluetooth Low Energy Breakout.

PINOUT

The pin locations are defined in ble_system.h, the supported systems are defined in hal_aci_tl.cpp. The following pinout is used by default for the Arduino Uno:

  • SCK -> Pin 13
  • MISO -> Pin 12
  • MOSI -> Pin 11
  • REQ -> Pin 10
  • RDY -> Pin 2 (HW interrupt)
  • ACT -> Not connected
  • RST -> Pin 9
  • 3V0 - > Not connected
  • GND -> GND
  • VIN -> 5V

RDY must be on pin 2 since this pin requires a HW interrupt.

3V0 is an optional pin that exposes the output of the on-board 3.3V regulator. You can use this to supply 3.3V to other peripherals, but normally it will be left unconnected.

ACT is not currently used in any of the existing examples, and can be left unconnected if necessary.

Examples

The following examples are included for the Adafruit nRF8001 Breakout

UART

This example creates a UART-style bridge between the Arduino and any BLE capable device.

You can send and receive up to 20 bytes at a time between your BLE-enabled phone or tablet and the Arduino.

Any data sent to the Arduino will be displayed in the Serial Monitor output, and echo'ed back to the phone or tablet on the mobile device's RX channel.

This demo creates a custom UART service, with one characteristic for TX and one for RX using the following UUIDs:

  • 6E400001-B5A3-F393-E0A9-E50E24DCCA9E for the Service
  • 6E400002-B5A3-F393-E0A9-E50E24DCCA9E for the TX Characteristic (Property = Notify)
  • 6E400003-B5A3-F393-E0A9-E50E24DCCA9E for the RX Characteristic (Property = Write without response)

You can test the UART service with the free nRF UART apps from Nordic Semiconductors, available for both iOS and Android:

adafruit_nrf8001's People

Contributors

ladyada avatar tdicola avatar microbuilder avatar quartzjer avatar paintyourdragon avatar paulstoffregen avatar marcoschwartz avatar

Watchers

Christoffer Sandberg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.