Wireless bluetooth usb key

Convert Any USB Keyboard To Bluetooth

[DastardlyLabs] saw a video about converting a PS/2 keyboard to Bluetooth and realized he didn’t have any PS/2 keyboards anymore. So he pulled the same trick with a USB keyboard. Along the way, he made three videos explaining how it all works.

The project uses a stock DuinoFun USB mini host shield with a modification to allow it to work on 5V. An Arduino mini pro provides the brains. A FT-232 USB to serial board is used to program the Arduino. A standard Bluetooth module has to have HID firmware installed. [Dastardly] makes a homemade daughterboard–er, shield–to connect it to the Arduino.

The result is a nice little sandwich with a USB plug, a Bluetooth antenna, and some pins for reprogramming if necessary. Resist the urge to solder the Bluetooth board in–since it talks on the same port as the Arduino uses for programming, you’ll have to remove it before uploading new code.

If you need help reprogramming the HC-05 Bluetooth module, we’ve covered that before. This project drew inspiration from [Evan’s] similar project for PS/2 keyboards.

Posted in Arduino Hacks Tagged arduino, bluetooth, hc-05, hc05, keyboard, usb

40 thoughts on “ Convert Any USB Keyboard To Bluetooth ”

Would be handy, in certain cases, to be able to do the opposite — take a Bluetooth keyboard and make it wired.

You have a point there, building the obvious can be a challenge.
But building to create the obsolete can be much more rewarding. There are lot’s of folks that have old equipment they want to keep alive and when the obsolete keyboard fails and can no longer be bought in modern shops or if you want a wireless keyboard on your old system… well what do we do? PS: I saw the USB host module. I have no experience with USB host related to microcontrollers, but is this difficult, what problems are to expected and what modules is preferred. Can anyone suggest a usefull source of information about that topic?

Well if you want a wireless keyboard on your old system the cheap way to go about that would be ordering some usb bluetooth adapters from china 😛

Seems like it should be possible with off the shelf tools/hardware. If you’d like a starting point the USB Host library does have some code for speaking to Bluetooth HID devices via a usb plugged bluetooth dongle: https://github.com/felis/USB_Host_Shield_2.0#bthid-library You’d then need something to emulate a usb keyboard, like a Teensy maybe, then stream and/or translate the incoming BT HID payloads to something the teensy can send via it’s keyboard emulation. https://www.pjrc.com/teensy/td_keyboard.html Good luck! P.S. if you just want to eliminate bluetooth altogether you could go the hardcore route and use the teensy or a similar keyboard emulating controller to read the keyboards’ key matrix directly, bypassing the built in controller.

Читайте также:  Заикаются блютуз наушники jbl

Indeed! One reason might be to let a bluetooth keyboard work at BIOS level, before the OS’s bluetooth driver stack has been loaded. I’d be interested in seeing something like this.

More the reason is, I have ideas for using some of those tiny wireless keyboard/touchpad combos that come from eBay’s HK side. You know, the “iPazzPort” ones with the touchpad off to one side and a rounded edge underneath that. I’m thinking of a portable computer, messenger bag style (meaning case with a shoulder strap), with a wrist-mounted keyboard, mouse, and possibly display. (Mind you, I’m passionately against smartphone/tablet-style onscreen keyboards. Ugh!) However, I refuse to clog up the airwaves around me with signals that have to traverse a distance that’s shorter than I am! (I’m 5’3″ — or 1.6m for those of you outside of the US.) There’s simply no good reason to use that sort of link over that sort of distance, and a couple of very good reasons /not/ to do it that way. For example… I don’t know /much/ about BT, but I assume it uses the “channel” paradigm, like WiFi does, mostly because /everything/ wireless seems to do it that way. Well… imagine any given Starbucks with a person in every chair. Each person has a smartphone or tablet, and a single BT device (headset, keyboard, etc) that they want to use with their device. Any given BT device has a range of at least 330ft (thanks, Wiki)… do the math, and no matter which way you slice it, some of those people are not going to be able to use their stuff. Now, of course, that’s a bit of an exaggeration — no Starbucks is going to be that full of that many people with that much tech all at once — at least, not in any /likely/ circumstance. But the point remains quite valid — just as “too many cooks spoil the broth”, too many signals spoil the air around them — and with the kind of range BT has, I’d think it unfortunately easy to get to the saturation point… Hence, wanting to convert a wireless keyboard (for example) to USB wired… Worth noting — gee, why not just plunk an Arduino Nano in there or a Teensy or whatever? First of all, touchpad mouse. Second of all, the viability of the /keyboard/ portion working that way, depends entirely on how the unit is built. If it’s a membrane keyboard like standard PC keyboards are, sure — you’ll have to wire up your own connectors, or wreck the board to make breakouts, but that’s doable. But if it’s one single PCB with integrated switch contacts and an array of metal domes (or worse, /rubber/ domes, like on your TV remote) — well, as they say where my parents grew up (upstate NJ) — fagheddaboutit. One thought I do have tho — would it be possible to cut the antenna traces on both keyboard and receiver and use coax (the dinky stuff, like WiFi antenna cables use — yes, that stuff /is/ coax, I’ve gotten into it before) to connect the two together directly, and have it come out working…?

