Using an Arduino with Python LESSON 16: Connecting and Using a Joystick with Arduino

 

In this video lesson we are working towards creating a 3D version of the classic Pong arcade game. In this session, we show how to read data from the joystick using the arduino.

The arduino code developed in this video is included for your convenience below:

 

Also, this is the vPython 3D simulation we have developed thus far: