user61533: How can I save my output continuously to EEPROM? Or is this even possible? Please help me out.
void setup() {
  Serial.begin(9600);
}

void loop() {
  static unsigned long count = 0;
  static float sum = 0;
  float ave = 0;
  int volt = analogRead(A1);
  float voltage = map(volt, 0, 1023, 0, 2500) / 100.0;
  Serial.print("Voltage: ");
  Serial.println(voltage, 2);
  sum = sum + voltage;
  count++;
  ave = sum / count;
  Serial.print("Average: ");
  Serial.println(ave, 2);
  Serial.println("-----");
  delay(3000);
}


user4143: It's possible, but it's certainly not advised.
EEPROM has a limited number of writes before it's dead. By writing continuously to the EEPROM you will kill it in no time at all.

user16780: The answer is: Read the Arduino Reference and find EEPROM.put
But your actual problem is that
1) if you write to eeprom every 3 seconds, the Arduino eventually
    won't survive you
2) you eventually rather want to write the sum and the count, in
    your case ?
You should also think about how to initialize from EEPROM after Restart.
Perhaps it's sufficient to save restart values only once after 1 minute / 1 hour / daily if it still changes? 
BTW the "Update only if it changed" is already built into the put() method.

61533: <p>How can I save my output continuously to EEPROM? Or is this even possible? Please help me out.</p>

<pre><code>void setup() {
  Serial.begin(9600);
}

void loop() {
  static unsigned long count = 0;
  static float sum = 0;
  float ave = 0;
  int volt = analogRead(A1);
  float voltage = map(volt, 0, 1023, 0, 2500) / 100.0;
  Serial.print("Voltage: ");
  Serial.println(voltage, 2);
  sum = sum + voltage;
  count++;
  ave = sum / count;
  Serial.print("Average: ");
  Serial.println(ave, 2);
  Serial.println("-----");
  delay(3000);
}
</code></pre>
 4143: <p>It's possible, but it's certainly not advised.</p>

<p>EEPROM has a limited number of writes before it's dead. By writing continuously to the EEPROM you will kill it in no time at all.</p>
 16780: <p>The answer is: Read the Arduino Reference and find <a href="https://www.arduino.cc/en/Reference/EEPROMPut" rel="nofollow noreferrer">EEPROM.put</a></p>

<p>But your actual problem is that</p>

<p>1) if you write to eeprom every 3 seconds, the Arduino eventually
    won't survive you</p>

<p>2) you eventually rather want to write the sum and the count, in
    your case ?</p>

<p>You should also think about how to initialize from EEPROM after Restart.</p>

<p>Perhaps it's sufficient to save restart values only once after 1 minute / 1 hour / daily if it still changes? </p>

<p>BTW the "Update only if it changed" is already built into the put() method.</p>
