I have just received my first Arduino, and am very impressed with it. Hardware that's simple enough for a software guy like me! ;D
However, I've also run into my first problem. I'm trying to read an analog control voltage that I measured to be in the 0-5 V range. Couldn't be simpler as it is already in the perfect range for an Arduino, right? Well, what I discovered after trying it out was that the voltage is microprocessor controlled, and looks like this when I read it from the Arduino:
So, I am assuming this is some kind of pulse-width modulation
For the record, reading the analog input as such works ok, with the connection in the AnalogInput tutorial
. My connection is the same, except ground goes to ground and analog0 to the control voltage on the device.
So, my question is: how should I go about reading the voltage correctly (so that the value I get is unfluctuating, like the display on my voltmeter)?
Thanks in advance