Convert Pinephone Keyboard into Powerbank
#1
Maybe you are like me and want to use the Pinephone Keyboard also to charge other devices as a simple Powerbank,
with following steps you can add an USB-A socket and use it as such a device (and you get the option to still use your usb-C phone port when keyboard is attached):

Schematic view of what we are going to do:

[Image: 179389946-de3092b1-4c8d-45d4-adb6-44432e298d82.jpg]

1.) Open the keyboard

[Image: 178738515-931aa709-4842-43d9-839e-0e7c40fb3443.jpg]

2.) Remove the controller board:

[Image: 178738527-1a0f0a20-db40-4897-a238-68c1de24f126.jpg]

3.) Cut the wires on J2. its better to cut two of them longer and two of them shorter, so you have a visual feedback of the polarity:

[Image: 179389964-de5e0408-c526-4ffa-bf2e-37ba595093f0.jpg]

4.) Drill a hole in the outer cage which fits the diameter of your USB-A connector (just cut an usb extension cable to get a plug...):

[Image: 179389859-473fca7b-3436-48e7-ad37-f127a8a8a224.jpg]

5.) Insert the cable through the hole,
     solder + and - to the cutted cables,
     apply a shrink hose to isolate it, add a cable tie as a pull protection, but everything together and you are good to go:

[Image: 179389972-e63c2aea-597a-405d-a215-004c048fcec9.jpg]


[Image: 179389976-8e7c8a93-aaf3-4ca2-a78e-88de97ac46eb.jpg]

Your powerbank is finished and you even see the status of your powerbank on the phone:

[Image: 179390350-2bc525cd-81d6-47fb-ac9d-b0cc84a9feb3.png]

After trying to add LED's to show the charging status of the battery and speaking to megi, there is no possibility to do so. You will only get the charging status when connecting the phone... since the charging chip disables the led charging status when I2C is active and with the current wiring, this is always.
  Reply
#2
WOW. Okay, so now the powerbank will never feed power to the phone directly via the Pogo pins, right? This is very interesting.
  Reply
#3
exactly,
you get rid of the power trouble for not be able to use the phones usb-c port when on keyboard, and you are also able to charge other devices.
  Reply
#4
Pity there isn't space in there for a tiny PD-capable USB hub, at least with this board. A connection to the phone's USB port could have been routed through the hinge as the power is, and connectors exposed for USB power and devices.
  Reply
#5
**EDIT:**

I had to modify my hack,
since with newer kernels the keyboard only works when also power is coming thru the Pogo Pins,
so I soldered the powercables back together and the usb inbetween.
I do not like this solution since now I am not able to use the phones usb-c port to connect peripherals.
  Reply
#6
(07-31-2022, 03:56 AM)magdesign Wrote: **EDIT:**

I had to modify my hack,
since with newer kernels the keyboard only works when also power is coming thru the Pogo Pins,
so I soldered the powercables back together and the usb inbetween.
I do not like this solution since now I am not able to use the phones usb-c port to connect peripherals.

Very weird. I wonder what changed in the kernels, or why would such a change be necessary. Maybe the newer kernels don't like it when the V+ and GND wires are disconnected for any USB device? Even if the phone shouldn't consider the keyboard as USB device.

I have an idea. Please don't do it. Here it is:

Return to your hack, so the powerbank does not supply the phone. And take the wires that were previously supplying the phone and solder them to the 3.3V and GND pins on the back of the KB151 board. Those pins are actually part of the development USB port of the keyboard, which is completely separate of anything. This way, the POGO pins of the phone will be connected to something instead of being open. Note that the KB151 board will actually try to draw power from the phone, then, via the POGO pins. But the phone probably doesn't provide much (if at all).

Please don't attempt this, it's likely very wrong.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Wallet Case Shane 5 3,724 09-17-2023, 12:52 PM
Last Post: J T
  PP Keyboard question drh 4 1,871 09-02-2023, 05:33 AM
Last Post: grump_fiddle_reinstall
  keyboard case charging but not typing new2pinephone 14 2,920 09-02-2023, 05:12 AM
Last Post: grump_fiddle_reinstall
  Use the Linux Console with the PinePhone Keyboard mburns 0 238 08-24-2023, 07:42 AM
Last Post: mburns
Question Has anyone switched to the userspace keyboard driver on Manjaro ARM? Hook 15 14,302 08-16-2023, 03:16 AM
Last Post: Ephraimbogan
  KB: Using bus powered USB peripherals with the pinephone keyboard mounted docsunset 9 18,301 08-07-2023, 06:12 AM
Last Post: mikeb
Exclamation USB mouse isn't working when a PP keyboard is attached? mikeb 0 209 08-07-2023, 06:09 AM
Last Post: mikeb
  PinePhone flex breakout board with Grove female header jnpine 0 214 08-04-2023, 10:47 PM
Last Post: jnpine
  Pinephone Keyboard Connector dorkydev 0 255 07-19-2023, 04:40 AM
Last Post: dorkydev
  Pinephone KEYBOARD BATTERY ISOLATION. --- 1 527 07-10-2023, 04:59 AM
Last Post: mike555

Forum Jump:


Users browsing this thread: 1 Guest(s)