Hi everyone, I found my rotary encoder did not work normally today, it was connected to pin2 and pin3 of an arduino uno board for external interrupt. The returning value of digitalRead(pin3) was always LOW. I set the pin3 to OUTPUT mode and found that the voltage of pin3 was almost 0 volt even if I set it to HIGH by digitalWrite command. Does this mean that the microcontroller was permanently damaged? (It seems all other pins work fine. )
ba5ham:
I set the pin3 to OUTPUT mode and found that the voltage of pin3 was almost 0 volt even if I set it to HIGH by digitalWrite command
Post code to check. One has to be carefull when setting a pin to OUTPUT. What was connected to pin?