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
51 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
1answer
349 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 ...
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
3answers
548 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
3answers
1k views

Problem reading an EEPROM chip using the I2C protocol

I am trying to read an EEPROM chip that supports the I2C protocol (cannot tell the IC model number as it is not printed). For sure it supports the I2C protocol, since I wrote a code to detect it using ...
1
vote
2answers
2k views

How to store gps values in EEPROM arduino?

I have two successfully working individual programs, 1.GPS coordinate extract program. 2.EEPROM saving and reading program. now all I want to do is combine them both, whenever GPS location is updated ,...
1
vote
1answer
40 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 ...
1
vote
1answer
273 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 ...
1
vote
1answer
416 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]...
1
vote
2answers
218 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
432 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
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 ...
1
vote
1answer
474 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 ...
1
vote
1answer
87 views

Handling serial streams biggers than the available ram

I need to parse text coming into my MC (Leonardo) over the hardware serial port. The data comes in burst, and the parsing routine manage the data flow with easy when it is less than the serial buffer. ...
1
vote
1answer
763 views

Eeprom write function does not seem to write in more than 100 locations

I am trying log my sensor data (1 byte each) on my Arduino Uno Eeprom. I have an ATmega328 on it, so it should allow me to write up to 1Kb on it, however I've tried the Eeprom write command and it ...
1
vote
1answer
22 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) ...
1
vote
1answer
47 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 ...
1
vote
2answers
511 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....
1
vote
1answer
263 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
vote
1answer
327 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....
1
vote
1answer
373 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 ...
1
vote
3answers
1k views

How to Store 2 analogRead values and read using EEPROM for Arduino Uno?

Trying to write 2 values coming from analogread(A0) and analogread(A1) by EEPROM.write and retrieve the values by EEPROM.read. I tried the following sketch for each write and read. However, could not ...
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 ...
1
vote
1answer
266 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. ...
1
vote
0answers
587 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), ...
1
vote
2answers
849 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 ...
1
vote
0answers
834 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 ...
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:...
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
317 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
0answers
517 views

Arduino EEPROMex library problem

I am trying to write a float value to the EEPROM on an Arduino MEGA2560. According to some research I should use Arduino EEPROMex library. I added the library to Arduino, but I get the message "EEPROM ...
1
vote
0answers
559 views

Program/Read 93LC46B with an Arduino with bit-banging

I'm Tom. I'm pretty new to electronics and programming but I've been getting better. So, recently I bought a 93lC46B EEPROM from Element 14 (It was $0.28! Why not!). I've been doing some research and ...
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
2answers
75 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
1answer
79 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 ...
0
votes
2answers
59 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
164 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) { ...
0
votes
1answer
65 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 ...
0
votes
1answer
123 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 ...
0
votes
2answers
160 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
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 ...
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
2answers
558 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 ...
0
votes
4answers
3k views

Write to EEPROM during power down

I am making a counting device, and I would like to be ensure that the count is not lost if the power is lost. As I need to count to many millions I cannot use EEPROM writes as I will trash the nvm ...
0
votes
2answers
373 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 ...
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; ...
0
votes
1answer
290 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 ...
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
79 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
2answers
455 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 ...