Skip to content

Ard Digital Output

DodaTech 1 min read

In this tutorial, you'll learn about Arduino Digital Output Pin Shows No Voltage. We cover key concepts, practical examples, and best practices to help you understand and apply this topic effectively.

The Problem

A pin configured as OUTPUT shows 0V even after digitalWrite(HIGH).

Quick Fix

Wrong

pinMode(9, OUTPUT);
digitalWrite(9, HIGH);  // But pin 9 is PWM-capable
Pin 9 shows 0V on a multimeter.
int pin = 8;  // Use a non-PWM pin
void setup() {
  pinMode(pin, OUTPUT);
  digitalWrite(pin, HIGH);
}
void loop() { /* do nothing */ }
Pin 8 measures 5V (or 3.3V) on a multimeter.

Prevention

Check for: pinMode not set, pin conflicts (serial, SPI), board damage, or wrong pin number. PWM pins work fine for digital OUTPUT — the issue is usually elsewhere. Measure voltage between the pin and GND, not between two pins.

DodaTech engineers apply these same patterns across Doda Browser, DodaZIP, and Durga Antivirus Pro for production IoT reliability.

FAQ

### Can PWM pins be used as digital output?

Yes. PWM pins work normally for digitalWrite(HIGH/LOW). analogWrite() overrides the digital state on that pin until digitalWrite() is called again.

What happens if I set a pin to OUTPUT but don't write anything?

The pin remains in its previous state or LOW after reset. Always explicitly set the state after pinMode.

How much current can a digital pin source?

40 mA max per pin on AVR (absolute max). Total across all pins should not exceed 200 mA. Use a transistor or MOSFET for higher loads.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro