Open utterances-bot opened 3 years ago
Hi! I recently received a Mac classic II without keyboard and mouse. I attempted lo upload your code but I get an error: "ps2kbd.h: No such file or directory" Where I can get that library? PD: I uploaded the tmk master
Hello!
ps2kbd.h is normally included with the sample code, see https://github.com/Difegue/Chaotic-Realm/tree/master/adbduino/sketch .
If you have it in the same directory as the arduino sketch it should work fine.
Build your design and worked great at least on macos, the mouse works great. But when i try to play games that use key combinatios like doom that requiere you to strafe and press for example up + left + ctrl, things get bad the keyboard get stuck on keypresses keys stop resonding its a shame because apart from this works so good.
My dumb mod certainly wasn't game-tested 😳 I mostly use it to test out Macs and hardly for gaming... You might want to try the original/unmodded sketch which could work better with your keyboard: https://github.com/Difegue/Chaotic-Realm/tree/c0f397477fbb5e0281c72010354e23c1d87554f5/adbduino
This is awesome, thanks for writing it up! Arduino noob question: Which pins did you hook up to the ADB and Power lines for the connector? Looking at the original ADB code linked in the comment above, it looks like Port B Pin 11 (DDRB [&/|]= 1 << 3 should be pin 11 based on Arduino port docs I think). But I assume the schematic you pulled from Osmond is meant to work with the original code, and it appears to have pin 11 (not sure if this is physical pin?) hooked to ground. Sorry I'm sure I'm missing something obvious here, but any info would be appreciated - or additional pics so I can see the wiring from the Nano you got working and check it against the code. Side question, but the power line from ADB would just be used to turn the Mac on right? I couldn't tell from the code, do you use that functionality at all from the PS/2 keyboard? If you're interested in working on a PCB to make this a bit more sturdy lmk!
Hey there! 👋 IIRC the pin numbering on the Osmond screenshot is wrong, if you compare it to an actual Arduino Pro Mini you'll see that the ADB pin ends up being indeed wired to port 11:
As for the power pin, there's some related code here you can enable with a define: https://github.com/Difegue/Chaotic-Realm/blob/edd9937e6ec0a574d6ceb66af9133ca7fc87ff80/adbduino/sketch/adbuino.ino#L274
If enabled, it triggers with the ESC key, but I don't remember if that actually works in practice.
FYI: I forked this project and replaced PS/2 with USB as the input device. https://github.com/akuker/adbuino/blob/usb_updates/README.md
Would it be possible to provide the schematics in some sort of "normal" format for people who don't have any recent Mac to run Osmond? :) I've hacked the adapter together on a piece of universal PCB, but it doesn't work at all. Looking at the "schematics", my eyes hurt :) Thanks a lot!
Hi, thanks for making this.
How would I go about making one of these using an arduino uno or mega? I've tried myself but it doesn't work.
I'm not an arduino expert but there shouldn't be issues using a mega or a uno for this; Perhaps you got the wiring wrong?
I'm aware the original osmond schematics aren't very nice to look at (and the pinout doesn't perfectly match the code, see my previous comment about pin 11) so it'd be nice to remake them, but I don't know any good easy-to-use PCB schematic software 😅 Suggestions welcome!
Yeah, I probably just didn't wire it properly
I believe this schematic matches the Osmond file, and might be a little easier to read. https://github.com/akuker/adbuino/blob/master/hw/adbuino_v0p1/adbuino_sch.pdf
However, I was never able to get PS/2 working either. Which is why I switched over to using USB :)
Hi!, nice work! I have a problem: seems that it expect a keyboard but I'm only using a PS2 mouse. How can I disable keyboard? I've tried commenting these lines in setup(), it kind of want to start (I have more output via seria) but It doesnt work:
//InitPS2Keyboard(); //SetPS2Repeat();
Thanks
hello thanks for your info can you give me a clear pinout the wires for arduino nano because i cant find it anywhere i would be thankyou to doing this for me
i tried with the some way that osmond file said but it didnt work and i cant find any adb mouse nearby
Blogopolis - Using PS/2 keyboard/mice on old Macs with Arduino
https://tvc-16.science/adbuino-ps2.html