Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:38 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Is it possible to connect a BT keyboard via HC-06 to PiPicoVGA

Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1013
Posted: 10:00pm 01 Aug 2022
Copy link to clipboard 
Print this post

Playing around with a BT keyboard and was wondering if I could connect to the PiPicoVGA. I understand that the HC06 initially connects at 9600 for pairing and I have set up com2 at 9600 but when I initiate pairing I cannot monitor any data. I would like to pair the two and then set option serial console to com2.

OA47
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2832
Posted: 12:34am 02 Aug 2022
Copy link to clipboard 
Print this post

You will need to find some detailed specifications for the KB. What data format does it use? When it is used on a computer it is probably using a specific HID driver, so you may need to write one for the Pico that emulates a PS/2 KB or a serial console. (assuming that is possible).
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9757
Posted: 01:24am 02 Aug 2022
Copy link to clipboard 
Print this post

It's a nice idea, but I think I have to side with phil99 on this one.
It is unlikely that the protocol that the BT KB uses, is just plain ASCII serial that a module like the HC06 is designed to handle.  The BT KB probably sends packet data at an unknown rate and protocol(past the BT link), that a driver is designed to interact with as Pill says.  This simply will not be compatible with the HC06, so it will ignore any attempt to pair up with it.

My GUESS is that the HC06 is similar to the HC12, in that the HC06 is expecting to be paired up with other HC06's using the BT protocol, but anything OTHER then another HC06, will just be ignored.  IE: The HC06's make use of the BT wireless protocol, but that does not mean they can pair with any other BT device other then that they were designed to pair up with - probably only another HC06 module.

Assuming you could even pair them up for the moment, as Phil hints at, you'd then need to know how to decode the protocol from the HC06, and somehow insert that into the PS/2 KB handler in the PicoMite firmware - not easy.....

Think of it like you are trying to pair a wee USB BT dongle to the PM, and expecting to be able to send WAV files to a BT speaker paired to the dongle.  Easy with Windoze, MAC or Linux OS's, not really easy or practical with an MCU-based system.

Not saying it is IMPOSSIBLE, but it would be very tricky - even if you knew the wireless data protocol of the KB, there would be a lot of work involved.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025