Hey there,
Long time no see!
Despite not posting much I have been tinkering with things that I do mean to talk about when I get the chance to.
One big project was a GBSControl that kinda takes the old VGA signal from the 486. There are some sync issues I want to try to resolve but I got side tracked with something a bit more important.
A mouse.
I had a look around the forums for various solutions. Matze's, Lameguy64's and Necroware's PS/2 to serial boards popped up as did that one solution that used a nullmodem cable + a pi to go from USB to Serial.
The null modem and pi would have been great if I had a null modem laying around but I don't, so a bulky solution like that just isn't worth it to me. So I decided to go with the PS/2 to Serial route.
I took a bit of time to compare the different solutions and decided to go with Matze's offering, for the reason that I felt that modifying and making the board would be the most fun out of all of them.
I downloaded Matze's through hole variant of his board, modified it a bit in KiCad, gave it a nicer silkscreen, moved a few traces around, modified some footprints. All that fun stuff done in some attempt to learn the basics of KiCad.
I ordered 10 of those boards and the parts to make 5 of them. I plan to keep one and try to sell off the other 4 with a 3d printed case. Why not, after all it didn't cost too much more than the parts for 1.
A USB mouse?
So while I was waiting for the boards to arrive and parts to arrive, I was looking at the circuit and the code.
A thought was forming, "why can't I do this with a USB mouse?". I have 3 Pi Picos laying around and I have begun digging into any code examples of the pi pico acting as a USB host. Turns out that there's very slim pickings for any examples code and I'm pretty much suck with the C SDK since Adafruit doesn't have TinyUSB hosting ported over to Arduino or CircuitPython, MicroPython doesn't seem to have it either.
I haven't used C since I was first learning to code, there seems to be a breaking change with TinyUSB so the old USBHost examples don't work any more, the new examples are all Midi rubbish. After some headbanging and lots of confusion I got a cheap USB mouse to talk to the pi pico. I attached a GIF of me clicking a button on the mouse and a red LED turns on and off. This was using the first bit of "this could actually work" code. Since then it got a bit better and I'm basing the actual "to serial" part off of Necrowares code since that was written for Arduino which is much closer to C then the assembly of Matze's code.
I have gotten it to the point where I am ready to hook it up to the PC for testing but I'm still waiting on the parts to arrive from LCSC. I ordered the boards and parts on the same day from LCSC and JLC respectively, the PCB's have already arrived and LCSC has yet to ship my bits.
Considering that I've been wanting to order some more solder, I placed an order with Farnell today with the max232 and a cheap serial connector that will let me go further with this project when they arrive. Hopefully next week I'll be able to continue with this project.
I thought about making a new thread for this topic but since I have yet to have a working prototype, I decided to post here for the moment to see if there is any interest in this project at all. Personally I'm a lot more confident that I can actually do this now than I was at the beginning.
If anyone is interested in the code, I'll be happy to share it on GitHub or something when it either works or I admit defeat.
If the interest is there, I might make a PCB to go with it and maybe sell a few ready made ones to anyone who wants one. No idea on the time frame for that kind of thing but it could happen.
Thank you for reading, your comments and your interest.
-Lime
Be Happy, it's only going to get worse.
- Projects
Limes Strange 3D models
USB-2-232