VOGONS


First post, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++

So while mulling over the fact that the only serial pointing devices I have are trackballs, I came across this program for Raspberry Pi that acts as an active converter to let you use a USB mouse on a serial port.

https://github.com/mborjesson/USB-Mouse-to-Serial

If there is no perceptible lag with this setup, I think that this would give me a reason to actually buy a Raspberry Pi.

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 3 of 21, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++
gdjacobs wrote:

This should be doable with an inexpensive AVR fob.

Such as? I am unfamiliar with AVR fobs.

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 4 of 21, by gdjacobs

User metadata
Rank l33t++
Rank
l33t++

The Teensy is a very small Atmel AVR board. In combination with the firmware payload Matze made for his converter and a MAX232 style level converter, you'd have a cheap and easy way to prototype your own interface.

All hail the Great Capacitor Brand Finder

Reply 5 of 21, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++

Looks like the cheapest I can get a Teensy is $19.50 (+ shipping?) And that is for the v3.2 Or am I not seeing a much cheaper option?

I can get a Raspberry Pi Zero for $9.55 shipped.

In any case, somebody is going to be giving me an old Raspberry Pi to play with.

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 6 of 21, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++

There is also code and schematics to make a PS/2 to serial adapter using an arduino board.
https://youtu.be/R_H84iGJeDo
https://github.com/Lameguy64/ps2serial

I think USB would be much more useful in the long run.

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 7 of 21, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++

Would one of these be viable to use?
https://www.ebay.com/itm/STM32F030F4P6-CORTEX … B-/142756611303

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 8 of 21, by CODOR

User metadata
Rank Newbie
Rank
Newbie
cyclone3d wrote:

So while mulling over the fact that the only serial pointing devices I have are trackballs, I came across this program for Raspberry Pi that acts as an active converter to let you use a USB mouse on a serial port.

I'd considered doing exactly this a year or so ago but realized I'd need to wire up the Pi's UART along with a GPIO pin to act as RTS (used to reset the 'mouse') through an RS232 transceiver so nothing ever came of it.
Only now does it occur to me that I could have just used one of the USB<->RS232 adapters that I already have 😵

It's nice to see that someone already wrote the software, though; I've got a couple of original Pis gathering dust that would be appropriate for such a purpose. I suppose they could be considered overkill but they can always do other things at the same time like act as a file server using EtherDFS or something. Plus it amuses me that they could probably emulate most of the systems I'd want to attach a serial mouse to but I'd be using them for such a menial purpose instead 😀

Reply 9 of 21, by gdjacobs

User metadata
Rank l33t++
Rank
l33t++
cyclone3d wrote:

Looks like the cheapest I can get a Teensy is $19.50 (+ shipping?) And that is for the v3.2 Or am I not seeing a much cheaper option?

I can get a Raspberry Pi Zero for $9.55 shipped.

In any case, somebody is going to be giving me an old Raspberry Pi to play with.

Don't get me wrong, Raspberry Pi boards are fun. It just seems wasteful to run a bunch of OS to emulate a serial mouse. 😒

Looks like Arduino Nanos are the most inexpensive option for AVR micro dev boards. It should be fairly straightforward to move from Matze' work to that, and the uC itself will run < 5 USD.

All hail the Great Capacitor Brand Finder

Reply 10 of 21, by .legaCy

User metadata
Rank Oldbie
Rank
Oldbie

Just remembering that you don't need to buy the original Arduino board, since it is all open source you can get cheap clones from china and they will work well.

Reply 11 of 21, by matze79

User metadata
Rank l33t
Rank
l33t
cyclone3d wrote:
There is also code and schematics to make a PS/2 to serial adapter using an arduino board. https://youtu.be/R_H84iGJeDo https:// […]
Show full quote

There is also code and schematics to make a PS/2 to serial adapter using an arduino board.
https://youtu.be/R_H84iGJeDo
https://github.com/Lameguy64/ps2serial

I think USB would be much more useful in the long run.

The Schematic in this repository will not work with every computer, you should use proper max232

https://www.retrokits.de - blog, retro projects, hdd clicker, diy soundcards etc
https://www.retroianer.de - german retro computer board

Reply 12 of 21, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++
gdjacobs wrote:
cyclone3d wrote:

Looks like the cheapest I can get a Teensy is $19.50 (+ shipping?) And that is for the v3.2 Or am I not seeing a much cheaper option?

I can get a Raspberry Pi Zero for $9.55 shipped.

In any case, somebody is going to be giving me an old Raspberry Pi to play with.

Don't get me wrong, Raspberry Pi boards are fun. It just seems wasteful to run a bunch of OS to emulate a serial mouse. 😒

