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 Joystick Module, two servo motors, two Servo Modules. 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 Joystick Module. A webcam or a Ultrasonic Distance Sensor Module can be connected to the Pan-Tilt Control System.
Project Key Components
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 Joystick Module and control the two servo motors by the Servo Modules in 2 different axes.
The Servo Module drives the servo motor that is connected to it. It can be controlled through the SMD libraries.
The Joystick Module allows the user to control the two servo motors, thus, two axes simultaneously.
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 Joystick Module and send the servo motor control inputs to the Servo Modules.
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.
Intuitive Manual Control Through the Joystick Module, the users can intuitively control the 2 DOF Pan-Tilt Control System.
Getting Started
Hardware Setup
Connect the SMD to the PC or Arduino board using USB Gateway Module or Arduino Gateway Module.
Connect the Joystick Module and two Servo Modules to the SMD using an RJ-45 cable.
Attach the servo motors to the designated axes for pan (horizontal) and tilt (vertical) movements.
Connect the each servo motor to the Servo Modules.
Make sure that the SMD is powered and all connections are correct.
Run the Application
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.