Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
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:...
3
votes
3answers
6k 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 ...
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
316 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
367 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
996 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
463 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 ...
4
votes
3answers
2k 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 ...
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
2answers
449 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
923 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 ...
0
votes
2answers
4k 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
876 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
265 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 ...
5
votes
3answers
13k 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
94 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
514 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
3k 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
1k 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 ...
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 ...
0
votes
1answer
895 views

Arduino UNO and SPI eeprom (AT93C46D)

I'm trying to write to and read from an AT93C46D eeprom using an Arduino UNO but for some reason the output I'm getting is not what I expect. The eeprom has a data structure of 128 words of 8 bits ...
-1
votes
1answer
197 views

Trying to read a 93lc46b chip using Arduino

I am trying to read a 93lc46b EEPROM chip using Arduino. I am reusing the code from http://owlsan.blogspot.de/2012/10/accessing-93c4693c46n-serial-eeprom.html, except I have modified it for 93lc46b ...
1
vote
1answer
1k views

Most efficient way to store number in EEPROM?

I would like to store temperature readings in eeprom, the value from -55.00 to 125.99. What is the most space efficient way to store these numbers with two significant digits along with epoch ...
1
vote
4answers
1k views

How do you write to a free location on an external EEPROM?

I want to log GPS positions to an external EEPROM over I2C. For example: Latitude: 51.0000 Longitude: 4.0000 If I remove the decimal place then each of these addresses would consume up to two bytes ...
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 ...
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
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. ...
2
votes
3answers
8k views

Arduino digitalWrite 1 or 0 instead of HIGH or LOW

Is it ok to use digitalWrite(pin, 1) instead of digitalWrite(pin, HIGH) or digitalWrite(pin, 0) instead of digitalWrite(pin, LOW) I want it that way to make the coding lesser because I save ...
-1
votes
2answers
624 views

Change global variables [closed]

How can I change global variables as come EEPROM data? I should write codes in loop. But i dont know anything about changing global variable. Have you an idea?
3
votes
2answers
5k views

How to read/write variables persistenly on Arduino Due (no EEPROM/shield)?

I am relatively new to Arduino and I am currently writing some code to control a relay board. The on/off times are provided by the user at run-time and should be stored persistently (EEPROM or flash) ...
2
votes
3answers
4k views

How to write data in RAM memory using Arduino Uno or Arduino Due?

I know that it is possible to write data in ROM(Read Only Memory). But what about if I want to write data in RAM(Random Access Memory)? Can I do it using "Arduino Uno R3"? RAM is normally associated ...
1
vote
0answers
514 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 ...
7
votes
5answers
27k views

How to remember variable values after rebooting an Arduino Uno R3 board?

Is there any way to store the values of necessary variables somewhere (may be in a file that gets updated by the program at various events), which can be read back when program starts after rebooting ...
4
votes
2answers
136 views

Is EEPROM persisted across program flashes?

If I use EEPROM.write(someAddr, someValue) to write a value to an address, how long will that value "stick" to that address before being lost? If I were to power down the Arduino, flash a whole new ...
5
votes
1answer
1k views

EEPROM value reverting to 255

When I write '13' to the EEPROM and read it straight after it works correctly. However when I comment out the write part of the code and try to just read the data, the value is no longer 13 as it ...
4
votes
1answer
720 views

Trying to understand bitbanging, shiftIn(), reading EEPROM

Alright, so I have an Atmel 93C66, http://www.atmel.com/Images/doc0172Z.pdf Datasheet and I'm wanting to read whatever is in it. I copied the following code from this thread http://forum.arduino.cc/...
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 ...
4
votes
3answers
6k views

Possible to store variables directly in EEPROM?

Is it possible to store a variable directly in EEPROM and retrieve it without needing to use a library? I'm building a project that can change the colour of an RGB LED and I want to store the colour ...
0
votes
2answers
174 views

Storing data (strings) if ethernet fails to send it

Flow goes something like: Read sensors Send data If send fails store the data in eeprom/flash/sd If sent check if any previous ones have failed and send those So my question is what's the best ...
1
vote
1answer
757 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
0answers
558 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
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 ,...
0
votes
1answer
191 views

Setting data pin with NanodeUNIO

I'm using a sketch that helps to reset Da Vinci XYZPrinter cartridge EEPROMs, and it's based on the NanodeUNIO library. It uses digital pin 7 for data. I want to use my TFT Touch Shield to set the ...
5
votes
2answers
4k views

Is it possible to run a binary from EEPROM?

Say I wrote a compiled sketch to EEPROM then read it. Could I run the program from EEPROM? I guess the question is: Can an Arduino run software not in flash memory in the middle of executing the ...
0
votes
1answer
1k views

Can't read from / write to EEPROM

I'm currently trying to write to and read from an 25LC256-E EEPROM with my Arduino Uno via SPI. I've made a program which is supposed to do this, but I only get weird answers. I'm sending in a Serial-...
8
votes
5answers
4k views

How is stack memory used for fuctions and local variables?

I wanted to save some values to the EEPROM and also wanted to free up SRAM by avoiding some variable declarations, but EEPROM memory is byte wise. If I want to store an int value, I have to use some ...
50
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 ...
20
votes
3answers
24k views

What is the real lifetime of EEPROM?

ATMEL says the cell lifetime of an EEPROM cell is about 100,000 write cycle/ cell. Is this actually how the EEPROM performs in the wild? If I do not change the value of a cell, does this stress the ...