Pan-Tilt with Joystick Module
Last updated
Last updated
The Pan-Tilt Control System is a project that is widely used in many areas. It contains the , two servo motors, two . The two servo motors provide a 2 DOF movement to the mechanism, one is horizontal (pan) and the other one is vertical (tilt) DOFs. These movement axes can be controlled through the . A webcam or a can be connected to the Pan-Tilt Control System.
About Tools and Materials:
()
Project Key Components
Project Key Features
Flexible Position Control The Pan-Tilt Control System allows the user to control the mounted object in a flexible vay due to two servo motors and the precise motor driving capability of the SMD.
Getting Started
Hardware Setup
Attach the servo motors to the designated axes for pan (horizontal) and tilt (vertical) movements.
Make sure that the SMD is powered and all connections are correct.
Run the Script
Execute the script, initiating the Pan-Tilt Control System application.
Move the joystick to see how the system works when different axes of joystick are used.
()
2x ()
()
()
The SMD acts as a bridge between the script and the modules. It is responsible for interpreting the commands sent by the script and translating them into actions that read input from the and control the two servo motors by the in 2 different axes.
The Servo Module drives the servo motor that is connected to it. It can be controlled through the .
The allows the user to control the two servo motors, thus, two axes simultaneously.
The enhances the Pan-Tilt System by enabling real-time object detection and tracking. Mounted on the tilt axis, it measures distances and can trigger alerts for nearby obstacles.
The SMD library is at the heart of the application. It communicates with the SMD using a specific communication protocol, sending commands to read the and send the servo motor control inputs to the Servo Modules.
Intuitive Manual Control Through the , the users can intuitively control the 2 DOF Pan-Tilt Control System.
Connect the SMD to the PC or Arduino board using .
Connect the and two to the SMD using an RJ-45 cable.
Connect the each servo motor to the .