Pages: [1]   Go Down
Author Topic: Arduino EEPROM  (Read 361 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I am working on an engineering project. I have a CPU wirelessly connected to an Arduino Uno R3. The CPU receives user input and sends it out to the Arduino, which stores the data in an EEPROM memory location. The data is modified within the Arduino and subsequently sent out to an external circuit where it will undergo a D/A conversion (allowing the data to be viewed on an oscilliscope).

How can I send the data (approximately 500 bits) from the 12 EEPROM memory locations to the output pins of the Arduino?

Thanks;
J
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12417
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

recipe:

read them from eeprom into a variable - http://playground.arduino.cc/Main/LibraryForI2CEEPROM - may help
split that variable in bits and send those bits to a pin with digitalWrite();
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for your timely assistance. How might I split the variable into bits?
Logged

UK
Offline Offline
Shannon Member
****
Karma: 183
Posts: 11121
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Use bitRead(), or plain old bitwise operators.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Full Member
***
Karma: 2
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

eh, nevermind my mistake. missing library sorry for post. smiley-sad


Quote
recipe:

read them from eeprom into a variable - http://playground.arduino.cc/Main/LibraryForI2CEEPROM - may help
split that variable in bits and send those bits to a pin with digitalWrite();

Rob, I'm getting this error-
I2C_eeprom\I2C_eeprom.cpp:137: error: 'class TwoWire' has no member named 'receive'.

any ideas?

line 137 = if (Wire.available()) buffer[c] = Wire.receive();
« Last Edit: March 14, 2013, 07:19:39 pm by grendle » Logged

Pages: [1]   Go Up
Jump to: