I have referred to previous posts and couldn't find solution. And I m new to programming platform.
When I used the code:
float voltage = sensorValue * (5.0 / 1023.0); DigitShield.setvalue(voltage);
I am getting accurate value if i give the DC input on display. But When I use AC, It is showing all the sensor values on sine waveform on display, which is undesirable. I tried writing the code as maxSensor-minSensor values, even then couldn't find solution.
Could you please suggest me how to calculate peak to peak value of AC sine wave(offset applied) ? Also, Even if I release the push button to stop the analog signal, the value should remain on the display. Only if I press the other push button defined by me, the value should reset.