Table of Contents

~~REVEAL~~

Bluetooth HID Keyboard

Summary

This prototype was request by Daniel Flood to explore the possibility of make a low cost skooge-like Human Interface Device (HID). Brendan Halliday completed the prototype. The BlueDuino Rev2 is an Arduino compatible microcontroller development board based on the ATmega32U4 IC with Bluetooth 4.0 Blueduino Documentation from Supplier

Required Files:

Required Hardware:

Tools

Soldering Iron

Preparation

NOTE: You must upload new firmware to the module if you command it into upgrade mode. Otherwise the module will stay in upgrade mode and seem bricked.

USB to UART converterBlueDuino Rev2
RX RXI (Serial1)
TX TXO (Serial1)
GND GND

Activity Summary

Arduino Sample Code

#include "AB_BLE.h"

#define BAUD_RATE 57600

AB_BLE ble(&Serial1);

const int buttonPin = 8;     // the number of the pushbutton pin

// variables will change:
int buttonState1 = 0;         // variable for reading the pushbutton status

void setup() {
  Serial1.begin(BAUD_RATE);
  pinMode(buttonPin, INPUT_PULLUP);
}

void loop() {
 // read the state of the pushbutton value:
 buttonState1 = digitalRead(buttonPin);
 // check whether a  pushbutton is pressed.
 // if it is, the buttonState is HIGH:
 
 if (buttonState1 == LOW) {    
  ble.print("AT+KEY=");
  ble.println("Hello world");
 }
 delay(500);
}

Notes and additions

Production notes

Feedback

1. Feedback:

Solution:

2. Feedback:

Solution:

3. Feedback:

Solution:

4. Other observations:

References

LED generator

Files