The camera controller box is an easy way to rotate a webcam from a PC or remotely through the internet.

Step 1: Materials and 3D Files

In this project I used a Teensy 2.0 micro-controller since it was available, but you can use any other MCU like an ATtiny85 or an atmega328. The servo model number is S9001.
I designed a place for a weight on the base part, in order to prevent vibrations and to keep the camera from falling off while it rotates.
The servo adaptor part is based on thing:19940.

Step 2: Printing and Assembling - Base

The first part that you need to print is the base part since everything else is connected to it.
If you have a weight (or made one to fit the print) use screws to screw the print to the base. 

Step 3: Screw Mounts

Print the screw mounts, as you can see there are several different ones, so make sure to place them in the right positions.
Cut small pieces of filament and push them into the holes. They will help you align the screw mounts and keep them in place
while you apply some superglue to them.

Step 4: Placing the Servo in Place

Place the servo motor in place and screw it in.

Step 5: Servo Adaptor

Push the nut into the adaptor and glue it with a few drops of superglue.
Assemble the adaptor to the servo accessory.

The screw is used to mount the camera to the box so you should use a screw with a gripper to make it easy to mount. 

Step 6: Placing All Together

Solder the Teensy board to the PCB according to the attached schematic.

To program the Teensy you will need the PWMServo library.
Download the attached file and upload it with Arduino IDE.

Step 7: Final Result

The only thing left to do is to mount the camera and run the control software.
Use the keyboard right and left keys to rotate the camera and the up and down keys to change the speed.
<p>I want to make</p>
for teensy 2.0 we are using Aurdino IDE to copy the program into the Microcontroller. Coming to the AT tinny85 and ATMEGA 328 which device is to be used for dumping the program?
Try Arduino ISP sketch for uploading the binaries to smaller chips that don't have a bootloader (or can use the space it takes for something more productive). You can actually go even smaller than Attiny85 - check out this <a href="http://elabz.com/arduino-shrunk-how-to-use-attiny13-with-arduino-ide/" rel="nofollow">Attiny13 with Arduino IDE</a> tutorial. If you can fit your code into the 1K flash and run it in 64bytes of RAM, there's nothing Attiny85 can do that Attiny13 can't. Regardless of the actual chip you'll pick, the principals of uploading the code into the chip using a programmer, such as the Arduino ISP (or a specialized device like AVR ISP), are the same. &nbsp;
I'm not sure that I understood your question but you can use those instructables:<br> <strong>atmega328:</strong> <a href="https://www.instructables.com/id/Bootload-an-ATmega328/" rel="nofollow">https://www.instructables.com/id/Bootload-an-ATmega328/ </a><br> <strong>attiny85:</strong><a href="http://https://www.instructables.com/id/Self-contained-16-Digit-display-Arduino-Attiny/step5/Burn-your-program-onto-the-ATtiny85/" rel="nofollow"> https://www.instructables.com/id/Self-contained-16-Digit-display-Arduino-Attiny/step5/Burn-your-program-onto-the-ATtiny85/ </a><br> If you use atmega328 you need to connect the servo signal to pin 9 (PB1).<br> For ATtiny85 you need to modify the library and use one of the pwm pins.
Nice work and well planned!

About This Instructable




More by tlevis:Air Pressure Rocket Launcher System Stabilized Cup Carrier Arduino On Board 
Add instructable to: