A library for easier setup and prototyping of IoT devices (pucks), by collecting everything that is common for all pucks in one place.

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.

Revision:
7:c07c01c2a741
Parent:
6:211ffef3b88e
Child:
8:49ffd38fb401
Child:
9:ba0527c6b6d0
--- a/Puck.h	Wed Jul 23 14:34:21 2014 +0000
+++ b/Puck.h	Thu Jul 24 09:25:42 2014 +0000
@@ -3,62 +3,7 @@
  
 #include "BLEDevice.h"
 #include <vector>
-
-      
-#ifdef LOG_LEVEL_VERBOSE
-    #define __PUCK_LOG_LEVEL_VERBOSE__
-#endif
-#ifdef LOG_LEVEL_DEBUG
-    #define __PUCK_LOG_LEVEL_DEBUG__
-#endif
-#ifdef LOG_LEVEL_INFO
-    #define __PUCK_LOG_LEVEL_INFO__
-#endif
-#ifdef LOG_LEVEL_WARN
-    #define __PUCK_LOG_LEVEL_WARN__
-#endif
-#ifdef LOG_LEVEL_ERROR
-    #define __PUCK_LOG_LEVEL_ERROR__
-#endif
-
-#ifdef __PUCK_LOG_LEVEL_VERBOSE__
-    #define LOG_VERBOSE(fmt, ...) do { logger.printf("[V] "); logger.printf(fmt, ##__VA_ARGS__); } while(0)
-    #define __PUCK_LOG_LEVEL_DEBUG__
-#else
-    #define LOG_VERBOSE(fmt, ...)
-#endif
-
-#ifdef __PUCK_LOG_LEVEL_DEBUG__
-    #define LOG_DEBUG(fmt, ...) do {  logger.printf("[D] "); logger.printf(fmt, ##__VA_ARGS__); } while(0)
-    #define __PUCK_LOG_LEVEL_INFO__
-#else
-    #define LOG_DEBUG(fmt, ...)
-#endif
-
-#ifdef __PUCK_LOG_LEVEL_INFO__
-    #define LOG_INFO(fmt, ...) do {  logger.printf("[I] "); logger.printf(fmt, ##__VA_ARGS__); } while(0)
-    #define __PUCK_LOG_LEVEL_WARN__
-#else
-    #define LOG_INFO(fmt, ...)
-#endif
-
-#ifdef __PUCK_LOG_LEVEL_WARN__
-    #define LOG_WARN(fmt, ...) do {  logger.printf("![W] "); logger.printf(fmt, ##__VA_ARGS__); } while(0)
-    #define __PUCK_LOG_LEVEL_ERROR__
-#else
-    #define LOG_WARN(fmt, ...)
-#endif
-
-#ifdef __PUCK_LOG_LEVEL_ERROR__
-    #define LOG_ERROR(fmt, ...) do {  logger.printf("!![E] "); logger.printf(fmt, ##__VA_ARGS__); } while(0)
-#else
-    #define LOG_ERROR(fmt, ...)
-#endif
-
-#ifdef __PUCK_LOG_LEVEL_ERROR__
-    Serial logger(USBTX, USBRX);
-#endif
-
+#include "Log.h"
 
  enum PuckState {
     CONNECTING,