SD-Card

With the senseBox, you can use the SD-Bee to save data on a microSD card for later analysis on the computer.

Store values on SD card

With the Create File on SD Card block in Setup() a new file can be created on the SD card. The name of the file can be changed in the block drop down menu.

/images/2020-04-08-blockly-SD/blockly-SD-1-en.svg - Logo

With the Open File on SD Card block, the previously created file can then be opened in the loop.

/images/2020-04-08-blockly-SD/blockly-SD-2-en.svg - Logo

The Write data to SD card block can then be placed in the free block section of the Open file on SD card block. The text or number to be written can then be placed in the free block section of the Write data on SD card block. In addition, you can determine whether or not a line break should be inserted after each measured value by checking the ‘Line break’ box.

/images/2020-04-08-blockly-SD/blockly-SD-3-en.svg - Logo

Example

In the following example, the temperature is stored in a variable and then written to the SD card. More about variables can be found in the chapter with the same name.

/images/2020-04-08-blockly-SD/blockly-SD-4-en.svg - Logo
×

Subscribe

The latest tutorials sent straight to your inbox.