Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: skurk on November 27, 2007, 07:56:18 PM
-
Allright, this is my first electronics project for the Amiga. I'm going to use this thread as a project/status thread so those interested can follow the progress.
[size=16]WHAT IS IT?[/size]
My first project, an ambitious one if I may say, is a PC mouse adapter. "But skurk," you say, "those already exist!" Yes they do, but this is going to be the ULTIMATE one: PS/2 and USB* inputs, and a DB9 for joystick passthrough. No switches or buttons, everything will be autosensed and mastered by a PIC16F84 microcontroller.
[size=10]*) PS/2 compatible USB mice only.[/size]
[size=16]BUDGET AND STUFF[/size]
To make things a bit more exciting, this will be on a tight budget: The unit, assembled and ready-to-use, should cost no more than US$15. When (or if) I'm finished, everything will be released under the GNU General Public License (http://www.gnu.org/licenses/gpl.html).
(http://home.no.net/husq410/connectors.jpg)
[size=16]PLANS[/size]
I'll breadboard a typical PS/2 adapter first, then work my way to introducing the USB and DB9F later. I have a job, a girlfriend and a kid to take care of too, so don't expect this to be completed tomorrow. :-)
-
Interesting project will keep us updated with pictures and stuff will love to see the end result .
Good luck bandit :-D
-
so don't expect this to be completed tomorrow.
No problemo amigo. We give you till day after tomorrow. :-D
p.s. I want 3 of them!
-
Good luck with the project. My poor old Amiga mice are definately starting to show their age. I really need to invest in a transparent PC mouse to Amiga adapter.
One question, why is it that Amiga mice seem to last for decades while PC mice like to clap out after a couple of years?
-
Good luck! Its great to see so many people getting into the electronics side of things.
Andy
-
I would like to have one once you got it working.
Try to keep it as low profile as possible and offcourse tiny.
Why keep ps/2 and usb and not just usb input?
Ps/2 mouses are rare these days me think.
Thinking almost everyone is using a adapter nowadays.
Price under teh 20 euro ex postage would be quite acceptable.
-
I would be very intrested.
@Amiga4001, theres plenty of PS/2's about! You just need to look in PC shop bargain bins. :lol:
-
@skurk
I want one!
THis project is SO IMPORTANT! want to know why? such a thing does not exist on the Amiga.............I for one don't undertsand it, but anyway the reason its important is:
You can use USB mice without a Subway! thats SUPER important because if you want a wireless mice these days, they are all USB.....so if you can plug a USB mouse into a PS/2 port that attaches to the Amiga regualr mouse port, you are good to go right from bootup time. I hope it will work with Wireless USB mice? Thats thee most important thing.
I want one! Make sure you only make ONE color! Black! it matches with everything....and make it low profile.
Good luck! Thanks for doing this.
-
Thanks for all the thumbs up, everyone!
@leirbag: I doubt it will work with modern USB mice, sorry. They depend on various drivers, and I obviously cannot implement them all. If the USB mouse works on a PS/2 port (using an adapter) then it will work on this unit as well.
@others: I haven't really thought much about appearance yet, but if it ever gets on a PCB, it'll be small, slim and compact. I hate huge, boxy dongles.
Anyway, day 1 is over, and this is as far as I got. Not that an image says too much, but you can see it's connected to the Amiga:
(http://home.no.net/husq410/ultimate1.jpg)
Yes, it looks ugly and a bit of a mess, but it actually does something: it reports left and right mouse button events. No movements are "translated" yet, I might get to that tomorrow. No drivers are required on the Amiga side.
-
Great project!
One thing to test is if the joystick passthru works with CD32 pads. The passthrough on my RAMA (port 2) doesn't, and the joy/mouse switches I've tried don't support more than a button (or two maybe).
-
Don't forget to test for Middle Mouse Button events.
-
Great project Skurk! I'll be looking forward to your progress reports.
Don't forget: it MUST have a 6502 on it!!!! :pppppppp
-
Hello. Are you aware of a problem with POT-inputs of the joy/mouseport? I made some PCBs (http://www.iki.fi/mkl/ps2mhiiri627/) for the GPL'd "ps2m" project.
To gain low price, you might want to check which version of PIC to use. PIC16F627A is about 1 euro at digi-key (25 quantity.) 14-pin PIC16F505 is cheaper. The PIC16F54 is maybe the lowest price, but it has not got an internal oscillator.
-
Good luck with your project. It's really a good one. :-)
-
Only one request: Make sure it fits in an A2000 mouse port. The Punchinello (which converts M$ serial mice to Amiga) doesn't really fit unless you grind it down.
Also, I found one other problem with the Punchinello. It's rigid and sticks out the front of the 2000PT (Polish Tower aka A2000D turned on it's side) so far that if you walk by the 2000 too close you break it off.
A solution would be to have the Amiga mouse port connector on a cable instead of directly on the dongle.
-
Great idea, and well done.
Take your time and we can all have a great converter to buy and use.
Mike.
-
good on you buddy l buy 1 thats for sure ;-(
:-)
-
Hehe, well it's not something I'll put up for sale (I'm no businessman), it's just a project I'll GPL when it gets done.
Anyway, other projects have occupied me lately, so this one's on hold for now. Also, other (and better) adapters have arised since then...
-
Are you REALLY going to support USB HID or are you just going to put a USB connector on so you dont need a USB to PS/2 adapter?
Almost all mice (for the forseeable future) support legacy PS/2 over USB (that's where they send PS/2 signals down their USB cable) and so I cannot see the benefit of adding an expensive USB host chip.
Just my 2p's worth.
I take it you know there are several open-source projects like this, with example PIC code to peek at if you like ;-)
http://aminet.net/package/docs/hard/mouseps2
http://aminet.net/package/docs/hard/ps2m
http://pagesperso-orange.fr/didierm/eiffel-e.htm
@mrmkl
Love your work ;-)
-
@leirbag: I doubt it will work with modern USB mice, sorry. They depend on various drivers, and I obviously cannot implement them all. If the USB mouse works on a PS/2 port (using an adapter) then it will work on this unit as well.
That's {bleep}. Sorry.
USB mice support HID class, and this is standardized (which means also other HID class devices work perfectly with it).
Some mice also support bootmouse class, which is also standardized.
So if you rely on the latter one, at least part of them work with one effort. If you go for HID, then I presume that your PIC will be out of memory very soon, if you want to support all HID features.
Your USB port then simply replaces the USB/PS2 mechanical adaptor, according to your description.
Michael
-
alexh wrote:
Are you REALLY going to support USB HID or are you just going to put a USB connector on so you dont need a USB to PS/2 adapter?
It's just to eliminate the need for a PS/2->USB adapter (as mentioned earlier)
-
http://www.amiga.org/gallery/index.php?n=2082