Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:08 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : just spotted on EEVblog: USB to PS/2 converter - CH559 based

Author Message
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 03:03am 06 Sep 2022
Copy link to clipboard 
Print this post

two USB host ports for connecting a USB keyboard and mouse, and two PS/2 outputs giving keyboard and mouse data outputs:
https://www.eevblog.com/forum/projects/usb-to-ps2-converter-ch559-based/

note that rasteri uses a CH559 instead of my idea of a CH376s that does not directly output a PS/2 data stream. the CH559 seems a far tidier solution.

source code, etc. here:
https://github.com/rasteri/HIDman
apparently based on:
https://github.com/atc1441/CH559sdccUSBHost


cheers,
rob   :-)
Edited 2022-09-06 13:06 by robert.rozee
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 06:32am 06 Sep 2022
Copy link to clipboard 
Print this post

To use with the CMM2? Or, what?

Does it work?

John
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 06:50am 06 Sep 2022
Copy link to clipboard 
Print this post

having followed the links, you know as much as me  

it is probably fair to say it works to at least some reasonable degree, but like all such open-source projects will progress and evolve. if CMM2 production restarts in a few years time, it would be a candidate to replace the present mouse (and keyboard) solution used.

"Or, what?": for anyone who finds them in a land without PS/2 keyboards and mouses, and a need.


cheers,
rob   :-)
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 06:56am 06 Sep 2022
Copy link to clipboard 
Print this post

picomite could use a USB keyboard input.

The PS2 keyboards second hand are drying up in Netherlands.
And the choice in new ones is limited between toys (small) to expensive.
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 08:24am 06 Sep 2022
Copy link to clipboard 
Print this post

I suspect that it probably works. You should be able to do USB to PS/2 keyboard conversion on anything that can work with a USB keyboard and has a couple of GPIO pins - any old RPi that you might find in a drawer, for example. However, you almost certainly won't get a mouse of any sort working on a PicoMite (before anyone asks).
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2642
Posted: 08:39am 06 Sep 2022
Copy link to clipboard 
Print this post

" you almost certainly won't get a mouse of any sort working on a PicoMite (before anyone asks)"

If one is sufficiently desperate to have a mouse for the LCD 'mites, write software for the external MCU to emulate a touch controller chip.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 09:09am 06 Sep 2022
Copy link to clipboard 
Print this post

I think you'd have to be desperate to do that. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2567
Posted: 05:04pm 06 Sep 2022
Copy link to clipboard 
Print this post

I have 4 ps2 keyboards. My son asked why I did not bin them. I am a hoarder.
I do not have any ps2 mice though. If I remember they were those with a ball not laser and were always a pain to use.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 04:02am 07 Sep 2022
Copy link to clipboard 
Print this post

  Mick said  However, you almost certainly won't get a mouse of any sort working on a PicoMite


If you have a serial port, the Hobbytronix or Silicon Chip USB mouse to serial interface can (and has been ) used.

Also Raros used an old serial mouse with the maximite.

Bill

Edit: Silicon Chip did say that the were thinking of producing a USB Keyboard to PS/2 version of the software for that unit but nothing has happened yet as far as I know.
Edited 2022-09-07 14:06 by Turbo46
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 04:23am 07 Sep 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  However, you almost certainly won't get a mouse of any sort working on a PicoMite (before anyone asks).

My PS2 to WiiClassic (Arduino nano) also outputs serial so, if you really wanted to, it can be done.

Jim
VK7JH
MMedit
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 05:57am 07 Sep 2022
Copy link to clipboard 
Print this post

I don't think it matters how you interface a mouse, the PicoMite is the bottleneck as in order to move a mouse pointer smoothly on screen it has to be interrupt driven. The PicoMite VGA (I'm discounting mice on LCD displays as there's no real point if you can have a touch screen) is already pretty heavily laden in that respect. Converting mouse movement to a serial stream, even if you filter out the judder with another processor, is still going to give quite an overhead just to process the mouse movement.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 06:46am 07 Sep 2022
Copy link to clipboard 
Print this post

If I recall correctly, the cursor movement when using the Silicon Chip device was quite smooth on the 80MHz CMM1. It was interrupt driven and I left the serial baud rate at the default 9600.

The VGA Picomite should be more capable I would expect. I'll give it a go when time permits.

Bill
Keep safe. Live long and prosper.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025