Help with arduino micro pin states

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
PulseShock
 
Posts: 3
Joined: Tue Feb 19, 2013 2:39 am

Help with arduino micro pin states

Post by PulseShock »

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....

User avatar
adafruit_support_bill
 
Posts: 88144
Joined: Sat Feb 07, 2009 10:11 am

Re: Help with arduino micro pin states

Post by adafruit_support_bill »

Are you using pull down resistors on your push buttons?http://www.ladyada.net/learn/arduino/lesson5.html

PulseShock
 
Posts: 3
Joined: Tue Feb 19, 2013 2:39 am

Re: Help with arduino micro pin states

Post by PulseShock »

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.

PulseShock
 
Posts: 3
Joined: Tue Feb 19, 2013 2:39 am

Re: Help with arduino micro pin states

Post by PulseShock »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”