Python® Overview

Your students will find coding in Python more engaging when you include data collection and sensor technology in your curriculum.

Why Code in Python with Go Direct® Sensors

Integrate sensor technology into your Python projects with Go Direct® sensors*. Sensor data helps students learn to plot graphs, create lists, share data, analyze data, visualize data, and much more.
* Go Direct spectrometers are not supported.
  • Students form a deeper understanding of the importance of coding when they see their code interact with sensor data.
  • Students get the Python experience needed to expand coding skills and prepare for advanced computer science courses and future careers. 
  • By setting up experiment variables to achieve different goals, students gain real-world coding experience.

Getting Started with Vernier Go Direct® Sensors and Python

We have created a guide and examples that make it easy to start using Go Direct sensors with Python. This includes support for Windows® 10, macOS®, and Linux.

Featured Code Examples

This example collects data from one or more Go Direct sensors and displays and graphs the readings using the MatPlotLib library.

Use the accelerometer, gyro, and force sensors in the Go Direct Hand Dynamometer to control a Turtle graphic object.

This program combines VPython and the 3‑axis accelerometer built into Go Direct Force and Acceleration to create a “live” freebody diagram for a ring with three forces acting on it.

Raspberry Pi and Python

Python Coding with Raspberry Pi

Our “Getting Started with Vernier Go Direct® Sensors and Python” guide includes support for Raspberry Pi. These inexpensive versatile computers can connect via Bluetooth® wireless technology or USB, making it easy to combine Python, Raspberry Pi, and sensor data.

Raspberry Pi is a trademark of the Raspberry Pi Foundation