Connect Pico w to PC via bluetooth

December 5, 2023, 19:45

stolenpies

Hi all, following on from my last question, I’m looking to connect a pico w to a pc with built in bluetooth so I can use it as a keyboard. What is the best way to go about doing this? Thanks, Greg

k9t33n

it would be better if you just carried on with this in your old thread

kutuptilkisi

then you make the wires TX, RX, VCC, GND

kutuptilkisi

And when everything is correct, you should be able to connect simply by click on the name of module using bluetooth from computer

kutuptilkisi

However, you must learn how keyboard protocol works

oops.se

The question is about "How to use the Pico as a keyboard over BT"

oops.se

And that is NOT a serial connection!

kutuptilkisi

Not sure how else you can use bluetooth module but isnt it just sending some bytes? Isn't this how phones, computers dedect different type of devices?

oops.se

You need to emulate a keyboard over BT

oops.se

Bluetooth has ddifferent "Profiles" for different usage. Ex. the profile A2DP is high quality Audio, Serial is serial com over BT. and so on.

oops.se

You can't emulate a keyboard with serial, so NO we are NOT saying the same thing!

kutuptilkisi

hmm

kutuptilkisi

Okay so either he gets a module capable of doing what you said, or he needs to make a computer side program to press keys?

oops.se

This will get you started! "[Raspberry Pi Pico W] BTstack: Ep 4. HID device, Custom Bluetooth HID keypad" https://www.youtube.com/watch?v=XO2e0KP2YLk

stolenpies

Thanks, I’ll take a look at the video. It would appear it could work!