11 years, 4 months ago.

AnalogOut problem

I have compiled and downloaded the code for sawtooth wave from Handbook and when I connected voltmeter between GND and p18 it says that voltage is 0V. Have I connected the voltmeter wrong or something else is the problem?

2 Answers

11 years, 4 months ago.

Hi Zvonko,

I've just run the sawtooth program and checked it with a multimeter. I get a reading of 1.48V if the multimeter is set to DC and 2.6V if it's set to AC. You could try setting the analogout to a stable setting and seeing if you still get 0V.

11 years, 4 months ago.

Hi Stephen,

Thank You for reply. I have tried setting multimeter both AC and DC and setting the analogout to a stable setting and the multimeter still shows 0V. When connected between GND and VOUT or between GND and VU it shows 3.3V and 5V so the multimeter is not the problem.

This is the code I have used:

#include "mbed.h"

AnalogOut signal(p18);
 
int main() {
    
    signal=1.0;
    
}