Arduino Pan Tilt Controlled

3,422

23

2

Introduction: Arduino Pan Tilt Controlled

About: Mechanical engineer, Entrepreneur, Maker, robotic systems expert and founder of Robimek and RobiBot

We'll check with pan tilt potentiometer in this project.In this project, two potentiometer connected to our Arduino Uno 2 servo motor-driven apparatus that allows camera control Pan-Tilt Fpv we checked cheaper cost.Checking Pan Tilt can start Pan Tilt Controlled with Potentiometer project.

original project page : Pan tilt control

Step 1: Materials:

  • Arduino Uno
  • Servo motors SG90
  • 2 potentiometer 20k
  • Pan-Tilt
  • Breadboard
  • Jumper cables

Step 2: Circuit Connections:

Potentiometer Analog 1 and Analog 2 pins

Digital 5 and 6 pins to digital servo motors

Step 3: Software Part:

#include <Servo.h>

const int pot1=A1;

const int pot2=A2;

Servo myservo1;

Servo myservo2;

int value=0;

int pos = 0;

void setup(){

myservo1.attach(5);

myservo2.attach(6); }

void loop(){ value=analogRead(pot1);

pos=map(value,0,1023,0,180);

{ myservo1.write(pos); }

deger=analogRead(pot2);

pos=map(value,0,1023,0,180);

{ myservo2.write(pos); } }


More information: Pan tilt control project

Robotics Contest

Participated in the
Robotics Contest

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    2 Discussions

    0
    cczesak
    cczesak

    5 years ago

    Great stuff! I used this last night on a laser pointer rig I'm creating for my cat. I used it to plot out the key points so I can automate it.