After some efforts i got voltage to be retained but it is the average voltage of the channels not the needed voltage, So can anyone explain this why is this happening and solution as well. thanx in advance!!!!!
The answer is pretty straight forward , The capacitor is accumulating the current and then smoothifying (the various values in the analog reading) the flow thus the average is coming out of it and read , if you drop the capacitor then i think you may get things right but only have to care about timing and reading it at the righteous time.