Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [eeprom]

Electronically Erasable ROM is a type of memory available on most boards. It is used for storing persistent data. Use the tag for questions about the EEPROM library or the hardware.

2
votes
2answers
170 views

Write faster on AT24C32

I'm using AT24C32 EEPROM chip from ATmel. I found code that will write and read bytes from chip. Code writes and reads bytes correctly and without any problem. But I have to write few 8-byte values ...
0
votes
0answers
40 views

Where to find EEPROM.get()?

I don't seem to be able to find EEPROM.get() function. I am developing my Arduino application under Linux, and inside the libraries EEPROM class only have read() and write(), although here is written ...
0
votes
0answers
29 views

EEPROM.read data not comparing with DHT11 sensor value - Arduino temp controller

I'm using a DHT11 to read temperature to control a relay that will control a fan. When 'A' is pressed it allows the user to update the temp value that the relay will go HIGH at. The value is being ...
6
votes
2answers
1k views

Run code once after programming

I'm using EEPROM to store project settings non-volatile. After reuploading the sketch to my board (over SPI via ArduinoISP), the EEPROM is reset to full 0xFFs and I have to manually do a "software ...
1
vote
2answers
59 views

Store value in EEPROM to perform different actions on reset?

I want the same button to wake up (reset) and put it to sleep but this is hard if the button is tied directly to the rst pin. My thought was to read and store a value in EEPROM so tell the chip what ...
0
votes
1answer
30 views

What's going wrong with my EEPROM?

I've been chipping away at a project for a long time now and I've found a serious bug. Basically the user has an 8x8 grid, and each cell in this grid has a number of properties. I want to be able ...
0
votes
2answers
216 views

ESP8266 EEPROM seems not working, saved data are different when I try to read them

I'm working on project which require to save some data into the EEPROM. As I read online the ESP8266 has no real EEPROM, it use a section of FLASH just after the SPIFFS. Due to this read/write is ...
2
votes
3answers
174 views

Value of uninitialized EEPROM in ESP8266?

In my limited testing it appears that the EEPROM in the Wemos D1 is not initialized to 255 like the specs say is the case for AtMega based Arduinos. In fact, the values look to be more-or-less random. ...
0
votes
2answers
129 views

How to manage variable I2C read lengths requiring address incrementation (Wire/I2C/EEPROM IC emulation)

The question is about how to have information/control of a variable length read for an Arduino acting as a slave device. The concrete context is that I want to emulate an EEPROM IC. A byte write to ...
1
vote
2answers
146 views

Save Data before Shutdown

I am building a positioner and I store the current position to EEPROM when the move is complete. On start up, I want the positioner to return to the HOME position. I am running an UNO powered from the ...
0
votes
1answer
151 views

Adafruit Trinket M0 persistent storage?

I am using an Adafruit Trinket M0 to program a small game and would like to save the game state every so often. I am programming it through the Arduino IDE as the chip does not have enough space to ...
3
votes
1answer
146 views

EEPROM size limitation issue

