Recently, for my TIPE, I created a python script that can communicate with an arduino arm and can recognize a ping pong ball and make the arm follow the ball with a laser.
1. Arduino code
robotv1.ino
is the program to put in the Braccio Arduino
2. Python code
testpythonarduino.py
is a simple code I found on the internet freely to test to connect the arduino with pyhton codeessaievideo_live_arduino.py
is the program to follow the ball with the cameraessaievideodoublecamerathread_live_arduino.py
this is the goal of my tipe, the displacement of the arm towards a predictable position using a calculation of trajectory and parabola.