Go Down

Topic: Voltage on pin12. (Read 728 times) previous topic - next topic

black_13

I have an Arduino Mega 2560 is the voltage on the this pin 12 I perform the following:

void setup() {               
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(12, OUTPUT);     
}

void loop() {
  digitalWrite(12, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(12, LOW);    // set the LED off
  delay(1000);              // wait for a second
}

Regards.
James

Noorman

Can you refrase the question?
It is not clear what you mean (at least to me)

2B || !2B

... bonding electrons and bits!

black_13

Are the voltages on the PWM pins (13,12) at 5 volts on the Arduino Mega 2560?

James C4S

Quote
Are the voltages on the PWM pins (13,12) at 5 volts on the Arduino Mega 2560?

All I/O pins are at (or near) VCC.  Since the Mega 2560 is running 5V, the I/O pins will be 5V.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

CrossRoads

If the LED is across pin 12 & Gnd with no current limit resistor - while pin 13 has a series resistor with the LED - the output pin 12 may have been damaged, and no longer outputting 5V.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy