Close
0%
0%

BLE HID Keyboard

In this example, the RTL8722 board emulates a HID keyboard connected using BLE.

Public Chat
Similar projects worth following
106 views
0 followers
BLE connections use a server-client model. The server contains the data of interest, while the client connects to the server to read the data. Commonly, a Bluetooth peripheral device acts as a server, while a Bluetooth central device acts as a client. Servers can contain many services, with each service containing a set of data. Clients can send requests to read or write some data and can also subscribe to notifications so that the server can send data updates to a client.

Ameba is a low-power dual-band WLAN and Bluetooth Low Energy SoC by Realtek. The AMB23 (RTL8722DM_MINI) also include memory for Wi-Fi protocol functions and application making it simple for anyone to develop various kind of IoT applications. At the same time it has a wide range of peripheral interfaces. With all these interfaces, it can connect to most of the electronics components like LEDs, temperature and humidity sensors, and so on.

More Resources:

If you need additional technical documents or the source code for this project. Please visit the official websites and join the Facebook group and forum.

Ameba Official Website: https://www.amebaiot.com/en/ 

Ameba Facebook Group: https://www.facebook.com/groups/amebaioten 

Ameba Forum: https://forum.amebaiot.com/

  • 1 × AMB23
  • 1 × BLE capable host device [Windows / Linux / MacOS / Android

  • 1
    Setup

    Open the example, “Files” -> “Examples” -> “AmebaBLE” -> “BLEHIDKeyboard”.

    1

  • 2
    Setup

    Upload the code and press the reset button once the upload is finished.
    Immediately after reset, the board will begin BLE advertising as “AMEBA_BLE_HID”. On your host device, go to the Bluetooth settings menu, scan, and connect to the board.
    You should ensure that the connection process is completed before proceeding.
    On Windows, ensure that any driver installation is finished, and the board shows up in the Bluetooth menu under the “Mouse, keyboard & pen” category.

    2On Android, ensure that “Input device” is enabled for the board.

    3

  • 3
    Final Result

    After the Bluetooth connection process is completed, the board is ready to send keyboard input to the host device. Select a text input field, such as in the Serial Monitor or a text document. Connect digital pin 8 to 3.3V to start sending input, and connect to GND to stop.
    You should see the text “Hello World !” typed out and deleted repeatedly.

    4

View all 3 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates