Eric Damon Stahl
Member
Hi,so I've been working on this project of mine since over a year now. Short story short: I want to convert a 2011 MacBook Pro keyboard and trackpad to an external usb device for use on Android. I got it working and it works everywhere (Windows, MacOS, Linux, Android_x86) except on native Android devices.
After spending WAY too much time on this I would like to tackle it another way and I wonder if what I plan is possible with (any) a Teensy.
I want to make the Teensy act as a Keyboard/Trackpad USB HID device and I have two ideas for it (and have no idea which of it is do-able):
Version A)
Take the USB signal from my "device", interpret it on the Teensy or pass it through directly (with a different USB device header?).
Version B)
Bypass the original circuit for the k+t and feed it the data lines directly (should be 26 for the keyboard and 14 or 15? for the trackpad), process them with the Teensy and output it as USB. Same questions as above:
For both version I have the same questions:
1. Is this possible in general?
2. Can the Teensy produce a multi-touch output for the trackpad (up to 5 fingers)?
3. Will the output work on Android? I'm asking specifically because of my experience..... as the original "device" works EVERYWHERE except on native Android devices...
I would prefer if version A was possible as this wouldn't require me to find a way to get breakout boards for the tiny and flimsy k+t connectors.
If possible, which Teensy model would I need? I am willing to do whatever it takes to make this work. Any help appreciated.
Thanks in advance for your time!
The long story is below:
**********************************************
With the help of the schematics and the original mainboard I was able to isolate the circuitry needed for the k+t. It uses a CY8C24794 to convert the SPI signals to USB internally. After a bunch of very delicate soldering I got it to work.
It shows up as "Apple Internal Keyboard / Trackpad".
The keyboard works everywhere I tried (Windows, Linux (Ubuntu), MacOS, PC bios, Android_x86, Android (2 phones and 1 tablet)).
The trackpad works as follows:
Windows -> works as mouse... moving cursor + click, no gestures / multitouch
MacOS -> works fully including all gestures
Linux (Ubuntu) -> works fully including all gestures
Android_x86 -> works fully including all gestures
Android (Samsung Galaxy S9, S10+, Lenovo P11 Pro tablet ...., Android versions 10, 11, 12) -> never works AT ALL, it appears fully dead (only the trackpad part, keyboard always works fully).
So for the love of god I can't get this to work on Android for whatever reason.
**********************************************
After spending WAY too much time on this I would like to tackle it another way and I wonder if what I plan is possible with (any) a Teensy.
I want to make the Teensy act as a Keyboard/Trackpad USB HID device and I have two ideas for it (and have no idea which of it is do-able):
Version A)
Take the USB signal from my "device", interpret it on the Teensy or pass it through directly (with a different USB device header?).
Version B)
Bypass the original circuit for the k+t and feed it the data lines directly (should be 26 for the keyboard and 14 or 15? for the trackpad), process them with the Teensy and output it as USB. Same questions as above:
For both version I have the same questions:
1. Is this possible in general?
2. Can the Teensy produce a multi-touch output for the trackpad (up to 5 fingers)?
3. Will the output work on Android? I'm asking specifically because of my experience..... as the original "device" works EVERYWHERE except on native Android devices...
I would prefer if version A was possible as this wouldn't require me to find a way to get breakout boards for the tiny and flimsy k+t connectors.
If possible, which Teensy model would I need? I am willing to do whatever it takes to make this work. Any help appreciated.
Thanks in advance for your time!
The long story is below:
**********************************************
With the help of the schematics and the original mainboard I was able to isolate the circuitry needed for the k+t. It uses a CY8C24794 to convert the SPI signals to USB internally. After a bunch of very delicate soldering I got it to work.
It shows up as "Apple Internal Keyboard / Trackpad".
The keyboard works everywhere I tried (Windows, Linux (Ubuntu), MacOS, PC bios, Android_x86, Android (2 phones and 1 tablet)).
The trackpad works as follows:
Windows -> works as mouse... moving cursor + click, no gestures / multitouch
MacOS -> works fully including all gestures
Linux (Ubuntu) -> works fully including all gestures
Android_x86 -> works fully including all gestures
Android (Samsung Galaxy S9, S10+, Lenovo P11 Pro tablet ...., Android versions 10, 11, 12) -> never works AT ALL, it appears fully dead (only the trackpad part, keyboard always works fully).
So for the love of god I can't get this to work on Android for whatever reason.
**********************************************