Читайте также:  Mini bluetooth speaker phone

The maximum range of a wireless signal doesn’t mean that your keyboard and laptop are communicating at full power.

Bluetooth uses frequency hopping, the “channel” does not remain static like it does in Wi-Fi. That said, you have a point, wireless for wireless sake is not a good solution.

My observation is that the antenna pin off the soc pr module isn’t actually much worse an antenna than the one on the pcb at 2.4ghz… So you’d have to run a few hundred feet of coax to be sure you’re running over it.

“…to be sure you’re running over it.” I don’t know what that phrase means. Are you saying I’d need a couple hundred feet of coax, minimum? That’s a lot!

…actually, on second thought: that’s what shielding is for 😉 Little bit o’ kitchen foil will take care of /that/ problem, right quick… yes, I know to insulate it 😛

Normally most Bluetooth devices use a lower power mode for a nominal range of 10m not 100m (what your “330ft” roughly convert to). It is designed as “personal area network”.
And especially if I strap something to my wrist I would happily go some extra length to ENSURE there are no cables attached which are not absolutely necessary. This is a question of convenience. I do not want to imagine a backpack with cables dangling to such a device.
Of course you could connect the two parts with some coax cable. For 1-2m you can use very thin coax (like 0.81mm) the attenuation is no problem.

The ideal system would be a keyboard that’s both wired and wireless, with recharging batteries when it is wired.

I would pay good money for a polished, consumer-ready version of this. If only to get a pair of full-size (not dumb mini) peripherals. Seriously. Try and find a Bluetooth keyboard with a full 104-key layout, or a full-size Bluetooth mouse. They don’t exist.

Wireless or Bluetooth?
That’s the important distinction I’m making. I have a bunch of full-size wireless mice too. I just don’t want a chunky dongle taking up one of my two USB ports on my Bluetooth-equipped ultra book if I can help it.

I have a Logitech DiNovo keyboard, Bluetooth. Works great, although battery life isn’t stellar. That said, haven’t had any mechanical problems in over 10 years of ownership

Logitech MX 5000 desktop is a wireless/bluetooth combo with the mx 1000 laser mouse. They run in both bluetooth and wireless mode. It even has a 2 way communicating keyboard. It was waaaaay far ahead of its time. Batteries for the keyboard were brutal though (AA). I’m looking to make it lithium ion to match the mouse which is already Lithium.

Читайте также:  Блютуз гарнитура самые лучшие

You’ed look funny texting on your phone with a full 104 key keyboard, but I bet hipsters would love it.

Upgrade seems like a strong word. As far as I am personally concerned bluetooth/wireless peripherals are always a downgrade. Tho I can see the use in something like this for a device that only has the ability to interface via bluetooth, maybe an android tablet or something. For everything else my computer is ~3ft away and it’s chocked full of powered USB ports that remove looming dread of an impromptu “low battery”.

Of course, you’re right. My impetus with this project was that my particular gaming pc was 10+ feet of cable away across the living. Extended USB cables are available, but I didn’t want that length of cable running across the floor. I have the option of mains power close to my sofa, but I’ve mostly been using the USB battery pack with the relay.

Echoing the comment that I’d love this in reverse. A raspi (or similar) that can interface reliably to bluetooth then emulate HID over usb directly, so I can get into BIOS and the like reliably. I’d pay money for such a thing.

How is this not already cranked out by the millions in some factory in Shenzhen? It seems very useful and heaven knows they’re cranking out much sillier devices.

Check Chinese retailers such as Aliexpress.com, and you will find that a lot of those factories turn out me-too products. The soul-crushing experience of two generations of communism and a continuing one-party state has crushed any real spirit of innovation. What one one person makes and sells, another makes and tries to sell a little cheaper. You see that with all the Pixie 40-meter ham transceivers at the store. Someone seems to have sold the first one with a 7.023 MHz crystal and all the copy-cats are doing the same despite the fact that in the U.S. only hams with an Extra license can use that frequency. Even marketing one for a slightly higher frequency seems too innovative. What one does, another does. You can see dozens of virtually identical products here: http://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20160905070524&SearchText=pixie+radio

“What one one person makes and sells, another makes and tries to sell a little cheaper. ” Excuse me, but this is not communism – its how capitalism crushes innovation. Communism crushes by irrelevance of action to the income.

Источник

Оцените статью
Adblock
detector