godirect-examples

Official examples for Vernier Go Direct® Sensors in both Python and JavaScript

This project is maintained by VernierST

Advanced JavaScript Examples

If you are new to JavaScript, you may want to visit our Go Direct FAQ page for some tips and troubleshooting ideas.

The examples in this folder will walk you through some advanced examples of connecting to a Go Direct device using JavaScript.

For more basic examples, take a look in the javascript folder.

Example 1: Making a Chart

The gdx_making_a_chart.html example shows how you can use the gdx functions to create a chart of sensor data using the chart.js library and:

Example 2: Using a Photogate

The gdx_photogate.html example shows how use GDX functions to detect when Gate 1 is blocked on a photogate by:

Example 3: Start and Stop Data Collection

The gdx_start_stop_desmos.html example uses a Bluetooth Low Energy (BLE) connection and demonstrates how you can use the gdx functions to:

Example 4: User Prompts and Collecting Data

The gdx_using_desmos.html example shows you how to use the library:

Example 5: Connecting to Two Devices

The gdx_using_two_devices.html example shows you how to connect to two Go Direct Devices using the GDX and Chart.js library:

License

All of the content in this repository is available under the terms of the BSD 3-Clause License.

Vernier products are designed for educational use. Our products are not designed nor are they recommended for any industrial, medical, or commercial process such as life support, patient diagnosis, control of a manufacturing process, or industrial testing of any kind.