Introduction: Remote Control Camera for Make Spring 2015
This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com). This project includes the steps required to created the remote controlled camera.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Step 1: the Control System
First, it is important that we have all of the correct materials. By visiting the makecourse.com website, and going to course materials, one can find all of the required components listed below:
-IR Remote and receiver
-Power to 9V adapter for adruino
-On/Off switch (optional)
-easy push-in jumper wires
I also used a LCD display to troubleshoot the program as I went along, but it is not required for the device to work.
Step 2: Step 2: Wiring the Device
The above figure shows how the arduino is connected to two servos and the ir receiver. The wiring is quite simple, and should be quite easy to do because no external power is required to power the servos.
Step 3: Step 3: Programming the Device
I have attached the code to help with the coding of your own remote control camera, but as a run through here is a summary.
First we set up each of our devices, using IRremote.h, wire.h, servo.h to run the program.
Second, because we are going to be using this as an internal interrupt program, we take in the receivers inputs and catch the results and determine if a real value is seen, and then if it is one of the four buttons in question.
Third, we set up our commands for these if statements, four separate conditions, up down left and right, each with a built in limit so we don't crash our servos.
From here, the fourth step is to add in a button hold reading and go back to the main if statements and set a parameter to recognize what button is being held. This is done by setting a variable (p in this case) to the initial input signal, and later asking the program if it sees the 'button being held' value what value of p it has so that it can know which way to continue to move until it reaches its built in limit.
After it finishes this command it exits the interrupt.
Step 4: Step 4: Building the Components
We now should have the program working to control each servo and read the remote, so the next step is to fit it all neatly into the box we are provided.
To do this, we use the existing screw holes and some velcro to assist us in mounting the arduino to the bottom of the box as well as using the bread boards existing double sided tape to tape it securely to the bottom of the box. Once this is done, we reconnect all of our wires and mount the 9V battery with the switch of choice to turn the battery on and off.
The IR sensor must penetrate the surface of the box, to do so we use a small diameter drill bit around 1/8" in size, or smaller, then use a large drill bit to thin out the bottom of the location (about 1/2" drill bit should work) drilling slowly as to just thin out the material that the IR receiver will mount against. Then once the mounting location is prepared, one can either glue, tape, or velcro the sensor in place.
From here if the switch is desired for use, use a drill bit to start the hole at the corners of the button (being sure the hole is smaller than the button, and then use a heat pen (like a soldering pen) to melt the shape of the button cleanly into the box. This should help create a clean and snug fit for the button.
Next is to cut a hole into the box lid for the servo and wires. Glue the mounts for the servo onto the lid so that the servo sticks out and the wires have a place to go.
Step 5: Step 5: 3D Printing and Gopro Mounting
For this part, we have the freedom to do almost any design we want that fits the servos we selected. Because we are given a servo in our kit we purchased off of the makecourse.com website we can find the cad model and easily create a mount design to 3d print and a case to cover all of the components to give it a more finished look.
By designing these parts in solidworks, we can choose how we want our device to look and function.
To mount our gopro, we use our existing gopro waterproof case and a sheet metal strip to connect to our servo adapters and to the gopro. A single bolt can be used to connect the sheet to the gopro.