I0x0I / DIY-A-BLE-Keyboard

A guide on how to build a BLE keyboard
GNU General Public License v2.0
119 stars 28 forks source link

Doubts with the project #3

Open MordredFTC opened 4 years ago

MordredFTC commented 4 years ago

Hi, I see your project on GitHub. My main doubts are: 1º- what is the specific code to upload to the MCU to communicate with the USB Host Shield? 2º- If I am not wrong, I need to wire the USB Host Shield with the MCU. Can I communicate with the pinout of your website? 3º- Where can I connect the battery? 4º- If I connect a hub of the adapter (putting the specific code for mouse), I can use keyboard and mouse simultaneously?

Thanks in advice, I want to create a usb to bluetooth adapter, but I am very confused because I want to use only the MCU, without an arduino. Its my first time using MCU. I am very noob with arm.

I0x0I commented 4 years ago

Hi MordredFTC,

Thank you for your interest. The USB host part is not implemented in this project because nRF chips do not have build-in USB function blocks and including another USB host chip will consume much more power. The keyboard matrix (a bunch of switches) is directly connected to the nRF chip in this project, you may refer to the original post for more details. An implementation of USB to Bluetooth translation highly depends on the USB host chip you choose, you should be able to find some application notes and demos of your chip.

Cheers.

MordredFTC commented 4 years ago

The chip I choose is the MAX3421E. Thanks for your reply, I am lost in my project and need help. I want to configure the project like your fifth point (keyboard and/or mouse with usb cable --> hub usb (it's possible connect boths together?) MAX3421E --> nRF51822 as bluetooth controller only --> computer. For the wires, I saw https://raw.githubusercontent.com/wiki/RIOT-OS/RIOT/images/yunjia-nrf51822-full.jpg with the mains pins. My main problem is the code for the MCU and the power wires. Thanks for all. I know that I don't need keyboard_map. h and part of keyboard_driver.c, also if the hub is possible, I need to code mouse files. But I don't understanding how to implement my things. I have all the hardware necesary to do with an arduino pro micro and hc-05, but I want to do and learn how do with only this module. Sorry for my bad english and my poor knowledge of arm. Thanks again.