Piraté, le Pan et le Tilt support de Caméra

So my sister managed to break a pan and tilt camera mount and naturally thought daddy can fix this.

Hacked Pan and Tilt Camera Mount
After sitting on my dads workshop bench for a while he had a go at it and couldn’t work out how to fix it so it was passed on to me as broken.
So I decided to hang the current circuit board and lets make this thing arduino compatible and while I am at it lets make it wireless 🙂
In preparation for this I had to work out which wires were for the motors and which were for the internal batteries.
I am working with one of these: http://www.bhphotovideo.com/c/product/64399-REG/Bescor_MP101_MP_101_Motorized_Pan_Head.html

Step 1: Parts required

Step 2: Solder The H-Bridge

When you have the six wires you need from the pan and tilt camera mount you need to attach them to the H-Bridge in the attached format.
You can attach the power directly from the batteries to this allowing for you to power the teensy from the H-Bridge as well as powering the motors.
At this point you can add a switch to turn it on and off when you want.
I assigned the pins as follows
Pin 1, 8, 9, 16 power from the mount.
2,7 pan or tilt pwm respectively
15, 10 pan or tilt pwm respectively
3,6 motor 1
11, 14 motor 2
4, 5, 13, 12 ground

Step 3: Attach the Teensy

Attach the Teensy

The Teensy will control the whole project.
You need to connect the power from the H-Bridge to the Teensy so it can opperate and you need to connect the PWM wires to four of the data IO’s.
I used pins B5, B6, F7 and F6 as denoted on the board.
From here you can control the pan and tilt by using the teensy’s arduino compatible com port.
To make the mount pan to the right you first need to setup the IO’s. Below is a draft sketch that will make the pan and tilt mount turn constantly to the Right.

int pan[] = {14, 15};

void setup()
{
pinMode(pan[0], OUTPUT);
pinMode(pan[1], OUTPUT);
}

void loop()
{
digitalWrite(pan[0], LOW);//right
digitalWrite(pan[1], HIGH);//right
}

Below is a list of commands that will make the mount pan left, pan right, tilt up, tilt down and stop

int pan[] = {14, 15};
int tilt[] = {16, 17};

digitalWrite(tilt[0], LOW);//up
digitalWrite(tilt[1], HIGH);//up

digitalWrite(tilt[0], HIGH);//down
digitalWrite(tilt[1], LOW);//down

digitalWrite(pan[0], HIGH);//left
digitalWrite(pan[1], LOW);//left

digitalWrite(pan[0], LOW);//right
digitalWrite(pan[1], HIGH);//right

digitalWrite(pan[0], LOW);//stop
digitalWrite(pan[1], LOW);//stop
digitalWrite(tilt[0], LOW);//stop
digitalWrite(tilt[1], LOW);//stop

 

For more detail: Piraté, le Pan et le Tilt support de Caméra


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut