• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Cheap and simple ADB to USB converter

RedJacketPress

Well-known member
I have a follow-up question: how do you map the "Power" key on an ADB keyboard? I'm using an Apple Keyboard II (M0487), and the button is actually referred to as "Reset."
 

joevt

Well-known member
I have a follow-up question: how do you map the "Power" key on an ADB keyboard? I'm using an Apple Keyboard II (M0487), and the button is actually referred to as "Reset."
I don't know about the ADB to USB converter, but regarding the Power key:

Early Apple USB keyboards have a power button. I can connect my Apple USB Keyboard from the B&W G3 to my Mac Pro 2008 running Monterey. If I press the power button on the keyboard for awhile, it will cause my display to sleep. If I press Control-Power, it will show the "Restart Sleep Cancel Shutdown" dialog. I suppose you would want the ADB keyboard's reset button to do the same thing?

When connected to my B&W G3, the Apple USB Keyboard's Power button can turn on the Power Mac. If I hold Command-Option-O-F, then it will go into Open Firmware. If I press the Power button again, it will shutdown.
 

Skate323k137

Well-known member
Hey, I would also be interested in building one of these. Does anyone in the US have a spare board I could buy?
If I can find where I put them ...

Edit: found them, I have 10-15 left, shoot me a PM if you need one (or more).
 
Last edited:

Skate323k137

Well-known member
@ronan I see the PCB files on your github but didn't notice a license i.e. CC-BY-SA or GPL.

I have easily a dozen kits (sans pro micro) available. Because several people have asked for these, and because I am -definitely- getting 1099'd by eBay/PayPal this year, I moved my remaining PCBs and parts to eBay. This also keeps me honest in giving a portion of my open source item sales to charity. I've left your name on the PCB and in the listing and credited you appropriately, please let me know if there's any issue at all with me selling these like that.
 

tt

Well-known member
This might be a really dumb question, so bear with me: how hard would it be to reverse this? In other words go modern USB keyboard/mouse to ADB port on Mac? I'm not so concerned about the keyboard side of things, as there are good reasons to use a genuine ADB keyboard. But the old ball mice are horrible, and a modern optical USB mouse is so much better. Having a cheap device to make that connection would be awesome. (Wombats are pricey, especially if you have multiple Macs like we all do.)
Did you end up finding anything? I have the same thoughts, I prefer an ADB keyboard, but using a ball mouse is not great.
 

zigzagjoe

Well-known member
Did you end up finding anything? I have the same thoughts, I prefer an ADB keyboard, but using a ball mouse is not great.
USB is a couple of orders more complex to implement so it requires a significantly more expensive microcontroller.
EDIT: Look at the USB wombat: https://shop.bigmessowires.com/products/usb-wombat

Better option is to find a USB mouse that also does PS/2. I believe I saw some adapters out there that do PS/2 to ADB already, so that'd be your best bet for a modern mouse on a mac.
 
Last edited:

Chopsticks

Well-known member
Did you end up finding anything? I have the same thoughts, I prefer an ADB keyboard, but using a ball mouse is not great.
you need something that can run as USBHost, hardware wise a lot of arduino style boards can do it. probably something like the SAMD based stuff.. most of the teensy boards support running as USBHost too.

the main possible issue is going to be if theres a good USBHID driver available or not.
otherwise you would need to write your own Generic USBHID keyboard and/or mouse driver if there isnt some code out there you can reuse.

USBHost libraries are kinda common now, but implementing the rest of the code is where the challenge would be.
 

tt

Well-known member
@Chopsticks Yeah, I was wondering if any new adapters had come about in the bast few years. I tested an adapter bbraun made based on an STM32 dev board a long time ago so I have been interested in finding a simple and small microcontroller board with USB host capability to tinker with that runs off 5V and just needs an ADB socket attached to it.
 

Chopsticks

Well-known member
while i havent used it from everything ive read the BMOW wombat is a fantastic device, but being able to go USB>ADB and ADB>USB in the same device while supporting keyobards and mice increases complexity alot. its a product im my long....long list of things to buy for my vintage mac's.

however depending on you programming skills theres alot of code out there for DIY USB keyboards, and the ADB protocol is both well documented and also has a decent amount of adaptable code out there too.

in theory (though without having looked at any code in depth in a long time) you should be able to implement a 'custom' USB keyboard interface relatively easily. id probably start with implementing and tinkering with some code that allows you to modify say the scan codes used to remap perhaps the function keys or something to output different scan codes i.e to make the Function keys send a change volume or something.
that would get you versed enough in how it all works.

next i would look at how ADB to USB code works and how the mapping is done in some on those open source ADB>USB projects floating around on the net. strip out whats not needed to get a better understanging on how its working.

from there you could mesh them together to get a USB>ADB setup running.

keep in mind its likely more complex to actually write the code then how ive explained the process of doing so. and also keep in mind a keyboard and a mouse work quite different. converting a mouse is another topic again.

depending on you skillset and also what time you have to dedicate to learning/writing/designing it, you still may be better of buying the Wombat... again its a great device. but if learning and tinkering is more valuable to you then the hours/weeks/months etc needed to DIY it then theres a huge amount of much more talented people then me here on the forum whom im sure whould be happy to pass on or answer any specific questions you have should you go down that route. Trust me here, both the skills and knoweldge the members here have is immensive impressive
 
Last edited:

ronan

Well-known member
@ronan I see the PCB files on your github but didn't notice a license i.e. CC-BY-SA or GPL.

I have easily a dozen kits (sans pro micro) available. Because several people have asked for these, and because I am -definitely- getting 1099'd by eBay/PayPal this year, I moved my remaining PCBs and parts to eBay. This also keeps me honest in giving a portion of my open source item sales to charity. I've left your name on the PCB and in the listing and credited you appropriately, please let me know if there's any issue at all with me selling these like that.
Sorry for the long delay. You can do what you want with the files, even a commercial usage. Try to mention me somewhere if possible.
 

Codiferous

New member
@ronan I see the PCB files on your github but didn't notice a license i.e. CC-BY-SA or GPL.

I have easily a dozen kits (sans pro micro) available. Because several people have asked for these, and because I am -definitely- getting 1099'd by eBay/PayPal this year, I moved my remaining PCBs and parts to eBay. This also keeps me honest in giving a portion of my open source item sales to charity. I've left your name on the PCB and in the listing and credited you appropriately, please let me know if there's any issue at all with me selling these like that.
Hey there! Would you be able to send over a link to your ebay if you still have any available?
 

Skate323k137

Well-known member
Hey there! Would you be able to send over a link to your ebay if you still have any available?
Sure, I have just over 15 left.

 

Codiferous

New member
Sure, I have just over 15 left.

Outstanding! Now I can finally solder something with my iron. Got two because I have no idea what I'm doing lol
 
Top