PumpInteractive / PumpFoos

A Foosball Stat-tracking Slack Bot
1 stars 4 forks source link

Hardware Shopping List #55

Closed twkm closed 8 years ago

twkm commented 8 years ago

Goal for the first version of hardware is to get some buttons working as keyboard inputs. Future versions could incorporate LEDs or other such fanciness.

Buttons

Will need 26 buttons for players (13 a side), but get a few extra for backup/other uses.

Controller and Components

twkm commented 8 years ago

I'm leaning towards using RJ45 (Ethernet) connectors to link each rod of buttons to the controller, since we can make them easily ourselves to any length. Any thoughts?

seanrabey commented 8 years ago

I think that would be great. Would and Ethernet connectors have enough lines to handle all of the buttons on the 5 bar? I'm trying to imagine how it would get wired up

twkm commented 8 years ago

RJ45 has 8 transmission lines, and we'd need 4 to communicate with one shift register. One shift register can give us 8 inputs/outputs (depending on the shift register) using 4 I/O pins on the teensy.

"An 8 bit shift register needs 4 lines of a microcontroller. One for the Clock to time the data transfer, one to the enable the clock, one for loading/latching/shifting the bits, and one for the serial data transfer." https://learn.sparkfun.com/tutorials/shift-registers

So 1 shift register per bar controller can listen to up to 8 buttons. That leaves us with another 4 pins on the ethernet to drive another SR for LED or RGB LED output (or whatever) at a later date.

I think 8 should be more than enough. Until we think of the next crazy thing :smile:

Further reading:

https://en.wikipedia.org/wiki/Shift_register