I am creating a test program with Arduino Nano where I can save network and password. Here is my code to start with: void SaveNetwork(String ssid, String pass){ String com = ssid + "~" + pass; ...
1
vote
1answer
62 views

Writing and reading an ID to/from an Arduino reliably

I need a way to both ID (a sketch/compiled hex) and later on, identify based on this ID the project that got uploaded to my Arduino microcontroller. As of right now, I have explored multiple options ...
0
votes
1answer
547 views

Wemos D1 EEProm put/get not getting correct value

Hey all I have the following code in my Arduino IDE: #include <EEPROM.h> #include <ArduinoJson.h> bool debuggin = true; int brightness = 255; int ambientLight = 30; ...
1
vote
1answer
159 views

Device Security - EEPROM data [duplicate]

I'm writing code for Arduino that I plan to distribute. But I worry about piracy (the .HEX can extracted from the board and reuploaded to another). With that in mind, I am storing data to the EEPROM. ...
0
votes
3answers
358 views

Using EEPROM Anything in loop()

I'm trying to make a programm for Arduino Bluno Beetle, that saves a string in the loop. Here is my code: #include <EEPROM.h> #include <EEPROMAnything.h> struct config_t{ String ...
0
votes
1answer
67 views

How do I inherit a class that requires &foo() in its constructor?

General I have a library with a class constructor class Math(&foo1,&foo2);, which I would like to put into a library for class Algebra(), where foo1 and foo2 are defined in Algebra.cpp My ...
-2
votes
1answer
116 views

How does Arduino memorize the last bytes from Bluetooth HC-05?

I have made a home automation project. Description: Light on, off through HC-05 Bluetooth module and my Android app. The problem is when the power is gone, the system stops, that's OK. After that, ...
1
vote
2answers
290 views

How can I declare global array with its length stored in EEPROM?

I am working with Arduino UNO connected with BV4612 display. I am working on a simple code that controls several water pumps. Each pump has several modes it can run in. I store these modes in an array....
2
votes
3answers
658 views

Is it possible to use extra AVR Flash memory as non-volatile EEPROM-like Flash memory storage?

In STM32 microcontrollers it is possible to use a technique that ST calls IAP, or In-Application Programming, in order to write to the Flash memory from your running application. They even have a nice ...
0
votes
1answer
483 views

string.indexOf() always returns a non-zero value

I am developing a hardware project which contains a facility to change the stored password by any user, if he/she knows the current password.The new password is stored in arduino eeprom. In the main ...
1
vote
3answers
305 views

Which EEPROM has a long lifecycle?

I would like to build a box counter for machine, so I'm going to use EEPROM in Arduino to save count. But the lifecycle is limited to 100,000 writes. Please suggest an external EEPROM with a long ...
0
votes
1answer
571 views

nodemcu EEPROM corrupting

Platform Hardware: [nodemcu amica ESP8266MOD] Core Version: [nodemcu-master-21-modules-2018-03-17-17-09-10] Development Env: [Arduino IDE|] Operating System: [Windows|...
0
votes
1answer
215 views

Write to EEPROM before shutdown

I'm currently designing a battery operated device that has to write data to an EEPROM before shutting down, or in regular intervals to save data. Would it damage the EEPROM if it had to shut down ...
1
vote
1answer
207 views

ArduinoJson buffer gets overwritten

I have not that much experience with native languages like c/c++ and I'm facing a strange issue, which drives me crazy. So I'm using an Wemos D1 mini (ESP8266) which uses a class calles ConfigManager ...
0
votes
0answers
275 views

ESP8266ex does not hold written EEPROM data, what could be wrong? [duplicate]

Solution: Need to call EEPROM.commit() after a write cycle. It is all about this board: It seems to be a NodeMCU V3, however there is no version 3 mentioned in the board list (also update board list)...
0
votes
3answers
429 views

Extending EEPROM life

I'm working on some software using an Uno (ATmega328P). I have a stage byte that can be 1 of 5 values (0-4) in my code and it will increase by 1 every 2.5 hours. If I lose power I need to ensure that ...
1
vote
1answer
309 views

Integer looping in EEPROM Read

I am reading data from a 24LC1025 over I2C with an Arduino and then outputing that data to my PC through the Serial interface. The EEPROM chip is seperated into two pages and at address 65535 [0x0FFFF]...
3
votes
1answer
272 views

Writing data to a specific address in EEPROM

I'm trying to write two strings to an Arduino Uno's EEPROM. Here, the first code block works fine: it writes string(True/False) at 'address 0'. But the second block, which writes data at 'address 5', ...
1
vote
1answer
232 views

Reading and comparing data from Arduino Uno EEPROM

I'm trying to read compare data from EEPROM (Arduino UNO). Reading is working fine but comparing it using the '==' operator is not working as expected. //string 'True' is already stored in EEPROM ...
0
votes
1answer
63 views

EEPROM - Arduino

In my recent project, I want to store values permanently. So for that, I want to use the EEPROM. I searched for it and read about it. Now, I have some questions. Questions: How many locations ...
1
vote
1answer
185 views

Object Sensor on conveyor belt (want to record the data in EEPROM for testing)

void setup () pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); pinMode(LED_Blue_pin, OUTPUT); pinMode(LED_White_pin, OUTPUT); Serial.begin(9600); digitalWrite(LED_Blue_pin, LOW); digitalWrite(...
-1
votes
1answer
40 views

how to check 24c32 eprom is connected or not to arduino runtime?

I want to check it on runtime if runitme i remove eprom then it shows "please insert dongle " also tried using while loop showing eroor.. How can i solve it? Wire.beginTransmission(80); error = ...
0
votes
1answer
393 views

How to read ASCII values from AT24C32 IC using Arduino? And what is serial.begin(?) in that EEPROM?

#include<Wire.h> #include<Eeprom24C32_64.h> #define EEPROM_ADDRESS 0x000 void setup() { Serial.begin(9600); eeprom.initialize(); const word address = 0x000; const byte count = 94; ...
3
votes
2answers
3k views

How to save a float variable to the eeprom

This is my first post here and I'm hoping there are some arduino hobbyists here to help me. Does anyone here know how to save a float variable directly to the eeprom? If so could have a look at the ...
1
vote
4answers
1k views

Read float and long from external EEPROM chip

I am using an Arduino to read information from an EEPROM chip over I2C with the code I found here: https://playground.arduino.cc/Code/I2CEEPROM It works great for int and char values but I also need ...
-1
votes
1answer
149 views

MySensors GatewaySerial code not compiling [closed]

I am trying to compile GatewaySerial code from MySensors library for my Arduino Leonardo and it gives me EEPROM errors. Gateway code: /** * The MySensors Arduino library handles the wireless radio ...
0
votes
2answers
66 views

What values are the Atmel MCUs EEPROMs preloaded with?

I have checked with two datasheets: one for some ATMegas and one for some ATTinys MCUs and could not find what the EEPROM.get() call would read back if the EEPROM was empty (or contained default ...
0
votes
0answers
474 views

Set EEPROM to initial values when flashing ESP8266

I have a variable uint8_t a_ram which needs to be initialized from the EEPROM variable a_eeprom when the ESP boots up. Whenever a_ram changes, the new value has to be stored to the EEPROM (a_eeprom), ...
4
votes
1answer
4k views

How can configuration values be stored on an ESP8266?

I have a project that uses an MQTT service, and I'm wondering how to best store the configuration settings (server, user, password, port) for the service as right now they are just hard-coded into ...
0
votes
1answer
271 views

Reconnect to I2C with a different address (ATTiny85)

My project requires to reconnect to an I2C bus as a slave. I can't reset my ATTiny physically because I2C + my project + a pin to trigger the reset isn't possible due to the limited amount of pins ...
1
vote
2answers
797 views

does EEPROM.write() only writes changed data?

Do I understand the code in EEPROM.cpp / write() correctly, that val is only written to the EEPROM, if val differs from the current EEPROM contents at the given address? And if the answer is yes, ...
0
votes
1answer
461 views

Not sure why eeprom isn't reading back correctly

I'm new to saving data on eeprom and I'm obviously doing something wrong but I'm not sure what. I have one program which both writes to and reads the internal eeprom on a attiny85 and this seems to ...
1
vote
2answers
622 views

Problems Writing and Clearing 24FC512 EEPROM using Arduino Uno

Solution: Majenko properly pointed out that I was trying to write across page boundaries and either overwriting or skipping blocks of the EEPROM when I did. This updated write function checks for a ...
2
votes
4answers
1k views

Storing a counter to EEPROM - how to extend the life?

I am building a circuit that has a button, which when pressed, should increment a counter. I want to store this counter so that when I power off my circuit, it can be read when I power it back on. ...
2
votes
1answer
769 views

Saving EEPROM after programming on Arduino uno

I am using an Arduino Uno, and I use the EEPROM to store some presets. It works fine. But, when I reprogram the Arduino, the EEPROM gets wiped out. Is there a way to prevent this, and have the EEPROM ...
2
votes
1answer
5k views

String to persistent memory (EEPROM?)

I am creating a server node that I want to be able to save the wifi SSID and the password into persistent memory so that when it starts ups it can connect to the network. I have looked for several ...
0
votes
2answers
141 views

Understanding bitwise operations [duplicate]

I am wondering what the second line of code does: int16_t GyX; GyX=Wire.read()<<8|Wire.read(); Also, how can I write the GyX value to EEPROM? From what I understand, int16_t is a two-bytes ...
0
votes
2answers
2k views

Splitting a string read from Serial into parts

Is there any method with which I can split a string given by Serial.read() into an array of 3 items: [command, address, message], to write it to EEPROM? Thanks.
0
votes
1answer
107 views

How do I erase internal EEPROM on a Arduino Pro Mini

I'm working on Arduino pro mini. and I store some data in internal EEPROM. So, I want to erase certain data from 0x00 to 0x28 address in EEPROM. void loop() { ... ... if(erase_eeprom_flag==1) { ...