PASCO Sensors:

 

Make sure Bluetooth turned on laptop.

Download SparkVue to student laptops. (students should be able to pull up in the browser)

https://www.pasco.com/downloads/sparkvue

Update firmware on sensor:

Directions for use:  https://www.youtube.com/watch?v=2zNCCn8cKPw&t=14s

 

Collect, visualize, and analyze data

Learn how to set up a sensor, collect and analyze data, and save an experiment. If you are new to SPARKvue, start here!

In this tutorial, we're going to use a Wireless Temperature Sensor (PS-3201) to measure the temperature of a cup of water. If you don't have a Wireless Temperature Sensor, you can still follow the steps in this tutorial to collect data with a different Wireless sensor.

Connect the sensor

Connect the sensor to SPARKvue and select a template for displaying the data.

  1. On the Welcome Screen, click Sensor Data.

Sensor Data

  1. Turn on the sensor by pressing the power button until the lights turn on.
  2. On the Sensor Data Configuration screen, check the list of available wireless devices on the left. Click the sensor that matches the device ID printed on the sensor to connect it to SPARKvue.

Tip

SPARKvue lists the sensors in order of proximity to the device running the program, so your sensor is likely at the top of the list.

  1. Under Templates, click Graph.

Note

For multi-measurement sensors, you can also select which measurement you want to display by selecting the box next to the measurement's name. In this case, we only have one measurement that is selected by default.

Collect data

Record a run of data and view the results on the Graph display.

  1. On the Experiment Screen, click Start Start to begin recording data.
  2. Place the sensor probe in a cup of water.
  3. Once the sensor reaches equilibrium, click Stop Stop to finish recording data.
  4. Adjust the viewing area of the graph by dragging the axes. You can also click the scale-to-fit tool Scale to Fit Tool to automatically scale the graph.

Add a note

Add a note to a data point to add context to the graph.

  1. Click a data point to add a note. A selection of tools appears.
  2. Click the annotation tool  to add an annotation to that point.
  3. Select the Enter Note box, then use your keyboard to type a note.
  4. Click OK when finished. The note appears on the graph.

Tip

Reposition the annotation by dragging the text box.

Find data coordinates

Determine the coordinates of a data point and the difference between two points on the graph.

  1. Click a data point to analyze.
  2. Click the coordinates tool . A box displaying the coordinates appears.
  3. Click the coordinates box, then click the delta tool . A second coordinates box appears.
  4. Drag the second coordinates box to a new location to determine the difference between the two points. Boxes showing the difference in y and the difference in x appear.

Collect a second run

Record a second data run and compare it to the first run.

  1. Click Start Start to begin recording a second data run. The first data run is hidden.
  2. Remove the Temperature Sensor probe from the water and set it on the table.
  3. After several minutes, click Stop Stop to end recording data.
  4. In the graph legend, select the Run 1 box Select to make the first run visible.

Fit the data to a line

Add a linear fit to a selection of the data to find the slope and y-intercept.

  1. Toggle the cursor tool to selection mode .
  2. Drag the cursor across the graph to select a portion of the graph to analyze.
  3. Select the linear fit tool  to fit a line to the selection. A line appears with a box displaying the slope, y-intercept, and error values.

Tip

Drag the axes to see a projection of the linear fit.

Change the units of the Time axis

Change the units of the Time measurement from seconds to minutes to make the data easier to read.

  1. Click the toolbar drawer  to collapse the toolbar.
  2. Click Time (s) on the x-axis to open the X-Axis Measurement panel.
  3. Click the s box next to Time, then select min from the dropdown list.

Save the data

Save your experiment file to share with others.

  1. Click on Main Menu, then select Save As.
  2. Create a name for your file, then save it on your device.

Tip

On mobile devices, you can directly email your file by tapping the share tool and selecting Share SPARKlab.

To open your file at a later time, click Open Saved Experiment on the Welcome Screen.

Next steps

Now that you've gone over the basics of collecting data in SPARKvue, here are some suggestions to learn more about SPARKvue:

 

Create a program using sensor data

Learn how to code a simple program and use sensor data to control outputs.

In this tutorial, we're going to build a program to output a message when a light sensor detects darkness. Though this tutorial is written specifically for a light sensor, you can use alternative sensors by making some minor modifications to the code.

Set up the sensor

  1. Connect the sensor to SPARKvue using the Sensor Data path.
  2. Select the digits and graph template.
  3. Click the Code button  to open the Code tool.

Add a block to the workspace

  1. Select the Logic category in the toolbox.
  2. Drag an if block from the toolbox to the workspace.

Modify the block

  1. Click the gear  in the block.
  2. Drag the else block and connect it to the if block.
  3. Click the gear  to close it.

Connect a second block

  1. Select the Logic category.
  2. Drag the equality block and connect it to the if block.

Create a condition using data from a sensor

  1. Select the Hardware category. Drag the value of block and insert it into the equality block's first space.
  2. Select the Math category. Drag a number block and insert it into the equality block's last space.
  3. Click inside the number block, then enter the number 1.
  4. Click the equal sign =, then select the less than sign < from the list.

Create an output

  1. Select the Code Output category, then click Create text output.
  2. In the window, enter message, then click OK. This creates a text output block.
  3. Drag the text output block and connect to do in the if block.
  4. Click inside the text block, then enter It's dark.
  5. Drag another text output block and connect it to else in the if block.

Tip

Alternatively, right-click the first text output block and select Duplicate.

  1. Click inside the text block, then enter It's bright.

Create a loop

  1. Select the Loops category. Drag the repeat while block and place it over the if block so it surrounds the if block.
  2. Select the Logic category. Drag the true block and connect it to the repeat while block.
  3. Select the Loops category. Drag the break out of loop block and connect it to the bottom of the do statement in the if block.
  4. Click Code again to exit the Code tool.

Run the program

  1. In the Digits display, click the Brightness measurement.
  2. Select the User-entered tab, then select message.
  3. Click Start Start.
  4. Cover the sensor to see the message change. This also stops the program.

Tip

You can also click Stop Stop to stop the program manually.

Next steps

Now that you've created your first program, here are some further topics you can explore to take your coding to the next step.

Build a custom experiment page

Create a custom experiment layout to display data and control hardware.

In this tutorial, we're going to build an experiment page from scratch. We will select a page layout, choose displays we want to use to visualize data, and select measurements we want to display.

Create a new page

Let's start by creating a new experiment page. This can be done from the Welcome Screen or Experiment Screen:

Select a layout

  1. Optional: If desired, click Add Background Background Image to add a custom background image to your page.
  2. Select a layout from the options on the right side of the screen; scroll for additional layout choices. Each layout contains one or more display elements.

Note

Some displays require a minimum size. See Display types for more information.

Connect sensors

Before you can select your displays, you need to connect each sensor you want to use in your experiment. Follow the steps below to connect a Wireless Sensor. If you have a PASPORT or Science Workshop sensor, see the Connect a sensor to SPARKvue page.

  1. Turn on the sensor.
  2. Click Bluetooth to open the Wireless Devices window.
  3. Select the sensor that matches the device ID printed on your sensor.
  4. Click Done.

Select displays and measurements

  1. Select a display for each area on the experiment page. If you want to leave a display element blank, click the ×.

  1. For each display, click Select Measurement, then select the measurement you want to display from the menu.

Tip

If you made a mistake when creating your experiment page (such as selecting the wrong layout), click New Page to start a new page. You can delete the old page by clicking Delete Page .

Collect data

After you have set up your displays, you are ready to collect data. Click Start Start to begin collecting data.