Make a Google Glass remote with Bluefruit

Similar documents
'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

Datalogging Hat with FLORA BLE

Adafruit IO Basics: Feeds

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

Desktop MQTT Client for Adafruit.io

BLE Light Switch with Feather nrf52840 and Crickit

Adafruit Capacitive Touch Sensor Breakouts

FLORA Pixel Brooch. Created by Becky Stern. Last updated on :19:07 PM EST

Monochrome OLED Breakouts

Adafruit IO Basics: Analog Input

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Adafruit Flora Bluefruit LE

Light-Up Angler Fish Embroidery

Superwallet User Manual

Adafruit IO Basics: Digital Input

Sino:bit with Arduino

NeoPixie Dust Bag with Circuit Playground Express

Adafruit DRV2605 Haptic Controller Breakout

Flora Wearable GPS. Created by Becky Stern. Last updated on :32:36 PM UTC

Adafruit Mini TFT " 160x80

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

Adafruit DRV2605 Haptic Controller Breakout

Jawbone Icon Won't Enter Pairing Mode

Home Security Begins at the Front Door

Android GBoard Morse Code Control with Circuit Playground Express

Home Security Begins at the Front Door

Adafruit ATWINC1500 WiFi Breakout

Bluetooth Controlled NeoPixel Headphones

Adafruit IO Basics: Digital Output

Trellis 3D Printed Enclosure

DIY Wireless DDR Dance Pad with Bluefruit EZ-Key

Using IFTTT with Adafruit IO to Make an IoT Door Detector

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

Arduino Lesson 6. Digital Inputs

Adafruit 1.27" and 1.5" Color OLED Breakout Board

Interior Purse Light. Created by Becky Stern. Last updated on :41:08 PM UTC

Prophet 600 GliGli mod

Adafruit MPRLS Ported Pressure Sensor Breakout

Color Swatch Add-on User Guide

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Adafruit ATWINC1500 WiFi Breakout

Guardian Shield+ Zelda Breath of the Wild

Adafruit Si5351 Clock Generator Breakout

Adafruit AM2320 Sensor

Trinket-Powered Conference Room Occupancy Display

Phone-Activated Talking Dog Collar

Adafruit PCF8523 Real Time Clock

Adafruit ATWINC1500 WiFi Breakout

The KWallet Handbook. George Staikos Lauri Watts Developer: George Staikos

Video Doorbell Pro 1

Ping Pong Ball Launcher

Bike Wheel POV Display

Snake Charmer Box. Created by Dano Wall. Last updated on :07:25 PM UTC

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

MLX90393 Wide-Range 3-Axis Magnetometer

Electra Desktop Wallet Set-Up Guide

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

Adafruit APDS9960 breakout

Adafruit Color Sensors

Adafruit 8x16 LED Matrix FeatherWing

Jewel Hair Stick. Created by Leslie Birch. Last updated on :47:17 PM UTC

Adafruit MMA8451 Accelerometer Breakout

Wind Blowing Emoji Prop

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

Adafruit Feather 32u4 Basic Proto

Adafruit TPL5111 Reset Enable Timer Breakout

Adafruit IO Basics: Temperature & Humidity

Adafruit Mini TFT with Joystick Featherwing

B15. Smart Healthy Bracelet BRACELET USER GUIDE

Getting Started with FLORA

Clare Video Doorbell Version 2 User Manual

Crawling Baby Sea Turtle Robot

How to Create Your Cryptocurrency Wallet and Add PumaPay Tokens

Introducing Adafruit Trellis

Con Badge with Circuit Playground Express

Adafruit Si7021 Temperature + Humidity Sensor

1.8" TFT Display Breakout and Shield

Adafruit eink Display Breakouts

FeatherWing Proto, Doubler and Tripler

Rx Snapchat Spectacles for DIY and STEM

Circuit Playground Combadge

3D Printed Camera Tripod Adapter for Telescope

Ring Doorbell is 4.98 x 2.43 x 0.87 inches, x 6.17 x 2.21 cm.

Adafruit CCS811 Air Quality Sensor

NeoMatrix 8x8 Word Clock

MCP Bit DAC Tutorial

January 18, 2014, Revised in April, in July and in October HairNati

Adafruit LIS3DH Triple-Axis Accelerometer Breakout

Alarm.com Wi-Fi Doorbell Camera and Slim Line - Installation Guide

GPS Logging Dog Harness

1. Charging. 2. In-app Setup. 3. Physical Installation. 4. Features. 5. Troubleshooting. Home Security Begins at the Front Door.

Naughty or Nice Machine

Adafruit AMG8833 8x8 Thermal Camera Sensor

Adafruit I2C FRAM Breakout

Adafruit IO Basics: Color

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

