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.
198 questions
2
votes
1
answer
208
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 ...
2
votes
0
answers
71
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:...
2
votes
0
answers
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....
4
votes
2
answers
2k
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 ...
5
votes
3
answers
4k
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 ...
0
votes
2
answers
809
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 ...
1
vote
2
answers
10k
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
1
answer
636
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 ...
2
votes
1
answer
144
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 ...
3
votes
2
answers
5k
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 ...
1
vote
3
answers
2k
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
votes
1
answer
315
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 ...
3
votes
4
answers
3k
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 ...
1
vote
3
answers
2k
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 ...
6
votes
3
answers
32k
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 values ...
2
votes
3
answers
7k
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 ...
9
votes
7
answers
40k
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 ...
5
votes
1
answer
2k
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 ...
6
votes
2
answers
3k
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
2
answers
212
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 ...
2
votes
0
answers
793
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 ...
0
votes
1
answer
260
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 ...
1
vote
0
answers
1k
views
Can't read from / write to SPI 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-...
64
votes
7
answers
112k
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 ...