this post was submitted on 12 Aug 2025
1327 points (98.7% liked)

Programmer Humor

26583 readers
2329 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] JoMiran@lemmy.ml 128 points 1 month ago (26 children)

Big keyboard jack, serial for mouse, parallel for printer

[–] josefo@leminal.space 32 points 1 month ago (14 children)

Don't forget the serial input for gamepads and joysticks in the dedicated sound board for some reason

[–] BigDanishGuy@sh.itjust.works 36 points 1 month ago (7 children)

Except that wasn't a serial port, it was midi, and the reason it was on the sound card was because the input was analog.

Your joystick was just two fancy potentiometers, and your soundcard decoded the voltage on the middle legs into a position.

Soundcards handled joysticks because they had the fastest ADCs.

[–] cmnybo@discuss.tchncs.de 15 points 1 month ago (1 children)

They didn't even use an ADC. They used 555 timers to produce a pulse. They measured the length of the pulse to determine the potentiometer position. Since there are 4 analog inputs, they typically used the 558 timer which is the quad version of the 555.

[–] BigDanishGuy@sh.itjust.works 7 points 1 month ago* (last edited 1 month ago) (1 children)

And here I thought I had it all figured out. But it does make sense. Doing it with an analog signal introduces noise and measuring pulse widths is going to be simpler.

[–] dethmetaljeff@lemmy.zip 2 points 1 month ago* (last edited 1 month ago)

I don't know what I'm going to do with this information but I'm glad it's in my brain now.

load more comments (5 replies)
load more comments (11 replies)
load more comments (22 replies)