This DC wired conversion adapter replaces the AA batteries in your A1314 Apple keyboard.
What you will need:
Feel free to change the attached f3d file if your parts don't fit.
Insert battery shaft into the half-circle shaped slot of the knob. You can glue the two parts, if you want, but it wouldn't be necessary because it's a pretty snug fit to begin with and the spring inside the keyboard will hold things in place securely.
Insert the M2.5 nut into the slot. I've used an 8 mm nylon nut.
Feed the DC power cable through the hole in the knob and attach the positive wire to the far end of the battery shaft using a M2.5 screw. A ring terminal is going to be useful if you have one. The screw head is going to act like the positive terminal of a double-A battery.
Note the entire keyboard's chassis is grounded, Use a piece of electrical tape so only the tip of the positive terminal is exposed and you don't accidentally short the circuit.
Apply hot glue where needed to secure things down.
Here is perhaps the most challenging part of this project and that is to bend the ground (black) cable 180 degrees and “pinch” it between the chassis and the knob. It helps to pretin the wire to make it more rigid. I have not needed to use an electrical tape myself, but you might find it helpful.
If the end of the wire sticks out and you feel like it will hurt you, just use a flush cutter.
Connect the keyboard to your favourite 3V power supply.
The author remixed this model.
Used the linked models in my design.