repostan from /tech/
I was thinking of building a fightan game controller, it's mostly for shits and giggles and experience, but there's also the price of a real one since I live in a shithole. I have a basic theoretical knowledge of circuits and a decent enough software knowledge, but my hardware to software knowledge is limited to "energy comes in, porn comes out".
I have some ideas about how to design it with a clock and a flip flop and gate fuckery, but I have no idea if it'll work.
TL;DR baby's first controller, pls help
>How does the computer read input?
This is one thing I couldn't find by myself. I know most, if not all, controllers use a chip that takes the button input and translates it into the right bleeps and bloops, but I don't know if it does anything more than putting them in order.
Would it be possible to just send the pure output and have the software figure it out? Like just read the energy input during the stick phase and calculate where that would be, then read the energy input during each button's phase to see if they're on or off.
>How into USB differential?
I know the USB has a differential cable to prevent interference or whatever fuckery might happen. It seems simple enough for buttons, just throw a not gate in and done, but I can't imagine the fuckery that it would be with a potentiometer. Is it possible to just not use it? If not, is there an IC chip that does that kind of stuff?
>Is there a timed switch IC?
My original plan was to use the clock to send the raw output in phases, controlled by flip flops and transistor gates (e.g. potentiomer 1 output -> potentiometer 2 -> button 1 -> button 2 -> repeat) my current design is kind of retarded and just right, meaning I wouldn't be able to add extra buttons or a checksum in. Is there a IC that receives multiple inputs and cyclically changes the one connected to the output based on a clock input?
>For the stick, should I go with raw potentiometer input?
One one hand, the potentiometer grants extra positions (as much as the driver can read) and it's simple. On the other, translating it into an 8bit output or something might be better, it leaves less room for reading error, there's still, if it's 8bits, 256 positions on each axis, which's more than you probably need and would solve the differential problem.
>Is using a fuckton of ICs circuit nigger rigging?
Controllers only use one ASIC, though that's because they buy in bulks and it's worth to spend half a million for them. In my case, I was just going to use cheap generic ICs for logic stuff (like flip flops and whatnot), thing is, just the phase controller would use 5 ICs. Is it common in DIY stuff or am I being the darkest Argentinian right now?
>inb4 arduniggers
Fuck this site, I need to use a proxy just to post, and I'm not even banned.