GPIO readAnalogInput
<strong>Hi,<br><br>I am writing an android app that would basically read the signal from a GPIO pin and plot it on a graph.<br><br>The issue i am having is that i can't get enough data samples for a clean plot of my input signal.<br><br>When my input signal is a sine wave of 1Hz, i get a clear graph of it, But when i increase the frequency of my input signal to 10Hz, the plot is distorted. <br><br>How often can i call the readAnalogInput function?<br>What do i need to configure to be able get enough data?<br><br>Thanks,<br>Abbas<br><a href="https://www.mbientlab.com/docs/metawear/android/1.3.3/com/mbientlab/metawear/api/controller/GPIO.html#readAnalogInput%28byte,%20com.mbientlab.metawear.api.controller.GPIO.AnalogMode%29"></a></strong>
This discussion has been closed.
Comments
Hi,<br><br>I am writing an android app that would basically read the signal from a GPIO pin and plot it on a graph. The issue i am having is that i can't get enough data samples for a clean plot of my input signal. When my input signal is a sine wave of 1Hz, i get a clear graph of it, But when i increase the frequency of my input signal to 10Hz, the plot is distorted. How often can i call the readAnalogInput function? What do i need to configure to be able get enough data? <br><br>Thanks,<br>Abbas<br>