Output voltage not stable

Hello!
I have a Genuino UNO.
I am having trouble with unstable voltage output when using pin 9.
This is my program

void setup() {

pinMode (9,OUTPUT);

}
void loop() {

analogWrite(9,255);

}

When I am measuring between pin 9 and GND, I am getting 4,85vDC or 5,15vDC, just depends on what time on the day I am measuring... It's not unstable when I'm measuring it, so either 4,85 or 5,15vDC.

I am using my USB cable from my computer, which I'm measuring a stable 5,22vDC.

I've done some tests now, and when I am connecting pin 9 and GND to my 0-10v PWM converter, I am getting even lower voltages.

For example:
When I have 5,15vDC on pin and GND, I am getting 4,85 when I connect them to the converter.

Can anyone help me?

Please make sure your meter/connections/arduino/pwm converter is reliable and not burnt out.
Also try digitalWrite instead of analogWrite.
Thanks.

    void setup()
 {
    pinMode (9,OUTPUT);
    analogWrite(9,255);
    }
    void loop() {    }

Try this and see if the voltage settles

How do I check if my parts are burnt out?
Tried with digitalWrite, still getting 5,15v. Will check later today if it changes again..

For now it's the same. But I can check again later..

A post was split to a new topic: Arduino output voltage not stable

Try using continuity mode on your multimeter to check your wires.
And feed the usb output to your pwm converter to check if it is fine.
Thanks.

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