Show Posts
Pages: 1 [2]
16  Using Arduino / Project Guidance / Re: Why are all of these buttons acting like they are the same? on: November 03, 2012, 03:31:45 pm
I've only ever used resistors with 4-Pole buttons before, I wasn't aware as to how to employ them with the two pole buttons. In fact I didn't even know that they needed them, I thought that it had something to do with the four pole buttons being able to switch either from LOW to HIGH or HIGH to LOW.

Will I need to add the resistors? And which pole, the source (of which I assume so) or the gate?

Thanks for your help!

Michael
17  Using Arduino / Project Guidance / Why are all of these buttons acting like they are the same? on: November 03, 2012, 03:22:55 pm
Hey guys; I've been a long time lurker, but this is my first question I couldn't find an answer too myself.

I'm working on a project where I'm pairing a Teensy 2.0 with a Raspberry Pi over UART to make an interactive raspberry pi enclosure. I've got seven 2-pole buttons mounted in the front of the enclosure, each going to a different Teensy input but receiving power from the same source.

I just wrote a quite sketch to test the validity of my setup and that the buttons were working, but I realized that no matter which button I pressed, the pin I was reading (I was only reading the first buttons pin) would go up to 1.

I am relatively new to this; but I have had buttons that have had common power sources (and by that I mean that each buttons input wire is connected to the same "rail" which I made by myself out of perfboard) and they have never done anything like this in the past. However, in recent weeks, I've heard alot about "Button Bouncing" and think that it may be my issue. However, I'm not sure. Is this behaviour something that could be brought about by a lack of debouncing in my hardware?

Thanks, and if more details are needed feel free to ask.

Michael
Pages: 1 [2]