Go Down

Topic: Arduino EEPROM (Read 454 times) previous topic - next topic

jwidz

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

robtillaart

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 Tillaart

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

jwidz

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

PeterH

Use bitRead(), or plain old bitwise operators.
I only provide help via the forum - please do not contact me for private consultancy.

grendle

#4
Mar 15, 2013, 01:06 am Last Edit: Mar 15, 2013, 01:19 am by grendle Reason: 1
eh, nevermind my mistake. missing library sorry for post. :(


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();

Go Up