Contrôlée par Joystick Caméra à l'aide d'Arduino

Hi,
First of all, my English is not perfect =)

I’ve seen many projects with Arduino that describes how to control 2 servo’s with a joystick or use a lcd screen. All of the projects that i have seen are all seperate things. So i decided to make a short Instructable of these things combined. In this instructable is everything you need! Drawings, schematics, pictures and even the Complete Code that i’ve mostly written! This project is made on a breadboard because i just didn’t have the time to make this in a nice shining aluminum box  :O

Arduino Joystick controlled Camera

In the picture above you see the camera mounted in two aluminum brackets for the servo’s. I have a instructable for that too!!!
Check it out!

Link: http://www.instructables.com/id/Pan-Tilt-Servo-bracket-controlled-by-Arduino/

So…

Enjoy! =)

Step 1: Parts

Here is a list of all the parts you need.

  • Arduino uno / Mega
  • Breadboard
  • jumper wires
  • Joystick
  • 20*4 LCD Display
  • 2 servo’s
  • 10Kohm potentiometer
  • NPN transistor (BC547B)
  • 6 volt battery or power supply

Step 2: Wiring

Hook up all the wires according to the picture.
I’ve made this circuit in Fritzing. It is very easy to use and even has multiple Arduino’s in it. Basic components are all there.

(I wanted to upload my own frtizing file but i could’nt succeed 🙁 )
You can download Fritzing here: http://fritzing.org/download/

Arduino Joystick controlled Camera circuit

Step 3: Code

Upload the code to the arduino and if everything is connected right the lcd screen will light up!

CODE:

#include <Servo.h>
#include <LiquidCrystal.h>

LiquidCrystal lcd(12,11,5,4,3,2);

const int servo1 = 9;       // first servo
const int servo2 = 8;       // second servo
const int joyH = 0;        // L/R Parallax Thumbstick
const int joyV = 1;        // U/D Parallax Thumbstick

int servoVal;           // variable to read the value from the analog pin

Servo myservo1;  // create servo object to control a servo
Servo myservo2;  // create servo object to control a servo

 

For more detail: Contrôlée par Joystick Caméra à l'aide d'Arduino


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