Hi
I want to connect a bluetooth input device (mouse or keyboard) to my arduino, so that actions (eg turn on a led) are triggered directly from the input device via bluetooth. It is crucial that the input device directly sends keystrokes/mouse strokes to arduino, without the need of any computer in between. Just a self-powered bluetooth keyboard/mouse and an arduino must be the unique components.
I have thoroughly searched for similar projects but I couldn't find anything close enough. Is this project possible? Any guidance?
I have a Nano 33 BLE (but I'm open to purchase other arduino+hc-06 if that solves my problem).
What did You search for?
Focusing at the nucleus of the matter, something ought to be found. The mouse uses BT and Your Nano uses BLE. Are they compatible?
Not played with those things yet.....
Continuing.... You need stuff that match the mouse. That's number one idea.
Thanks for the quick reply.
I'm not sure if my mouse/keyboard is using BT or BLE, even after analyzing with multiple tools. The only sure thing is they are above BT4.0.
However, if that BT/BLE incompatibility is the only issue, I'd buy a hc-06 module coupled with arduino listening to the input device. However it seems that it won't the only issue: to my surprise, after days of investigation, I haven't found any example/project yet in which an input device (keyboard/mouse) directly sends data to an arduino. The only closest examples I found (eg keyboard-controlled arduino car) required an intermediate computer that forwards the keystrokes to arduino, which is unacceptable for my project.
Incoherent. BT4 is the same as BLE. HC-06 is not BLE. For all that, Bluetooth keyboards have been around since before BT4 was invented and I imagine just send digital data that would be kosher with HC-06. This matter has been raised before but I don't know what the result was.
Ok, let me rephrase my problem, regardless of versions and protocols.
Assuming I have/buy a modern bluetooth input device today. My question is if there is any way to directly forward keystrokes from it to any arduino model via bluetooth without any intermediate computer.
Strictly within the wording of your question, the answer is an unqualified yes. Bluetooth is merely a means of serial data communication between two devices, and there is never a need for an intermediate computer.