Nordic Pucks / Puck Featured

Dependencies:   BLE_API nRF51822

Dependents:   ir-puck display-puck ir-puck2 BLE_ScoringDevice ... more

/media/uploads/stiaje/header.jpg

Introduction

Raspberry Pi took the maker community by storm when it launched in 2012. With its internet access it allowed small projects to be internet-of-things enabled. We have created a platform to take this one step further.

Our platform, called the Puck platform, is an internet of things platform for mbed. mbed makes it easy to program embedded hardware for people new to embedded systems. Our platform is built upon the first mbed chip with Bluetooth, the nRF51822 created by Nordic Semiconductor. We hope to create a community around these BLE devices where people contribute to the project, and share their designs with each other. Everything is open-source, of course, with lots of supporting materials.

We make it easy to rapidly prototype and develop Bluetooth LE enabled devices - get up and running in under 10 lines of code.

Tutorials and in-depth documentation is available at the project's GitHub page

Pucks

We've developed a handful of awesome examples to demonstrate the platform. These examples are named 'Pucks'. By talking to the internet through your smartphone, the barrier to creating your own Internet of Things device is lower than ever.

Committer:
stiaje
Date:
Tue Jul 15 14:33:09 2014 +0000
Revision:
0:718051934fdb
Child:
1:29b2cca0d529
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
stiaje 0:718051934fdb 1 #ifndef __PUCK_HPP__
stiaje 0:718051934fdb 2 #define __PUCK_HPP__
stiaje 0:718051934fdb 3
stiaje 0:718051934fdb 4 #include "BLEDevice.h"
stiaje 0:718051934fdb 5
stiaje 0:718051934fdb 6 class Puck {
stiaje 0:718051934fdb 7 private:
stiaje 0:718051934fdb 8
stiaje 0:718051934fdb 9 BLEDevice _ble;
stiaje 0:718051934fdb 10
stiaje 0:718051934fdb 11 uint8_t _beaconPayload[25];
stiaje 0:718051934fdb 12
stiaje 0:718051934fdb 13 bool _connectable;
stiaje 0:718051934fdb 14
stiaje 0:718051934fdb 15 public:
stiaje 0:718051934fdb 16 /** Initialize the Puck library
stiaje 0:718051934fdb 17 */
stiaje 0:718051934fdb 18 Puck(bool connectable, uint16_t minor);
stiaje 0:718051934fdb 19
stiaje 0:718051934fdb 20 /** The BLE Device
stiaje 0:718051934fdb 21 * @return ble device
stiaje 0:718051934fdb 22 */
stiaje 0:718051934fdb 23 BLEDevice ble() { return _ble; }
stiaje 0:718051934fdb 24
stiaje 0:718051934fdb 25 /** Initialize the BLE Device and start advertising
stiaje 0:718051934fdb 26 */
stiaje 0:718051934fdb 27 void init();
stiaje 0:718051934fdb 28 };
stiaje 0:718051934fdb 29
stiaje 0:718051934fdb 30 #endif // __PUCK_HPP__