ALL Arduino digital pins outputting a low voltage.

I just bought my Arduino Uno a couple months ago (new to prototyping), and for some reason it started outputting voltages wayy lower than 5 volts. While I cannot give you the exact number (buying a multimeter tomorrow), when I uploaded a blink sketch the led was barely visible (using a 220 ohm resistor, the one recommended by the LED manufacturer). The 5v pin is still performing nominally, so I doubt that there is a problem with the voltage regulator. Keep in mind I am getting power from my PC directly via USB connection.

If anyone has any advice let me know :slight_smile:

P.S. Here is a basic test sketch I've been using. There also doesn't seem to be an issue with the analog pins and as far as I can tell, there is no external damage to the board.

const int LED = 5;

void setup() {
// put your setup code here, to run once:
digitalWrite(LED, OUTPUT);
digitalWrite(LED, HIGH);
}

void loop() {
// put your main code here, to run repeatedly:
}

You forgot pinMode.

const int LED = 5;

void setup() {
// put your setup code here, to run once:
digitalWrite(LED, OUTPUT); // This should be pinMode(LED, OUTPUT);
digitalWrite(LED, HIGH);
}

void loop() {
// put your main code here, to run repeatedly:
}

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.