We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
0answers
25 views

Stuck in a loop when reading from EEPROM, works if I clear it first

EDIT: The problem was caused by storing a pointer in the EEPROM. Thanks to @KIIV for helping out Sorry for the enormous of wall of text, I'm trying to pare it down a bit. I have two Arduino Megas ...
0
votes
1answer
28 views

Esp32: upload eeprom file

I'd like to flash the eeprom sector with content so that the eeprom already holds data when it boots the first time. How do I upload such an eeprom file like I would do with avrdude on an atmega? Is ...
2
votes
2answers
221 views

EEPROM.get returns bad data

I am using the attached code. What I am trying to do is: Test if there is a personalized "board serial number" written in the EEPROM (by previous code run) If data found was not 7 characters (e.g SN-...
0
votes
1answer
40 views

Can you use an Arduino UNO as an EEPROM programmer

Hi I have an Arduino UNO and a AT28c64B and a single shift register, is it possible to make an EEPROM programmer with it? I’m not too good with the Arduino to do a lot of trial and error... I would ...
0
votes
1answer
51 views

EEPROM Capability [closed]

I'm new to this platform and actually this is my first question on here.So I can read and write any figures in Arduino EEPROM apparently and it works as expected. Is it possible to do a comparison to ...
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
232 views

Why does my 16x2 LCD displays weird letters and can't insert key from keypad?

I'm a newbie on Arduino here, and this is my first project on 16x2 LCD, 4x4 keypad and others. So, the story is, after I uploaded the program for my group's Arduino alarm clock to the Arduino board, ...
1
vote
1answer
21 views

EEPROM: managing address mapping between firmware versions

Is there a common way to handle changes in the mapping between eeprom addresses and variables between firmware versions? It's not about the eeprom memory to survive the update, but to be(come) ...
0
votes
2answers
54 views

ESP8266 using EEPROM to store a value of 100,000

I'm using Wemos mini in my project. I wish to store a Boolean value in cell #0, which changes every boot. Since writing to EEPROM is limited to roughly 100,000 cycles - I want to store in cell #1 the ...
0
votes
1answer
34 views

Header file or library to test i2c FRAM?

I found a header file to test a i2c eeprom 24LC256, but I used this to test my eeprom CAT24C32.The test sketch works fine. I modified the line BLOCKSIZE 8 because my eeprom have 32byte page write only....
0
votes
3answers
718 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 ...
1
vote
1answer
48 views

Reading from EEPROM and combining

I'm trying to read from the EEPROM and combine the information and send it out over SoftwareSerial using write() function but i'm getting the following error error: invalid operands of types 'const ...
1
vote
2answers
293 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 ...
-1
votes
1answer
41 views

esp8266 esp01s EEPROM and flashing

which flash option do I need to take to use EEPROM? Can I flash with 1MB and no SPIFFs and still write data to EEPROM? thanks T
-2
votes
1answer
39 views

Write and read problem while interfacing 93LC46B EEPROM through SPI

I try to save and read data from 93LC46B EEPROM using SPI with Arduino UNO. I'm following this article https://www.arduino.cc/en/Tutorial/SPIEEPROM . So far I have correctly connected EEPROM pinout (...
1
vote
1answer
38 views

about how to share one External serial EEprom using two microcontrollers?

strong texti have Vector nav100 IMU sensor that sends data serially UART.I want to receive data from it using ATmega32 and then store data in AT24c1024 EEprom using I2C,then using another ATmega32 to ...
0
votes
0answers
27 views

I can't write or read data in an external eeprom

I've been trying to store data in an external I2C EEPROM but it doesn't seem to work, and i don't know why. When i run the i2c scanner it founds my memory but i can't write in it, or at least it ...
1
vote
1answer
44 views

about how to write data in the whole EEprom?

I have interfaced AT24c1024 EEprom with ATmega32.AT24c1024, which has 512 pages each of 256 bytes. There are two mode of writing (byte write and page write). In page write mode, it is capable of ...
-3
votes
1answer
48 views

Rate of serial communication (UART) of a sensor is faster than speed of processing of microcontroller

I have a Vector Nav VN100 IMU sensor that sends data serially UART. I have interfaced it with ATmega32. It receives data (ROLL angel) from the sensor and according to the ROLL angel, it controls a ...
1
vote
0answers
31 views

EEPROM Esp8266 Memory Issue

I had assembled a board with esp8266ex bare chip with 4MB eeprom for esp and also can be shared with host MCU. I had gone through some googling and found that using eeprom function I am able to write ...
0
votes
1answer
64 views

Insane heat development with ESP8266

I have a ESP8266 on a Wemos D1 mini board. Simple "Rainbow with FastLED" animation. Shouldn't do much but the board gets so hot I can't touch it and it drains a 2500mAh battery in less than an hour. ...
0
votes
2answers
29 views

Calculate statistic in EEPROM

I've search on how to do statistic calculation in EEPROM, but non related. The data that I stored in EEPROM is body temperature. Currently I stored the data using float. Below is my code for data ...
0
votes
1answer
59 views

How to write a float value EEPROM

I'm using this library for my DS3231 which have a Atmel 24C32 on it. i have a float value which increases by 0.5, like: 27.50 28 28.50 ... the code is like this: float lowTemp= 10.5 float ...
7
votes
5answers
45k views

How to read and write EEPROM in ESP8266

I need to know how I can write integer values in EEPROM and retain the value on power on. char *Red = strstr(myTestUrl, "/R"); if (Red) { int RedValue = atoi(Red + 2); analogWrite(12, RedValue); ...
0
votes
1answer
48 views

DS3231 and EEPROM

Currently to get time/date i'm using DS3231 module with the RTClib library, i want to use the Atmel 24C32 chip on the module to store some small values (temperature etc). Can i use the current ...
2
votes
1answer
46 views

Is it possible to execute a code in runtime when gets updated over the air (OTA)?

I would like to build a lib like ArduinoOTA but with no downtime at runtime. To achieve that I am wondering if it is possible to create a simple setup and loop code to Check for new releases If we ...
1
vote
0answers
2k views

save bytes from Serial into ROM (EEPROM)

I am trying to save an incoming text from serial into the ROM of the Arduino using EEPROM. I found out that you can only save a byte at once. So I thought I could do it like that: #include <EEPROM....
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:...
0
votes
0answers
35 views

Problem Writing/Reading EEPROM on MEGA

I want to make a program that writes on the EEPROM some structs, the final device will take structs of RGB LED data: typedef struct{ unsigned char r; unsigned char g; unsigned char b; } ...
3
votes
1answer
79 views

Best way of storing extra data for Arduino project

I am an arduino beginner and I am trying to make a speed camera alert system, it would start beeping if I am above the speed limit and getting close to the speed camera. There is this website where I ...
49
votes
8answers
76k views

Is using malloc() and free() a really bad idea on Arduino?

The use of malloc() and free() seems pretty rare in the Arduino world. It is used in pure AVR C much more often, but still with caution. Is it a really bad idea to use malloc() and free() with ...
-1
votes
1answer
85 views

How to upload and store settings/variables from computer on the arduino? [closed]

I'm literally as green of a noob as I can be at this moment. Been watching a ton of tuts as I plan my project, but can't seem to find anything about settings being uploaded from an external source, ...
2
votes
2answers
256 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 ...
1
vote
2answers
76 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 ...
5
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 ...
0
votes
0answers
44 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
83 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 ...
2
votes
3answers
502 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
1answer
75 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
1k 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 ...
1
vote
2answers
1k views

EEPROM endurance and page size

I would like to estimate the effective (minimum) endurance of the EEPROM of the Arduino in terms of single-byte writes. The datasheet of the ATmega used on many Arduino boards says (page 20): The ...
0
votes
2answers
341 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
212 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, ...
0
votes
1answer
455 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 ...
5
votes
3answers
12k views

Can you access the EEPROM of an ATtiny with Arduino Code?

I'm attempting to reduce the amount of RAM being used by my program by writing some values to the EEPROM of my micro controller. I'm currently programming on the ATtiny85 which has 512 Bytes of EEPROM....
3
votes
1answer
369 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
64 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
1k 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
253 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
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) { ...