Pages: [1]   Go Down
Author Topic: Mux Shield Newbie question...  (Read 1113 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I recently purchased an Arduino and a Mux Shield from Mayhem and I was wondering if someone with any experience with this board could point me in the right direction as to how I would go about hooking up a simple button to any of the 48 inputs. (I understand the code, but I'm really poor at electrical circuits...) I have a microswitch with two leads, which I've properly used in the Button tutorial, but the Mux Shield inputs have three pins... (Gnd, Vcc, and I/O pin(?)) I've scoured the web for a pic of how it's done, or even a generic schematic but I haven't been able to find one... Please forgive my lack of electrical circuit knowledge, I'm just getting started in this new hobby...
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8669
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The analog multiplexers act just like multi-way switches.  You wire the data pin just like it was a pin on the Arduino.  For a switch you can just connect the switch between data and +5 and a pull-down resistor between data and ground.  The input pin will be LOW when the switch is open and HIGH when the switch is closed.  The +5 and Gnd connectors with each data pin are for convenience.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: