Tutorial: Data Logging

A learning plan for the Kookaberry

John Phillips

Developed by
John Phillips
The AustSTEM Foundation

Data logging and on-board storage of the data being measured is a unique feature of the Kookaberry.

In this tutorial the LightMe app will be used  to measure the level of ambient light over time. The measured values will then be uploaded to a computer and displayed as a graph in an Excel spreadsheet.

Checking the sampling interval

First we must check that the data sampling interval is appropriate for the measurements being made.

The default interval between the writing (logging) of each data measurement into the USB memory is 2 seconds. This means that every 2 seconds the measured value is recorded and stored.

For instance, if we were to measure the temperature variation on our back patio, we might choose to sample every 30 minutes. In this demonstration we will sample at the default interval of 2 seconds.

Step 1

Connect a Kookaberry to your computer using the USB/MiniUSB lead.

The contents of the USB memory will then be displayed as shown in the screenshot below

In this screenshot, Kooklog contains the data measured when this app was switched on. The other data file, KPL004, contains data logged whilst running another app and can be deleted if not required.


Step 2

Open the Kappconfig file by double clicking on it. The Intv field (highlighted ) can be edited to suit the measurement context. 2 secs is the default value and works well for this LightMe data logging demonstration.

If the interval is changed, then the file has to be saved by clicking on File and clicking on Save.

Reading the ambient light level

Step 1

Connect a Kookaberry to a charged battery and turn it on as described in the Quick Manual.

Connect an Ambient Light Sensor to one end of a 3-wire jst connecting lead and plug the other end into the P4 connector on the back of the Kookaberry. Do the same for an LED, and plug into connector P2.


Scroll down the menu to the LightMe app and press the green button B to run.

Step 2

The analogue signal from the ambient light sensor is displayed as a “tank” icon whose level varies according to the level of the light being detected.

The two lines on the tank are the threshold levels which trigger LED operation. The top one switches the LED ON as the light level diminishes, and the bottom one switches it OFF as it increases again.

Adjust the threshold levels to turn the light off in the current lighting conditions by pressing the C and D buttons

Switch the LED ON and OFF by placing  your hand over the sensor for 10-20 secs. The measured value will be logged and stored in the USB memory as a file called Kooklog.

Exit the app by pressing Button A. This will stop the data logging operation. Exit the screen by pressing button A again.

The file can now be uploaded and displayed on your computer as shown in the next steps.

Displaying the logged data

Step 1

Remove the large USB connector from the battery and plug into the connector on your computer.

The contents of the USB memory will be displayed.

Double click the Kooklog file to open an Excel file displaying a table of the values measured as shown below

Step 2

In the open Excel file, select the data in the first two columns (Time & Light) by holding and moving the cursor over the values. Include the column titles in your selection. Now click Insert in top menu bar and then the Recommended Charts in the menu bar below.

A window showing the charts Excel recommends for displaying the data will appear. Choose one of the line charts.


Press OK on the chosen chart and align the resulting embedded graph alongside the table of values for better presentation.

Either mirror the chart and values on a monitor or smart board for discussion in real time, or Save as an Excel Workbook in another folder (Not in the KOOKABERRY Drive) for later analysis or display.


Ensure you close the Excel file and the Kookaberry Drive before disconnecting the Kookaberry.

Apps used in this learning plan

Peripherals used in this learning plan

Version:[to add to metabox]

Last updated: 1 year ago

Resource type:[to add to metabox]

Year levels: Year 4, Year 5, Year 6, Year 7, Year 8, Year 9, Year 10


Download on GitHub
View support forum

Leave a Reply