Giter Site home page Giter Site logo

ble_wasd's Introduction

Bluetooth enabled WASD keyboard

See https://hackaday.io/project/7646-ble-wasdmechanical-keyboard for build instructions!

I created a wireless mechanical keyboard using an arduino and BLE. I love the feel of a mechanical keyboard but I hate the wires. So I made it wireless.

This was a great project because I had never used bluetooth or BLE before. Nor had I used the PS2 protocol. It was a fun little project. Now I have very clean looking desk.

Gamers may freak out because this is a slap in the face for low latency. However, I am coder. As long as my eyes can't tell then I don't care. I just want a professional looking, nice feeling keyboard for coding and a wireless WASD fits that description.

Components

1 × WASD Code Keyboard (Or any PS2 keyboard)

http://www.wasdkeyboards.com/index.php/products/code-keyboard.html

1 × Bluefruit LE micro

http://www.adafruit.com/product/2661

1 × Trinket lipo backpack

http://www.adafruit.com/products/2124

1 × USB Bluetooth 4.0 module

http://www.adafruit.com/products/1327

2 × 3.7v Lipo Battery(Any size you want)

http://www.adafruit.com/products/328

1 × Micro USB

https://www.adafruit.com/products/1826

Step 1: Hardware

Assembly

  1. Solder the 500mah jumper on the trinket backpack for batteries larger than 500mah
  2. (Optional) Cut the switch trace on the trinket backpack and solder a micro switch between the two contacts. See https://learn.adafruit.com/adafruit-pro-trinket-lipoly-slash-liion-backpack for more details
  3. Solder the trinket backpack to the Bluefruit micro
  4. Solder the micro USB power connections to ground and 3.3v on the Bluefruit Micro
  5. Solder the Data ( + ) pin(PS2 clk) of the micro USB to pin 2 on the Bluefruit micro
  6. Solder the Data ( - ) pin(PS2 data) of the micro USB to pin 3 on the Bluefruit micro
  7. Solder all batteries in PARALLEL to the trinket backpack
  8. Plug the micro USB into the keyboard and double stick tape the electronics

Battery life and charging

  • Battery life depends on the size of your battery, power consumption of your keyboard, and the power level of your bluetooth
    • I haven't tested my battery life with 6000mah battery nor have I measured the power consumption( multimeter broken :( )
    • I can run a 12 hour work day with stock bluetooth power settings and medium backlight with no problems
  • You can charge the keyboard through the micro USB on the bluefruit.
    • I usually charge mine when I leave work

Step 2: Software

Setup

  1. Download my git repo
  2. Install the proper drivers
  3. Download the adafruit Bluefruit library
  4. Add Adafruit board support in Arduino IDE

Update your BLE module

  1. Download the adafruit app
  2. Follow this procedure

Upload the Firmware

  1. Open this project in the Arduino IDE
  2. Select Bluefruit Micro as your board
  3. Select the proper serial port
  4. Click upload

Configure and connect

  1. Hit shift + ctrl + esc on your MODIFIED keyboard
    • This will reconfigure your bluetooth module for keyboard use
    • Bluetooth is now named "BLE_WASD"
    • Do this again if your keyboard ever stops working randomly
  2. Connect your keyboard to your computer or phone
    • I have only had luck with Windows 10(it was able to solve the funky driver errors from the adafruit bluefruit module)
    • Windows 7 was a no go
    • Windows 8 is untested
    • Android only works upon first pairing
    • Apple products untested

Hacking

ble_wasd's People

Contributors

djnugent avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.