Introduction: Sweeping Remote Controlled Camera Mount

This camera mount gives you the ability to control it from a distance and rotate it 180 degrees. I will be using a GoPro in my project, but you can use almost any camera that you can secure to the mount.

Also in this instructable we will learn how to control a servo motor with remote control, this will give you a general concept on how to control remotely. You should know that the remote control sends Infrared(IR) signals, so we will learn how to receive and read these signals using Arduino.

Step 1: Things You Need

  • Remote Control
  • Arduino Uno
  • Breadboard
  • Jumper wires
  • Servo Motor
  • IR Receiver
  • Power Cord
  • Camera Mount (specific to your camera, to secure the camera)
  • Plywood

Step 2: Wiring

We use arduino UNO to control the servo motor to make the functionality we want.

We use IR receiver to read IR signals from remote control. Wiring IR receiver and servo motor is shown in pictures. Follow the steps of wiring in the pictures.

Step 3: Programming

First, open the Arduino Software.

Open the sketch menu > Include Library > Manage Libraries > Search for IRremote, install it. Now open a new project in your Arduino Software. Open the Files menu > examples > IRremote > IRrecvDemo. Next, verify and upload to your adruino board. Then open serial monitor and try to click on any button of remote control to send a signal to IR receiver, the HEX code of each button. Then detect the HEX code of the buttons using to control the servo motor, assume you will use five buttons of your choice. For example, use (Right Arrow) for 0 degrees and (Left Arrow) for 180 degrees, so you have to get their HEX codes. (R) ---> A3C8EDDB (L) ---> F076C13B In the final code, the functionality is when clicking at any of five buttons the motor is toggling between the rotation in main direction and stop so when first click at any of two buttons the motor will rotate in button's direction, and when second click at same button the motor will stop as shown in the video. The code is:

#include
#include

unsigned long Value1 = 0xFD50AF; // where XXXXXXXX is on our your remote's values

unsigned long Value2 = 0xFD10EF; // where XXXXXXXX is another button on your remote

unsigned long Value3 = 0xFD906F; // where XXXXXXXX is another button on your remote

unsigned long Value4 = 0xFD08F7; // where XXXXXXXX is another button on your remote

unsigned long Value5 = 0xFD48B7; // where XXXXXXXX is another button on your remote

int RECV_PIN = 2;

IRrecv irrecv(RECV_PIN);

decode_results results;

Servo servo1;

// the setup routine runs once when you press reset:

void setup() {

Serial.begin(9600);

irrecv.enableIRIn(); // Start the receiver

// initialize the digital pin as an output.

servo1.attach(9); // attack servo to digital pin 10

}

// the loop routine runs over and over again forever:

void loop() {

if (irrecv.decode(&results)) {

Serial.println(results.value, HEX);

irrecv.resume(); // Receive the next value }

if(results.value == Value1) {

servo1.write(180);

}

else if (results.value == Value2){

servo1.write(0);

}

else if (results.value == Value3){

servo1.write(90);

}

else if (results.value == Value4){

servo1.write(45);

}

else if (results.value == Value5){

servo1.write(135);

}

}

Step 4: Get Your Circuit Working

Step 5: Attach Your Mount

For this step I will be using a 3D-Printed GoPro Mount, but you can use any mount that supports you camera of choice. I super glued the servo to a piece of wood, them super glued the mount to the wood.

Step 6: Start to Enclose the Mount

To begin to enclose my mount I simply took a piece of plywood for the base, then made a level raised platform for the servo to sit on. I then just allowed my wires, Arduino, and breadboard to sit underneath.

Step 7: Enclose the Materials

Build walls around the materials and cut a hole in the one wall for your power cord and a one for your IR sensor to be able to pickup signals from your remote. To weather proof the box simply put saran wrap or cling wrap over and around all openings.

Step 8: Final Product

I hope you enjoyed building this RC camera mount. Leave any questions in the comments below!

Comments