Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
include
lib
media
src
test
.gitignore
.travis.yml
README.md
platformio.ini

README.md

Bluetooth LE Page Turner

This is a prototype to show how someone could make a remote Bluetooth page turning device using a Bluetooth LE controller that acts as a keyboard.

alt text

Hardware

How it works

  1. Connect up a button to the MCU. This code uses pin 12 for digital input, defined by BUTTON_PIN. Here's an example.
  2. Pair the device using Bluetooth settings
  3. Load an app that (e.g. Books on iOS) that views eBooks or PDFs
  4. Hit the button!

Why it works

Since the BLE device acts as a keyboard, it's simply hitting the "right arrow" key by sending the code: 00-00-4F and then 00-00. See keycodes here.

Building

  1. Install PlatformIO
  2. Connect the MCU and run pio run -t upload

Monitoring

pio device monitor

Gotchas

  • Monitor the serial output to make sure things are OK
  • If Bluetooth starts acting flaky, reset the microcontroller using the Adafruit reset example.
You can’t perform that action at this time.