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
2answers
1k 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
2k 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
1k 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
7k 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
202 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
6k 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
257 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) { ...
4
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
384 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
46 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
2k 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. ...
3
votes
1answer
1k 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
222 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
34 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
270 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
488 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
60 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
86 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
446 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
2answers
506 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 ...
1
vote
2answers
663 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
2k 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
728 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 ...
2
votes
4answers
19k 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 ...
1
vote
3answers
5k 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
332 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
123 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
648 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 ...
2
votes
0answers
57 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:...
4
votes
3answers
7k views

Using Arduino as Keylogger

Is it possible to use arduino uno r3 as USB keylogger by connecting the usb male pin to CPU and keybord cable to female USB pin of arduino. So that the keystrokes are stored in EEPROM. Without using ...
2
votes
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
333 views

Bluetooth and EEPROM [closed]

I want to send a file(text document) from PC to Arduino UNO via Bluetooth and store it in EEPROM. How do it? And I want to display this text document on Graphic LCD Nokia 5110. I have tried ...
1
vote
1answer
462 views

Eclipse C++ Ide for Arduino 2.0 and eeprom.h (no such file or directory)

I am using a Pro Mini and the Arduino Eclipse plugin. I have a project that is close to 1,000 lines of code and I am using things such as analogRead() and the u8g display library. Now I am at the ...
2
votes
2answers
3k views

Update variable using buttons

I made a part of code to change the temperature limit for alarm system. On warm days user have to change the temperature limit with buttons and OLED display. The question is: How can the variable ...
4
votes
2answers
1k views

EEPROM bytes preset to 255 while programming

I'm working on a program with Arduino Uno which involves writing and reading EEPROM. I'm using a basic EEPROM library. My problem is: EEPROM values are preset to 255 whenever I burn my program. And ...
1
vote
1answer
593 views

Can you save data to EEPROM using firmata?

I have a few Arduino boards connected to my computer running firmata and I want the computer to be able to differentiate between them even when I unplug them and plug them back into a different USB ...
5
votes
3answers
3k views

Set EEPROM from PC before program

I have been working on an arduino program, which has gotten rather large. I am close to hitting the 32k limit on Flash for my ATmega328p. I would like lower my program size by saving some of my many ...
15
votes
5answers
81k 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
2answers
535 views

does eeprom_write_block function of avr.eeprom.h writes a NULL terminated string or we have to manually null terminate it

http://www.nongnu.org/avr-libc/user-manual/group__avr__eeprom.html I am trying to figure out that if we use eeprom_write_block function or eeprom_update_block function do we need to manually null ...
0
votes
1answer
1k views

Posting to EEPROM via HTML - ESP8266 Arduino IDE

For those of you familiar with my somewhat steep EEPROM learning curve...thank you for continuing to share your knowledge. I see how it's supposed to work and it's falling into place. I've run into ...
1
vote
2answers
8k views

Clearing EEPROM

I'm trying to clear my EEPROM and am using this code: #include <EEPROM.h> void setup() { // write a 0 to all 4096 bytes of the EEPROM for (int i = 0; i < 4096; i++) EEPROM.write(i, 0); ...
-2
votes
1answer
1k views

MPU9250 - Calibration Not Saved with RTIMULib EEPROM Issues

I'm using the MPU9250 and the RTIMULib to perform sensor fusion, however, when I run ArduinoMagCal, and save the calibration, and follow that with running the main ArduinoIMU it claims the calibration ...
2
votes
1answer
418 views

Overwritten EEPROM

I have a problem with the Teensy, its EEPROM and another Array. My program contains two Arrays, the first one is a 128x4 long Array, the other one a 2560x2 double Array. The first Array is meant to ...
7
votes
4answers
18k 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....
2
votes
1answer
105 views

Inherent delay running EEPROM.read()

I'm using EEPROM to store long term data for use in sketches (thanks to DarthRubik for the guidance). I store stuff like a location ("Garden") and a device name ("Greenhouse Monitor 02") plus ...
1
vote
1answer
617 views

EEPROM - Storing Static Data

I'm trying to store four items to EEPROM. I can do one item no problem, I just don't know how to make the jump to multiple items. My code: #include <EEPROM.h> char sgrpID[31] = "acpilot's ...
3
votes
2answers
4k views

What is the best way to get more RAM for a sound buffer?

The problem: How to extend the memory for a sound buffer (intensively used) if: SD card library supports only one file open at a time (and I have one open already) EEPROM chips are able to stand ...
0
votes
3answers
2k views

A library for manipulate Intel Hex data?

For a project i need to extract some data from an external eeprom and then store it somewhere. Suddenly after some manipulations (not necessarly with Arduino board) i need to put them in an external ...