Help with arduino micro pin states
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 3
- Joined: Tue Feb 19, 2013 2:39 am
Help with arduino micro pin states
I just got an arduino micro in the mail and plugged it in today to start writing code to it. However, for some reason most of the digital I/O pins always read HIGH or 1 in the serial monitor and only a few bother to turn off (sometimes) or register a 0 in the serial monitor. For this reason its impossible to use buttons or switches or anything for that matter with it, basically rendering the entire chip useless. I'm not really sure where to go from here....
- adafruit_support_bill
- Posts: 88144
- Joined: Sat Feb 07, 2009 10:11 am
Re: Help with arduino micro pin states
Are you using pull down resistors on your push buttons?http://www.ladyada.net/learn/arduino/lesson5.html
-
- Posts: 3
- Joined: Tue Feb 19, 2013 2:39 am
Re: Help with arduino micro pin states
Yes. I have the circuit set up exactly like the one in the digitalreadserial tutorial on the arduino site and using that code to test it. Whether or not it decides to read the button is random.
-
- Posts: 3
- Joined: Tue Feb 19, 2013 2:39 am
Re: Help with arduino micro pin states
nevermind. i got it to work but for some reason it only works when i put the pushbutton on a separate breadboard from the micro.
Please be positive and constructive with your questions and comments.