Using an Arduino with Python LESSON 17: Controlling Paddle Position with a Joy Stick

YouTube video player

In this video lesson we show how to control the position of a game paddle in Python using data from a joystick controlled by Arduino. the data is passed from Arduino to Python, and then the position of the game paddle is dynamically adjusted in real time. On the arduino side, this is the code which we developed:

And on the Python side, this is the code which we used: