system
August 21, 2013, 4:49am
1
Hi,
I'm only on my 2nd day of learning my Arduino, I'm still finding my way around it.
I have a very simple program; 4 pins in input pullup mode and remaining on input, then pin13 on output.
Then it will write back via serial print command:
void loop() {
Serial.println();
Serial.print(digitalRead(1));
Serial.println();
delay(1000);
}
I was able to test pins 0, 2, and 3. However, everytime I short pin 1 to ground, the program freezes and returns few junk characters.
The program resume as soon as pin 1 is open.
Have I got a fried input pin?
Osgeld
August 21, 2013, 5:11am
2
pin one is the transmit pin of the avr chip, which eventually goes to your serial monitor
otherwords dont use pins 0 and 1 if you intend to use serial, and keep in mind stuff hooked up to them could monkey with uploading programs
system
August 21, 2013, 7:28am
3
Osgeld:
pin one is the transmit pin of the avr chip, which eventually goes to your serial monitor
otherwords dont use pins 0 and 1 if you intend to use serial, and keep in mind stuff hooked up to them could monkey with uploading programs
Thanks!
That clears up why it is behaving like this.