For my project, I need to store sevaral kind of data on 24LC256 EEPROM, nb 2xfloat,1xInteger,1xLong and 1String up to 32 char.
These data are generate from my android device deparate by ";" or "/", and sended via bluetooth HC-05 serial module.
And it can send up to 100 sentences...to store
What i need to know to success?
-EEPROM is divised in 64 bytes pages, each page contain one sentence.
-buffer of EEPROM and HC-05 size?
-baudrate speed ajust?
-some library cut string in char, but it take more longer...
Your Android has a BT Interface which will be paired with HC-05. HC-05 will receive data from Android sentence by sentence (1 sentence = 3.14;5.67;0x2345;0x45678ABC;arduino UNO data\n) and then it will pass the data to whom who will perform data write operation with EEPROM? How are you going to mark the end of a sentence (the transmission frame)?
So, what is the problem that you are facing to manage this system?
I have found that the best library for writing from an Arduino to an external i2c eeprom is Jack Christensen's extEEPROM.h. It is available through the ide library manager.
This library will handle the different types, and the page boundaries for block writes.
@GolamMostafa
You're right, Between each sentence there is a séparator "/",
And the problems are :
what are the capacities of each module to treat the data.
Do I need to send up to hundred sentences in one transmission, or one sentence per transmission?
Does the buffer (i don't know how it works) od hc05,mega is larger enough?
Is a library exist to treat each kind of types(thanks Cattledog) and works quick
Beur1x:
HC-05, Really from the last century? Am I so old? Do you advice a better bluetooth module?
HC-05 is absolutely fit for the purpose you describe, trawling this forum will show you that it is the most-used by a wide country mile, for good reasons, and its age is irrelevant.