Author Topic: Which way would be best for TMK + Bluetooth keyboard  (Read 2487 times)

0 Members and 1 Guest are viewing this topic.

Offline jeffreysung

  • Thread Starter
  • Posts: 13
Which way would be best for TMK + Bluetooth keyboard
« on: Sun, 01 December 2019, 17:59:33 »
Hello Everyone,

I have used Apple old keyboards from 2012. Applie IIgs and standards with Teensy 2.0++ controller. (Not converter)


I created USB-mini B connector at that time...


At that time, I tried to make bluetooth version but I failed. It worked well with Windows and iPhone but not for OSX.
Now I'm trying again. Nowadays, there are lots of BT modules.

The things I'm considering are..
1. Teensy 2.0 ++ /RN42 (HID support?)
2. Teensy 2.0 ++ /Adafruits Blufruit LE UART Friend
  - Reference code was "ramonpoca/tmk_keyboard/converter/ps2_bluefruitle"
  - Bluetooth keyboard could be found at OSX but that's all.
  - hid_listen doesn't show any information. It shows only "waiting..."
  - One of main failure might be pull-up resistor which I have not applied for RX/TX lines.
3. Feather 32u4 Bluefruit LE
   - Tried with code from "ramonpoca/tmk_keyboard/converter/ps2_bluefruitle"

I tried 2/3 but failed. It's sample code is too difficult for me. I have no knowledge for C++ and converting its code(from Adafruit) to C is too time consuming. (and almost impossible)
Actually, Trial 3 should be fine but I don't how how to make debug. In case of TMK, "hid_listen" was good debugging  way but currently nothing I could see.
In my feeling, UART might not working properly. (I tried to use HW UART)

For some days and nights, what I found are
1. tmk_core/protocol/bluefruit is only for bluefruit EZ-KEY HID. (Currently not available)
2. For some converters in tmk, HW UART might be used converter itself, and Software UART or SPI might be used for bluetooth module.
3. Currently there is no case which uses HW UART for bluetooth module as I found.(maybe wrong....? )
4. For basic tmk usb keyboard, uart might be used for debug for "hid_listen" program.
5. In my trial, there might be some conflict between bluetooth communication and usb. Therefore, I couldn't get some clue with "hid_listen"
6. I still couldn't understand the mechanism of USB/UART.

When I think about form factor and all-in-one feature, trial 3 would be best even I'll suffer with insufficient pin problem.

What would be the best way for implementing Bluetooth keyboard ? I want to use current TMK source and don't want to use Arduino IDE environment.
« Last Edit: Sun, 01 December 2019, 18:03:54 by jeffreysung »

Offline jeffreysung

  • Thread Starter
  • Posts: 13
Re: Which way would be best for TMK + Bluetooth keyboard
« Reply #1 on: Sun, 01 December 2019, 18:01:29 »
In my thought, Teensy 2.0++ and RN42 might be best way to me because I could make reference  hhkb and it accepts HID reports.