Pan-tilt for chasing balls

Video tutorial 6 - The gimbal that chases the ball: https://singtown.com/learn/49603/
Video tutorial 24 - Gimbal chasing other objects (faces, Apriltag, circles, etc.): https://singtown.com/learn/50053/
Video Tutorial 21 - A car chasing other objects: https://singtown.com/learn/50041/

Download materials

The materials are all on github\ https://github.com/SingTown/OpenMV-Pan-Tilt/tree/master/pan-tilt/src

Materials

You need the following:

  • OpenMV
  • 3D printed parts (download from pantilt/stl)
  • PCB fixing board (download from pantilt/eagle)
  • 2 micro servos
  • A lithium battery

Connection

Connect as shown above.

Code

There are two files,

  • pid.py
  • main.py

Save pid.py to OpenMV according to the module usage.

main.py can be opened and run in the IDE.

results matching ""

    No results matching ""