How to write out data

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
summerij
 
Posts: 27
Joined: Mon Jul 13, 2020 1:38 pm

How to write out data

Post by summerij »

Hello. I am new to CLUE and CircuitPython. I want to write the accel/gyro data out to an external device. As opposed to using the internal storage, which has limited space. Some info on using Storage was offered in another post. Can you connect a memory stick to CLUE via an adapter and write to that? I have an adapter. Any help would be appreciated. Thanks.

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to write out data

Post by dastels »

You could add an SDCard adapter using the SPI pins and a couple digital pins on the edge connector. Then just use the SD card support and Storage.

Dave

User avatar
summerij
 
Posts: 27
Joined: Mon Jul 13, 2020 1:38 pm

Re: How to write out data

Post by summerij »

So, once the data is recorded to the internal flash, how do I download it to my Mac for analysis?

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to write out data

Post by dastels »

If you use an SD card, you can just move the card to a reader on the Mac.

If you use the flash filesystem, you can just read the file from the mac next time you plug in the USB. It will be on the CIRCUITPY drive.

Dave

User avatar
summerij
 
Posts: 27
Joined: Mon Jul 13, 2020 1:38 pm

Re: How to write out data

Post by summerij »

Is there a project using the storage function that I can look at to see how it’s set up? I don’t have a lot of time to figure this out. Thanks.

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: How to write out data

Post by dastels »


User avatar
Peter_Gamma
 
Posts: 56
Joined: Tue Jun 02, 2020 5:38 pm

Re: How to write out data

Post by Peter_Gamma »

There are many more options to read out sensor data from an Adafruit CLUE:

https://petergamma.org/read-out-sensor- ... e-pyloton/

Locked
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”