0.96" mini Color OLED

Paper Airplane Launcher

Adafruit GPS Hat in Windows IoT Core

Transcription:

Make a Google Glass remote with Bluefruit Created by Deqing Sun Last updated on 2013-11-09 08:45:21 PM EST

Guide Contents Guide Contents Overview Components and Wiring Remap keys Pair Bluefruit with Google Glass Test on Google Glass Unpair Bluetooth devices 2 3 4 5 8 11 12 Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 2 of 13

Overview Google Glass can be controlled by voice command, touchpad or the Myglass App. However, I noticed that when you stay outside in winter, voice commands wouldn't work as well due to wind (and wearing a scarf!) and I find myself reluctant to take my hands out of my pocket and remove my mittens. So for winter use, I designed this remote to control Google Glass. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 3 of 13

Components and Wiring To build a remote, you will need a Bluefruit, several buttons, breadboard and wires. Also you need a power supply. You can use a Lithium battery or a 3xAA or 3xAAA battery pack to make it portable. The wiring is pretty simple. For each button, one end needs to be connected to ground, and the other one should be connected to one key pin of Bluefruit. And you need to connect power to Vin and GND. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 4 of 13

Remap keys Before you use Bluefruit with Google Glass, the keys should be remapped to function keys to control Glass. We can use arrow keys to navigate items. Use ESC key to cancel and RETURN to select. Also we can use snapshot key to take a picture. Support for the snapshot report (and other consumer reports) is added in v1.2 but you can use regular keys in v1.0 or v1.1 You can use the graphical remapping sketch to map each key. (http://adafru.it/crh) Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 5 of 13

You can select input type, key type and key. In this case, it is "KEYBOARD","SYMBOL&FUNC" and "LEFTARROW". Then you click "ADD_KEY" button to add it. Before you upload this mapping to Bluefruit. Make sure Bluefruit is paired to the computer you are using. You can press "SEND_MAP" to upload mapping. If you see "Key mapping sent successfully", you can hold the button on Bluefruit to unpair it with computer. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 6 of 13

Now it is ready for Google Glass. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 7 of 13

Pair Bluefruit with Google Glass By default the Google Glass can only act as a slave device that be paired to your tablet or phones as an accessory. But it can also behave as a master device that search and connect to other devices. This method is first revealed in Voiding Your Warranty: Hacking Glass (http://adafru.it/csc) session at Google I/O. If you want to go straight to see how it works, you can use this link (http://adafru.it/csd). In order to access to settings panel, first you need a working Android SDK, you can refer to this GDK tutorial (http://adafru.it/cse). Then you need to install two apps by typing following command to install them: adb install Settings.apk adb install Launcher2.apk However Google did not release the two apks officially. But Jeff did some research on it and compiled these two apks and released them on his blog (http://adafru.it/csf). You can either download from his site or download the following zip file. glass_settings.zip http://adafru.it/csg After your installation of Settings and Launcher2. you can swipe all the way left to settings. Tap your trackpad you will see the Launcher option. Do not check "Use default for this action"or you can not access the other option until you uninstall Launcher2.apk Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 8 of 13

In Launcher you will see the classic Android home screen. Click the All Apps button. In All apps screen, you will see three Apps. "Glass Home" will take you back to Google Glass home screen. "Launcher" will show the Android home screen again and "Settings" will lead to settings panel. In settings panel you can choose "Bluetooth" to pair Bluefruit. You can also go to "Display"- >"Sleep" to keep screen on longer without interaction. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 9 of 13

Then you can search and pair devices just like you are using a regular Android device. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 10 of 13

Test on Google Glass When Bluefruit is connected to Google Glass. You can press buttons and corresponding key commands will be sent to Google Glass. The following picture shows that I took a picture by press a button on Bluefruit. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 11 of 13

Unpair Bluetooth devices In google glass you can click an Bluetooth item to disconnect it. But there is no way to click the icon on right side to unpair that device in it's subscreen. In order to prevent paired devices from piling up, I wrote a small app in eclipse that allow you to unpair Bluetooth devices. If you have "No Launcher activity found!" error in eclipse, you can: Go to Run > Run Configurations. Then, under Launch Action, change it from Launch Default Activity to Launch; and select the activity listed in the dropdown. Hit Apply and try running the APK again. BT_erase.zip http://adafru.it/csh When the app is running on Google Glass. You will see a list of paired devices. Adafruit Industries http://learn.adafruit.com/make-a-google-glass-remote-with-bluefruit Page 12 of 13

You can choose the device you want to unpair and click it. An asterisk will appear on it's right side. Then click "Unpair" button, the selected device will disappear, indicating it is no longer paired. Adafruit Industries Last Updated: 2013-11-09 08:45:22 PM EST Page 13 of 13