BasedHardware / Friend

AI wearable necklace
https://basedhardware.com
MIT License
2.04k stars 219 forks source link

Include onboard memory storage ($700 USD) #376

Open josancamon19 opened 3 days ago

josancamon19 commented 3 days ago

Is your feature request related to a problem? Please describe. Include onboard memory storage so that the user by just having the device on his neck, never loses a single audio byte of information.

Describe the solution you'd like

This solution includes hardware, firmware, and flutter.

Gashpid commented 3 days ago

Hey, I’m gonna take this feature.

josancamon19 commented 3 days ago

Assigned to Gashpid

josancamon19 commented 2 days ago

Redundant local storage

#


This solution integrates a microSD memory to provide redundant storage on the device. The redundant storage ensures that the audio files are temporarily saved on the microSD until it is confirmed that they have been correctly transferred to the mobile application. Once the transfer is validated, the data stored on the microSD is deleted, thus ensuring efficient and secure information management. This feature uses a microSD module that operates via SPI, functioning as a bridge between the “XIAO-nRF52840 Sense” board and the micro-SD memory. A notification service is also added to the mobile application to alert if the delayed data has arrived correctly. ## MicroSD Card Module Pin Configuration - SPI
Texto alternativo de la segunda imagen
The micro-SD card module communicates via the SPI communication protocol. You can connect it to the XIAO-nRF52840 Sense using the default SPI pins. You can buy this module in [Amazon](https://www.amazon.com/RedTagCanada-Storage-Expansion-Soldered-Arduino/dp/B09LTMLJ12/ref=sr_1_61?crid=186EM4TGBRTT&dib=eyJ2IjoiMSJ9.ysWkCOQcBTdneiBpSvvAKKrtj7srmVoT71imrzeFa0enSmZvw0bG4MnVgIHU80dJ1zWteuQVzG4TlX2TxajJ8cVh79vZ1S1Eu3v5B0XQIuI-qvzZg566tzu60kRMY-mrgCmq7vkAS5yNwVG-lAFufuAdS2GNjGKbPUImbbQkh58zZ5YdNiGHNQXyScVS9l3o.81e3AigkNOWHioavXqN1PWDc-NdvahtwwMaEmpgkarc&dib_tag=se&keywords=micro%2Bsd%2Bcard%2Bbreakout&qid=1719634567&sprefix=micro%2Bsd%2Bcard%2Bbre%2Caps%2C210&sr=8-61&th=1) | Pin | SD Card Module | XIAO-nRF52840 | |-------|----------------|---------------| | 1 | 3V3 | VDD | | 2 | CS | P1.12 | | 3 | MOSI | P1.15 | | 4 | CLK | P1.13 | | 5 | MISO | P1.14 | | 6 | GND | GND | ## Preparing the microSD Card Para hay que asegurarse que la tarjeta microSD tenga el formato FAT32. Puedes usar el software [SD Card Formatter](https://www.sdcard.org/downloads/formatter/) (compatible con Windows y Mac OS).