Hello my friends.
I have written this sketch to my Arduino. It is a very simple PWM signal generator. It works properly.
My scope is telling me that the Pk-Pk voltage is 8.32V ( Pink trace ). You can see the Pk-Pk numbers on the top right corner of the picture below.
How is this possible? It is supposed to be 5 Volts max. Where is the extra 3.32V potential coming from?

void setup() {
}
void loop() {
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
}
I have written this sketch to my Arduino. It is a very simple PWM signal generator. It works properly.
My scope is telling me that the Pk-Pk voltage is 8.32V ( Pink trace ). You can see the Pk-Pk numbers on the top right corner of the picture below.
How is this possible? It is supposed to be 5 Volts max. Where is the extra 3.32V potential coming from?

void setup() {
}
void loop() {
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
analogWrite(9, 127);
delay(500);
}