The USBGPIO8 is a USB-to-GPIO bridge. Specs are here. I want to use it to read the status of the front-panel buttons on my Thecus N5550 NAS. (There are actually 4 buttons; the circuit diagram only shows 2 for clarity.) I have established that the buttons are simple contact switches.
The circuit is inspired by the Background section of this article. (This is using pull-down resistors, as shown in the lower diagram on that page.)
Other notes:
- IO2 and IO4 are set to output/on; they provide the positive voltage that is detected when a switch is closed.
- I have established through testing that all four positive connections (as I plan on using them) on the button module are wired together.
- S0 is read on IO0; S1 is read on IO7. (I probably wouldn't actually wire things up this way, but it makes the diagram clearer.)
- The USBGPIO8 is powered (and grounded) through the USB connection.
No comments:
Post a Comment