How to save a database in Arduino?

I am working on a project where I use Arduino with a Bluetooth module and a Samsung Galaxy S II mobile phone with Android OS. The idea of ​​the project is to send some commands from my mobile phone to Arduino via Bluetooth. I want to enable the database in Arduino so that when sending registration data from my mobile phone, Arduino will check the database and, if the login information is correct, it will extract some data from the database and send it to my mobile phone.

How can I store a database inside Arduino? Should I buy an external EEPROM or RAM? And how can I handle this database (adding, deleting and processing data)?

My Ardunio is of type UNO , BTW.

+5
source share
2 answers

Just for simple login you don’t need a database, you probably need a simple table.

First of all, let’s consider that usually EEPROM allow from 1000 to 100000 write cycles. This means that if you write one cell more than 100,000, you have a high probability that your cell will die, you can no longer write it.

The question is, how many logins are allowed? It all depends on choosing the right data structure and understanding the amount of memory required.

Arduino: 2... 50, . - O (1), - O (n), - O (n). .

, 50.. 1000, . - O (n), - O (n), - O (n log n). - O (n) , , , , .

1000 , . - O (n log n), - O (n log n), - O (n log n). , , .

- , . O (1), O (1), O (1). , , . , , .

, , , , EEPROM.

, -, , reset .

, , . , . , . MD5, Android, MD5, 16 , Arduino , MD5 , . .

+7

bluetooth conection, MAC- .

0

All Articles