Pong with the Slider Phidget

Use your Slider Phidget to control the paddle in a Pong game!

Setup

Slider Phidget

USB cable

Phidget cable

Connect

Connect the Slider Phidget to your VINT Hub, and your VINT Hub to your computer.

Practice

  1. Try adding a new ball sprite to your project. Use the code below to make your ball move.
  2. Modify your code so the paddle interacts with the ball. Use the code below as a starting point.
  3. Try keeping score using a variable. When the ball contacts the paddle, add one point. If the ball contacts the floor, the game is over. Hint: add the Line sprite to the floor so you can sense when the ball interacts with it.

What are Phidgets?

Phidgets are programmable USB sensors. Simply plug in your sensor, write code in your favorite language and go!

Phidgets have been used by STEM professionals for over 20 years and are now available to students.

Learn more

Set your preferences

Windows

Mac OS

Raspberry Pi

Java

Python

C#

Swift

NetBeans

Processing

Eclipse

Thonny

PyCharm

PyScripter

Visual Studio

Xcode

Setting your preferred operating system, programming language and environment lets us display relevant code samples for the Getting Started Tutorial, Device Tutorials and Projects

Done