You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sketch turns your esplora into a scientific datalogger which allows you to read data from an esplora built in sensor and store it in a SD card.
4
+
You can also show "live data" from the sensor or show a graphic of stored data in SD card.
5
+
6
+
To use it just upload the sketch in your esplora and wait it to start.
7
+
When you turn on the esplora the main menu will appear showing 3 option available:
8
+
1.Record Data
9
+
2.Display data
10
+
3.Graph
11
+
12
+
"Record data" starts the recording function that reads a value from a sensor every 1 second and stores it to the SD.
13
+
You can change the interval between two readings changing the value of STORE_DELAY.
14
+
If you want to stop the logging just hold the button 1 until the main menu appairs.
15
+
Once you're done you can plug the micro SD in your computer and it will contain a txt file called "data.txt" with all the saved data.
16
+
17
+
!REMEMBER! when you start a new recording with your esplora, the old "data.txt" file will be erased and all old data will be lost.
18
+
19
+
20
+
"Display data" shows the current sensor value on the screen. Just hold button 1 to exit from this mode.
21
+
22
+
"Graph" mode displays on the LCD the stored data in the SD card. It will auto-fit all the stored data in the lcd, but keep in mind that if the data exceed 162 points the sketch will show an approximate graphic. You have to press button 1 to return to main menu.
23
+
24
+
The default sensor is the light sensor, but you can change the input sensor by replacing in read() function "Esplora.readLightSensor()" with the right sensor function e.g. "Esplora.readTemperature()"
0 commit comments