Looks like Arduino Nanos are the most inexpensive option for AVR micro dev boards. It should be fairly straightforward to move from Matze' work to that, and the uC itself will run < 5 USD.

It also seems like even the current firmware for Matze's PS2 converter, which is in assembler btw, has issues with a lot of KVMs.

I'm not good with assembler, but I might be able to muddle my way through it, but the USB protocol is going to be a lot different then the PS/2 protocol.

Also not sure if 16Mhz is going to be fast enough to do the conversion without lag.

Here is another thought. Would it be possible to use a modified version of CuteMouse to support higher baud rates and thus better tracking with a converter? I'm guessing that it would be a pretty trivial driver change to do so.

Edit: Looked at the CuteMouse source. Looks like it only supports 1200 baud even with Logitech mice which support 2400 baud.

Would be a sweet change to have the converter run at say... 19,200 baud or higher for way better resolution with a USB mouse. For that matter, going even higher couldn't hurt anything could it?

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 13 of 21, by Jo22

User metadata
Rank l33t++
Rank
l33t++
cyclone3d wrote:

There is also code and schematics to make a PS/2 to serial adapter using an arduino board.
https://youtu.be/R_H84iGJeDo
https://github.com/Lameguy64/ps2serial

Thanks a lot for sharing that link! The schematic is interesting.. 😀
Is it really using a LM7805 as a level converter ? - I've never seen this before.
Weird, but interesting, still. Since the PC side is receiving data packets most of the time,
it could actually work without interruption.

schematic.png
Filename
schematic.png
File size
68.06 KiB
Views
4022 views
File license
Fair use/fair dealing exception

Also, it looks like a good opportunity to test my self-made Arduino:

arduino_diy.png
Filename
arduino_diy.png
File size
1.33 MiB
Views
4022 views
File license
Fair use/fair dealing exception

Edit: Seems there are also ATtiny versions of such a converter.
Tiny85 https://github.com/urjaman/ps2-to-rs232
Tiny2313 http://www.tempect.de/senil/ps2to232.html ,
https://hackaday.com/2017/10/09/a-converter-y … o-serial-mouse/

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 14 of 21, by Thallanor

User metadata
Rank Member
Rank
Member

This is some awesome and promising work! I wish I had more talent for such things. It'd be nice to see someone do a limited run of these, pre-assembled and ready to go. I keep wanting to poke at Arduino, Raspberry Pi, etc. but I'm running out of workspace already and even more-so running out of free time. 😀

Reply 15 of 21, by Hamby

User metadata
Rank Member
Rank
Member
CODOR wrote:
I'd considered doing exactly this a year or so ago but realized I'd need to wire up the Pi's UART along with a GPIO pin to act a […]
Show full quote
cyclone3d wrote:

So while mulling over the fact that the only serial pointing devices I have are trackballs, I came across this program for Raspberry Pi that acts as an active converter to let you use a USB mouse on a serial port.

I'd considered doing exactly this a year or so ago but realized I'd need to wire up the Pi's UART along with a GPIO pin to act as RTS (used to reset the 'mouse') through an RS232 transceiver so nothing ever came of it.
Only now does it occur to me that I could have just used one of the USB<->RS232 adapters that I already have 😵

It's nice to see that someone already wrote the software, though; I've got a couple of original Pis gathering dust that would be appropriate for such a purpose. I suppose they could be considered overkill but they can always do other things at the same time like act as a file server using EtherDFS or something. Plus it amuses me that they could probably emulate most of the systems I'd want to attach a serial mouse to but I'd be using them for such a menial purpose instead 😀

Funny... somewhere around here I've got USB->PS/2 adapters... and PS/2 -> serial adapters. You'd think I'd be able just to string them together 🤣

Reply 16 of 21, by gdjacobs

User metadata
Rank l33t++
Rank
l33t++

Sorry to disappoint. Those USB to PS/2 adapters are more like PS/2 to PS/2 (there's a PS/2 chipset in older mice that switches on when hooked up to a PS/2 port).

All hail the Great Capacitor Brand Finder

Reply 18 of 21, by dkarguth

User metadata
Rank Member
Rank
Member

I would do the pi thing just to say that my mouse had more processing power than the PC it was connected to 🤣

"And remember, this fix is only temporary, unless it works." -Red Green

Reply 19 of 21, by mdog69

User metadata
Rank Newbie
Rank
Newbie
.legaCy wrote:

Should work fine, but using a raspberry pi for this is kind of overkill, but hey, it is up to you.

There's a high probability that an RPi would cause enough of a delay to get annoying after a while.
Might be OK for a proof of concept, but by the time you've mucked around with the RPi you might as well have prototyped it on an Arduino.