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.

Filter by
Sorted by
Tagged with
1
vote
1answer
269 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
398 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
610 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
407 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]...
2
votes
1answer
351 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
342 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
78 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
257 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
43 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
584 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; ...
2
votes
2answers
4k 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
173 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
74 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 ...
1
vote
0answers
579 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), ...
3
votes
1answer
5k 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
367 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
944 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
584 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
832 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
893 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
6k 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
157 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
3k 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
160 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) { ...
3
votes
4answers
1k views

Is it possible to save different values on address 0 and 1 in EEPROM?

I want to save different values on address 0 and 1 on eeprom I tried to change it but when I put data on address 0 and also put data on address 1 the address 0 change its value stored into random ...
1
vote
1answer
320 views

EEPROM PUT and GET audio playback

I am new to Arduino. My project is an electronic piano that has 8 tactile switch keys that can play 8 octaves. I want to record a song that a user plays on the keys into EEPROM. I have implemented it....
0
votes
2answers
45 views

How do I sense that the serial monitor is started?

When starting the serial monitor in IDE I want to save important data to EEPROM before the Arduino Uno restarts. I do not have physical access to the Arduino so a "press button" solution does not work ...
2
votes
1answer
1k views

Arduino EEPROM retains old data after flashing with a new program

I have a custom 5V 16Mhz Arduino Uno (a breadboard Uno of sorts) that runs the grbl firmware. After the initial flashing I can see all the settings (through the serial monitor) and everything works. ...
1
vote
0answers
828 views

Using EEPROM to write a counter value

I have made a program that increments a counter everytime the up button is pressed. I am trying to write this value to EEPROM, so that when I turn my board off and on again, the value before power off ...
-2
votes
1answer
208 views

Sketch Memory and EEPROM

Since I'm running out of sketch memory, I've decided to use the 512 bytes of EEPROM memory by using EEPROM.put(addr,variable). But every time I use this my sketch memory use in gradually increasing. ...
1
vote
1answer
32 views

Persistence of user input after reboot

I am creating an application where user input is required. After a user browses through available choices (via buttons and LCD) depending on the choice of the user a function is run from several ...
1
vote
2answers
213 views

Passing variable value in structure object

in this code i want to pass value of variable char array 'pass' in object "MyObject". But i am getting this error. Arduino: 1.6.11 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ...
1
vote
1answer
429 views

Arduino eeprom_put sketch writes data in two locations?

Using precisely this code - the eeprom_put example in the Arduino IDE, and am seeing some strange results... The sketch does write correctly to eeAddress = 0, and the corresponding eeprom_get sketch ...
1
vote
2answers
3k views

How do I write and read internal EEPROM?

I am working on an Arduino Mega 2560. I want to read and write the internal EEPROM. Can I use EEPROM.get()/EEPROM.put()? I want to store 3 things in EEPROM: Boolean status. String password: length ...
1
vote
1answer
2k views

EEPROM write time

I will implements an emergency backup feature before power off, on Arduino Mega 2650. Arduino is powered by capacitor, for the time (I hope) of the EEPROM write. On AVR2650 Datasheet is reported that ...
0
votes
1answer
58 views

Is EEPROM's location relocated on sketch compile?

I assumed the microcontroller has 3 components as per storing data: - flash memory for the program - RAM for variables - EEPROM for non-volatile user-storage And I always assumed those are separate ...
0
votes
1answer
78 views

Question about configuration EEPROM or Flash

I want to make an external (not related to Arduino) computer application that creates a big 'setup file' (like max. 64 KB). This setup file contains lookup tables (which are configurable and the ...
0
votes
1answer
343 views

24LC1025 Arduino - Data Writing Problem

I have a very big problem by writing a list of strings to an eeprom (24LC1025) Your help with my problem highly appericiated. I have a data matrix, PageData[111][96] and I want to write all them at ...
0
votes
1answer
335 views

Splitting DOUBLE in byte for save on EEPROM

I'm trying to save in memory (FRAM in this case) DOUBLE value, i try the same method with use of UNION for save FLOAT value, but don't go over the 2nd number after dot, why? Where I'm wrong? thank's ...
0
votes
2answers
515 views

Splitting a float into bytes for storage in FRAM (like EEPROM) [duplicate]

I'm trying to write floats to I2C FRAM (like I2C EEPROM) but without result. I tried with this function but I lose all number after the decimal. Thank's for replying. This for writing: float ...
7
votes
3answers
1k views

How to increase life of EEPROM?

I want to store a few (8 as of now) IR codes into my Board's EEPROM. It would be great if someone could suggest a few tips to maximize the lifetime. The IR codes in my sketch are saved in array of ...
1
vote
3answers
529 views

decomposition long number to byte and recomposition With FRAM

I'm using Adafruit FRAM for my little project and have some trouble with recomposition of LONG Variable , right now the recomposition on INTEGER it's fine. Where I'm wrong with recomposition of LONG ...
1
vote
4answers
12k views

EEPROM put and get not working on ESP8266 (NodeMCU)

The Arduino documentation provides two examples to store data in the EEPROM. https://www.arduino.cc/en/Reference/EEPROMPut stores data in the EEPROM and the EEPROMGet example reads the data back and ...
0
votes
3answers
3k views

How to store 1 bit Boolean data into EEPROM and retrieve this 1 bit data?

I am building a project where I have to store the digital state which is Boolean (either HIGH or LOW) of each I/O port such that after power off the state of I/O ports store in EEPROM and I can ...
0
votes
0answers
288 views

Reading/Writing salvaged EEPROM

Recently I stumbled myself on a fairly old blood sugar test strips canisters. Inside them, I found this what they called "Code Card" which inside, an EEPROM Microchip 93LC46B a 1K Microwire compatible ...
2
votes
1answer
97 views

EEPROM library throwing errors

I've included in my sketch and am trying to run a simple sketch that just does EEPROM.write(0,4); followed by a println of EEPROM.read(0); However, it won't compile. It keeps telling me there is an ...
0
votes
2answers
545 views

Store data in flash/EEPROM and process it in parallel

I want to store incoming data in flash or EEPROM and then apply FFT or some other method to detect frequency and intensity. I am taking sound through microphone amplifying it with an LM741 and giving ...
1
vote
0answers
52 views

I want to modify setup, to also keep the serial USB port opens so I can send strings via a Raspberry Pi

I am trying to modify the original code from these guys GRA & AFCH, who have made an Arduino Sketch Program that runs a Arduino powered Nixie Clock. Here is the link to their Firmware file:...